JSPM

  • Created
  • Published
  • Downloads 99313
  • Score
    100M100P100Q154553F
  • License GPL-3.0

A powerful library for interacting with the Herc.ai API

Package Exports

  • hercai
  • hercai/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hercai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Discord

Herc.ai

A powerful library for interacting with the Herc.ai API.

We Use GPT-4 as Artificial Intelligence Engine, And We Offer It To You For Free. Herc.ai Answers Your Question According To The Language, And It Supports All Languages.

Question API; https://herc-ai.onrender.com/v1/hercai?question=

Text To Image API; https://herc-ai.onrender.com/v2/text2image?prompt=

Support

📂 NPM

📝 Github

Example On CLI

Installation

🔲 Installation For CLI

npm i hercai -g

📂 Installation For Project

npm i hercai 

Quick Example

Example Question For CommonJS;

// Importing The Package
const { Hercai } = require('hercai');

const client = new Hercai();

// Available Models "v1" | Default Model;"v1"
client.question({content:"hi, how are you?"}).then(response => {
console.log(response.reply);
// The module will reply based on the message!

});

Example Draw Image For CommonJS;

// Importing The Package
const { Hercai } = require('hercai');

const client = new Hercai();

// Available Models "v1" , "v2" , "v2-beta" | Default Model; "v2"
client.drawImage({model:"v2",prompt:"anime girl"}).then(response => {
console.log(response.url);
// The module will reply based on the prompt!

});

Example CLI Command Usage;

hercai <Your Question>

Herc.ai Also Supports TypeScript And EsModule 🥳!

Credits

Made by FiveSoBes And Luppux Development

Contact & Support & Donate

Buy Me A Coffee

Discord Banner