Skip to content

Releases: Bes-js/herc.ai

Hercai

27 Jan 20:47
1ee12a6
Compare
Choose a tag to compare

Discord Buy Me A Coffee

Herc.ai

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!

Support

📂 NPM

📖 Document's

📝 Github

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;

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

const herc = new Hercai(); //new Hercai("your api key"); => Optional

/* Available Models */
/* "v3" , "v3-32k" , "turbo" , "turbo-16k" , "gemini" */
/* Default Model; "v3" */
/* Premium Parameter; personality => Optional */
herc.question({model:"v3",content:"hi, how are you?"}).then(response => {
console.log(response.reply);
/* The module will reply based on the message! */

});

Text To Image API; https://hercai.onrender.com/v3/text2image?prompt=

Example Draw Image For CommonJS;

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

const herc = new Hercai(); //new Hercai("your api key"); => Optional

/* Available Models */
/* "v1" , "v2" , "v2-beta" , "v3" (DALL-E) , "lexica" , "prodia", "simurg", "animefy", "raava", "shonin" */
/* Default Model; "v3" */
herc.drawImage({model:"v3",prompt:"anime girl",negative_prompt:""}).then(response => {
console.log(response.url);
/* The module will reply based on the prompt! */

});

Example Interface And Usage For TypeScript;

import { Hercai, QuestionData, DrawImageData } from "hercai";

const herc = new Hercai(); //new Hercai("your api key"); => Optional

/* Question Example For TypeScript */
herc.question({model:"v3",content:"hi, how are you?"})
.then((response:QuestionData) => {
console.log(response.reply);
});

/* DrawImage Example For TypeScript */
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 🥳!

Credits

Made by FiveSoBes And Luppux Development

Contact & Support & Donate

Buy Me A Coffee

Discord Banner

Hercai

18 Jan 22:14
a723276
Compare
Choose a tag to compare

Discord Buy Me A Coffee

Herc.ai

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!

Support

📂 NPM

📖 Document's

📝 Github

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;

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

const herc = new Hercai(); //new Hercai("your api key"); => Optional

/* Available Models */
/* "v3" , "v3-32k" , "turbo" , "turbo-16k" , "gemini" */
/* Default Model; "v3" */
/* Premium Parameter; personality => Optional */
herc.question({model:"v3",content:"hi, how are you?"}).then(response => {
console.log(response.reply);
/* The module will reply based on the message! */

});

Text To Image API; https://hercai.onrender.com/v3/text2image?prompt=

Example Draw Image For CommonJS;

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

const herc = new Hercai(); //new Hercai("your api key"); => Optional

/* Available Models */
/* "v1" , "v2" , "v2-beta" , "v3" (DALL-E) , "lexica" , "prodia", "simurg", "animefy", "raava", "shonin" */
/* Default Model; "v3" */
herc.drawImage({model:"v3",prompt:"anime girl",negative_prompt:""}).then(response => {
console.log(response.url);
/* The module will reply based on the prompt! */

});

Example Interface And Usage For TypeScript;

import { Hercai, QuestionData, DrawImageData } from "hercai";

const herc = new Hercai(); //new Hercai("your api key"); => Optional

/* Question Example For TypeScript */
herc.question({model:"v3",content:"hi, how are you?"})
.then((response:QuestionData) => {
console.log(response.reply);
});

/* DrawImage Example For TypeScript */
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 🥳!

Credits

Made by FiveSoBes And Luppux Development

Contact & Support & Donate

Buy Me A Coffee

Discord Banner

Hercai

16 Jul 23:22
e1d2782
Compare
Choose a tag to compare

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://hercai.onrender.com/v1/hercai?question=

Text To Image API; https://hercai.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