DEV Community

Kushalka
Kushalka

Posted on

I built a Telegram bot that generates anime images

I've been generating anime-style images with Stable Diffusion locally for a while. At some point I noticed I was repeating the same loop every day: open the web UI, type a prompt, wait, download, send it to a friend. So I did what any reasonable person does at 2am — I wrapped the whole thing into a Telegram bot.

Stable Diffusion Bot is simple: you send a prompt, you get an image back. A few things it can do:

  • several anime checkpoints to pick from, each with a different vibe
  • styles and LoRAs you can stack on top of a model
  • negative prompts, sampler and step settings if you like to tinker
  • albums — multiple variations of one prompt in a single message
  • a free tier for everyone (a premium mode unlocks additional content categories)

The surprise for me was that the model is maybe 20% of the work. The rest is plumbing: queueing requests so a popular checkpoint doesn't melt the GPU, deduplicating button taps, sending albums as multipart without Telegram complaining about it.

Here are a couple of images straight from the bot:

a glowing cheeseburger with anime-style energy effects
an anime girl with horns

Try it here: Stable Diffusion Bot — the site with docs is kushalka.dpdns.org.

It's free to start. Feedback is welcome, especially prompt ideas I should test.

Top comments (0)