A powerful library for interacting with the Herc.ai API.
We Use GPT-3.5 / 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://hercai.onrender.com/v2/hercai?question=
Text To Image API; https://hercai.onrender.com/v2/text2image?prompt=
โ Support
๐ NPM
๐ Github
๐ฒ Installation For CLI
npm i hercai -g
๐ Installation
npm i hercai
Example Question For CommonJS;
/* Importing The Package */
const { Hercai } = require('hercai');
const client = new Hercai();
/* Available Models "v2","beta" | Default Model; "v2" */
client.question({model:"v2",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 ๐ฅณ!
Made by FiveSoBes And Luppux Development