Brainman is a fast and simple to use AI & personal assistant.
We would like to thank HOSTUDE for sponsoring this project.
npm install brainman
- API has been updated.
- Category option was removed because it was unnecessary.
- LeoLM model added.
- Minor bugs fixed.
- Rate limiter has been added, now you can only send 500 requests in 1 minute.
- Chat and image creation logging system has been completely changed.
- API has been accelerated, now you can chat or create images faster.
- A separate rate limiter has been added to the Gemini version.
const brainman = require('brainman');
// Chat with Brainman
async function brainmanStart(prompt, version) {
const response = await brainman.chat({
prompt: prompt,
version: version, // v3-turbo, v4, v4-32k, gemini, leo
});
console.log(response);
}
brainmanStart('create a basic html code', 'v4');
// Imagine with Brainman
async function brainmanImagine(prompt, version) {
const response = await brainman.imagine({
prompt: prompt,
version: version // sd, dalle
});
console.log(response);
}
brainmanImagine('a cat', 'sd');
You can also use Brainman online by clicking on this link.
This project was created by UnoxDevs and all source code rights are owned by UnoxDevs and Queaxtra.