NEP DEVS
Відкрити в Telegram
NEPS DEV WHO WANT TO HELP YOU WITH FOSS PROJECT. WE COLLECT SCRIPTS THIS GROUP IS ONLY FOR EDUCATIONAL PURPOSE
Показати більшеНемає даних
Підписники
-3724 години
-1357 днів
-23530 днів
Архів дописів
STABLE DIFFUSION AI BJS CODE:-
✨ 𝘾𝙤𝙢𝙢𝙖𝙣𝙙:-
*
🌀 𝘽𝙟𝙨:
Api.sendChatAction({
chat_id: chat.chatid,
action: "upload_photo"
})
HTTP.get({
url: "https://stablediffu.apinepdev.workers.dev/?prompt="+encodeURI(message)+"", success: "/succ"})
✨ 𝘾𝙤𝙢𝙢𝙖𝙣𝙙: /succ
🌀 𝘽𝙟𝙨:
let aiImages;
try {
aiImages = JSON.parse(content);
} catch (e) {
throw new Error('JSON parsing error: ' + content);
}
const botName = 'Nepdevstoolbot';
for (const aiImage of aiImages) {
const model = aiImage.model;
const firstImageUrl = aiImage.imageUrls[0]; // made by NepDevs
const generationTime = aiImage.generationTime;
if (firstImageUrl) {
const photo = {
photo: firstImageUrl,
caption: `AI Image generated by @${botName} 🖼️\nModel: ${model}\nGeneration Time: ${generationTime}`
};
Api.sendPhoto(photo);
} else {
throw new Error('No Image URL found for model: ' + model);
}
}
Api By @DEVSNP
Also Code by Nepcoder
Dev : NEP CODER @DEVSNP
Published By : @DEVSNP
Copyright ©️:@DEVSNPTitle: "Stable Diffusion AI Image Generation API: Transform Images with Artificial Intelligence"*
API PURPOSE: 🎨 Step into the world of image transformation with the Stable Diffusion AI Image Generation API. Harness the power of cutting-edge artificial intelligence to create stunning and captivating images that push the boundaries of creativity.
USAGE: 🖼️ Seamlessly integrate the API into your applications to unlock the potential of image diffusion. Simply send a prompt in the "prompt" parameter to the endpoint, triggering the AI to generate awe-inspiring visuals that captivate your audience.
EXAMPLE: 🌐
https://stablediffu.apinepdev.workers.dev/?prompt=A Young Boy On Road
PROCESSING: 🔁 Your prompt triggers the AI to undergo stable diffusion, a sophisticated process that enhances and transforms images into mesmerizing works of art. Watch as your input sparks a creative journey, resulting in visually striking outputs.
RESPONSE: ✨ Receive a response containing the AI-generated image, showcasing the artistic prowess and innovation of the Stable Diffusion AI. Witness the magic of AI-driven image generation, elevating your visual content to new heights.
👨💻 Brought to You by NEP CODER
JOIN: @DEVSNP 🚀
Elevate your applications with AI-enhanced images, blending technology and creativity seamlessly. 🎨🤖🖼️🚀.