dekuai
v2.0.3
Published
Deku AI is a free and unlimited AI service that can be used to generate text and generate some images.
Downloads
196
Maintainers
Readme
DEKU AI
Deku AI is a free and unlimited AI service that can be used to generate text and generate some images.
📚 Table of Contents
- 🛠️ Installation
- 🎯 Examples
- ⚙️ Conversational
- ⚙️ Non Conversational
- 🤖 Character AI Conversational
- 📝 Contacts
- 🖼️ Facebook Cover Generator
- 🖼️ Cover Generator
- 🖼️ Anime Profile Generator
- 🖼️ Anime Profile Generator V2
- 🖼️ SDXL (LIMITED)
- Bot Commands
📦 Install
npm install dekuai
🚀 Start
const Deku = require("dekuai")
const deku = new Deku();
// if you have a apikey
// const deku = new Deku("$deku-example1234apikey")
// the key is to get unlimited request on PRO type API
CONTACT ME FOR APIKEY
FOR CONVERSATIONAL
Conversational models
- Cblackbox
- Cqwen
- Cllama
- Czephyr
- Cdiscolm
- Chermes
USAGE
// NOTE FOR CONVERSATIONAL MODEL: Your conversation with AI depends on the ID
async function main() {
//if you want to clear your conversation with AI just prompt clear
// const q = "clear",
const q = "hi",
cid = "40", // (conversational id)
model = "Cblackbox";
const response = await deku[model](q, cid)
return console.log(response)
}
main()
FOR NON CONVERSATIONAL
Non conversational models
- llama
- blackbox
- gemma
- gemini
- linerva
USAGE
async function main() {
const q = "hi";
const model = "llama"
const response = await deku[model](q)
return console.log(response)
}
main()
CONVERSATIONAL CHARACTER AI
character list
- deku
- gojo
- sukuna
- rimuru
- cid
- luffy
- rudeus
- ichigo
- naruto
- boruto
USAGE
// NOTE FOR CONVERSATIONAL MODEL: Your conversation with AI depends on the ID
async function main() {
//if you want to clear your conversation with Character AI just prompt clear
// const q = "clear",
const q = "hi",
cid = "40", // (conversational id)
char = "deku";
const response = await deku[char](q, cid)
return console.log(response)
}
main()
FACEBOOK COVER IMAGE GENERATOR
USAGE
const fs = require('fs')
async function generateCover() {
try {
const path = "cover.png";
const name = "Izuku",
last = "Midoriya",
phone = "09*********", // or n/a if none
country = "Japan",
email = "[email protected]", // or n/a if none
// IF YOU DON'T KNOW HOW TO GET YOUR OWN FACEBOOK ID JUST MESSAGE ME ON FACEBOOK, BELOW YOU CAN FIND MY CONTACT
uid = "100055943906136", // facebook id (ex: 100055943906136)
color = "green"; // default white
const image = await deku.fbcover(name, last, phone, country, email, uid, color)
fs.writeFileSync(path, image);
console.log('Image saved in' + path);
} catch (error) {
console.error('Error generating image:', error.message);
}
}
generateCover()
EXAMPLE OUTPUT
ANIME PROFILE GENERATOR
USAGE
const fs = require('fs')
async function generateProfile() {
try {
const path = "profile.png";
const signature = "Izuku",
bgname = "Midoriya",
id = "4",
color = "black";
const image = await deku.profile(id, bgname, signature, color)
fs.writeFileSync(path, image);
console.log('Image saved in' + path);
} catch (error) {
console.error('Error generating image:', error.message);
}
}
generateProfile()
EXAMPLE OUTPUT
GET CHARACTER ID
async function getgID() {
// to get all id
const charid = await deku.characterID()
console.log(charid)
// to get the charid you want
const id = "4"
const charid2 = await deku.characterID(id)
console.log(charid2)
}
getgID()
EXAMPLE OUTPUT
ALL ID
[
{
"imgAnime": "https://lh3.googleusercontent.com/--HHFVR4QkTE/YbyGiklcm7I/AAAAAAAA2e8/q5tbb-FB9bs5cdytxpivLp3pWj1AuRHrQCNcBGAsYHQ/s0/boy-1.png",
"colorBg": "#f8ca3e",
"dm": "boy"
},
{
"imgAnime": "https://lh3.googleusercontent.com/-ESzEN4e9KCI/Yad386gx7SI/AAAAAAAA1yk/ty7r8jI_DF0-EAE6FeOYghqk1I55OyAmACNcBGAsYHQ/s0/boy-3.png",
"colorBg": "#3f4a8a",
"dm": "boy"
},
{
"imgAnime": "https://lh3.googleusercontent.com/-UinqgAaxi5s/YXJ9PzdF8NI/AAAAAAAAyhY/he8Y4PAMuQUZLE-185pq8ImagmHx1gYzACNcBGAsYHQ/s0/boy-4.png",
"colorBg": "#e2bc5f",
"dm": "boy"
},
...
]
GET SPECIFIC ID
{
"imgAnime": "https://lh3.googleusercontent.com/-bhrRW3VOKRI/YcLnMSNMeKI/AAAAAAAA2tk/7BBW3Z1kktsv_6bGCEir0s_Krn8qDAnegCNcBGAsYHQ/s0/boy-6.png",
"colorBg": "#6b54c0",
"dm": "boy"
}
SDXL (LIMITED)
USAGE
const fs = require('fs')
async function sdx() {
try {
const path = "generated.png";
const prompt = "dog",
// to get style
// const styles = await deku.sdxl("list")
// console.log(styles)
style = "7"; // optional, u can leave it blank ""
const image = await deku.sdxl(prompt, style)
fs.writeFileSync(path, image);
console.log('Image saved in ' + path);
} catch (error) {
console.error('Error generating image:', error.message);
}
}
sdx()
SDXL EXAMPLE OUTPUT
TO GET LIST OF STYLE
async function list() {
const styles = await deku.sdxl("list")
return console.log(styles)
}
list()
EXAMPLE OUTPUT
{
"list": {
"1": "anime",
"2": "fantasy",
"3": "pencil",
"4": "digital",
"5": "vintage",
"6": "3d (render)",
"7": "cyberpunk",
"8": "manga",
"9": "realistic",
"10": "demonic",
"11": "heavenly",
"12": "comic",
"13": "robotic"
}
}
COVER V2
USAGE
const fs = require('fs')
async function fbcoverv4() {
const id = 3,
name = "Joshua",
subname = "Bloodfallen";
/* namecolor = "red",
subcolor = "blue"; (if u want to change the color of the name and subname.) */
// const img = await deku.fbcoverv4(name, id, subname, namecolor, subcolor);
const img = await deku.fbcoverv4(name, id, subname);
const p = "fbcover4.png";
fs.writeFileSync(p, img)
console.log("ok")
}
fbcoverv4()
COVER V2 EXAMPLE OUTPUT
ANIME PROFILE GENERATOR V2
USAGE
const fs = require('fs')
async function avatarv2() {
const id = 3,
bgtext = "Joshua",
signature = "Joshua Sy",
color = "black";
const img = await deku.profilev2(id, bgtext, signature, color);
const p = "profile2.png";
fs.writeFileSync(p, img)
console.log("ok")
}
avatarv2()
ANIME PROFILE GENERATOR V2 EXAMPLE OUTPUT
BOT COMMANDS
MIRAI FACEBOOK BOT
GOAT FACEBOOK BOT
CONTACT
- Facebook: Joshua Sy
- Website: Deku REST API
- Email: [email protected]
- GitHub: Github