Powered By Nyro
A powerful library for interacting with the Herc.ai API.
We Offer It To You For Free.
Herc.ai Answers Your Question According To The Language, And It Supports All Languages.
✨ How about a one-time subscription to benefit from Hercai's features unlimitedly?
✨ Use Hercai Unlimited with API Key!
Example On CLI
Installation
🔲 Installation For CLI
npm i hercai -g
📂 Installation
npm i hercai
yarn add hercai
pnpm add hercai
bun add hercai
Quick Example
Question API; https://hercai.onrender.com/v3/hercai?question=
Example Question For CommonJS;
const { Hercai } = require('hercai');
const herc = new Hercai();
herc.question({model:"v3",content:"hi, how are you?"}).then(response => {
console.log(response.reply);
});
Text To Image API; https://hercai.onrender.com/v3/text2image?prompt=
Example Draw Image For CommonJS;
const { Hercai } = require('hercai');
const herc = new Hercai();
herc.drawImage({model:"v3",prompt:"anime girl",negative_prompt:""}).then(response => {
console.log(response.url);
});
Example Interface And Usage For TypeScript;
import { Hercai, QuestionData, DrawImageData } from "hercai";
const herc = new Hercai();
herc.question({model:"v3",content:"hi, how are you?"})
.then((response:QuestionData) => {
console.log(response.reply);
});
herc.drawImage({model:"v3",prompt:"anime girl",negative_prompt:""})
.then((response:DrawImageData) => {
console.log(response.url);
});
Example CLI Command Usage;
hercai <Your Question>
Herc.ai Also Supports TypeScript And EsModule 🥳!
Example Beta Model's Usage;
import { Hercai } from "hercai";
const herc = new Hercai();
herc.betaQuestion({content:"hi, how are you?",user:'chat-id'})
.then((response) => {
console.log(response.reply);
});
herc.betaDrawImage({
prompt:"anime girl",
negative_prompt:"",
sampler:"DPM-Solver",
image_style:"Null",
width:1024,
height:1024,
steps:20,
scale:5
}).then((response) => {
console.log(response.url);
});
Credits
Made by FiveSoBes And Luppux Development
Contact & Support & Donate