[go: up one dir, main page]

bardiaai

1.0.7 • Public • Published

BardiaAI

Install

npm i bardiaai --save

GPT

https://hapi.majidapi.ir/bardia/gpt/4?q=Hello

https://hapi.majidapi.ir/bardia/gpt/3-5/turbo?q=Hello

https://hapi.majidapi.ir/bardia/gpt/3?q=Hello

const {gpt} = require("bardiaai")

gpt({
    model: "GPT-4", // GPT-4, GPT-3.5-turbo, GPT-3
    prompt: "Hello Bardia"
})
    .then(result => {
        console.log(result);
    })
    .catch(err => {
        console.error(err);
    });

Dalle 3

https://hapi.majidapi.ir/bardia/dalle3?p=Flower

const {dalle3} = require("bardiaai")

dalle3({
    prompt: "beautiful flower"
})
    .then(result => {
        console.log(result);
    })
    .catch(err => {
        console.error(err);
    });

Text To Image

https://hapi.majidapi.ir/bardia/tti?model=default&p=Flower

const {textToImage} = require("bardiaai")

textToImage({
    model: "default", // default, stablediffusion, dalle, pixart, prodia
    prompt: "beautiful flower"
})
    .then(result => {
        console.log(result);
    })
    .catch(err => {
        console.error(err);
    });

Donate

THKC4vmac9u3SB2CevKcmrUhKmdEby8V84 (USDT trc20)

Package Sidebar

Install

npm i bardiaai

Weekly Downloads

6

Version

1.0.7

License

ISC

Unpacked Size

4.99 kB

Total Files

7

Last publish

Collaborators

  • majidrajabi