Skip to content

unoxdevs/brainman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Brainman

Brainman is a fast and simple to use AI & personal assistant.

NPM Downloads npm bundle size NPM License GitHub Repo stars

🤝 Sponsor

We would like to thank HOSTUDE for sponsoring this project. Sponsor

📦 Install

npm install brainman

🎉 Updates

  • 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.

🚀 Start

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');

🖥️ Usage Website

You can also use Brainman online by clicking on this link.

🛠️ Support

© Copyright

This project was created by UnoxDevs and all source code rights are owned by UnoxDevs and Queaxtra.