Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Deku AI is a free and unlimited AI service that can be used to generate text and generate some images.
npm install dekuai
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
// 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()
async function main() {
const q = "hi";
const model = "llama"
const response = await deku[model](q)
return console.log(response)
}
main()
// 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()
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 = "midoriyaizuku@example.com", // 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()
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()
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()
[
{
"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"
},
...
]
{
"imgAnime": "https://lh3.googleusercontent.com/-bhrRW3VOKRI/YcLnMSNMeKI/AAAAAAAA2tk/7BBW3Z1kktsv_6bGCEir0s_Krn8qDAnegCNcBGAsYHQ/s0/boy-6.png",
"colorBg": "#6b54c0",
"dm": "boy"
}
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()
async function list() {
const styles = await deku.sdxl("list")
return console.log(styles)
}
list()
{
"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"
}
}
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()
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()
FAQs
Deku AI is a free and unlimited AI service that can be used to generate text and generate some images.
The npm package dekuai receives a total of 8 weekly downloads. As such, dekuai popularity was classified as not popular.
We found that dekuai demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.