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
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=
Draw Image API; https://hercai.onrender.com/v2/hercai?prompt=
❔ Support
📂 NPM
📝 Github
Example On CLI
Installation
npm i hercai -g
Quick Example
Example Question For CommonJS;
// Importing The Package
const { Hercai } = require('hercai');
const client = new Hercai();
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"
client.drawImage({model:"v1",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