Skip to content

Instantly share code, notes, and snippets.

@manzxy
Created December 20, 2025 07:56
Show Gist options
  • Select an option

  • Save manzxy/5e4d83a6f4b70724520fd76591fcdf56 to your computer and use it in GitHub Desktop.

Select an option

Save manzxy/5e4d83a6f4b70724520fd76591fcdf56 to your computer and use it in GitHub Desktop.
Uploaded via YogiriMD
/**
Fitur:["Flux Ai"]
Sumber:["https://whatsapp.com/channel/0029VbBS8ys0G0XnmJFRiV2v"]
**/
import axios from "axios"
let handler = async (m, { conn, text }) => {
if (!text) return m.reply("Contoh:\n.flux cyberpunk girl")
try {
const { data } = await axios.post(
"https://fluxai.pro/api/tools/fast",
{ prompt: text },
{ timeout: 3e4 }
)
const img = data?.data?.imageUrl
if (!data?.ok || !img) throw 0
await conn.sendMessage(
m.chat,
{ image: { url: img }, caption: `🖼️ FLUX AI\n\n${text}` },
{ quoted: m }
)
} catch {
m.reply("❌ Gagal generate image")
}
}
handler.command = /^flux$/i
handler.tags = ["ai"]
handler.help = ["flux <prompt>"]
handler.limit = true
export default handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment