π¬ Generate anime images via Telegram with LLM-enhanced prompts and Gemini/Leonardo.AI
β‘ 586 views Β· π¬ Content Creation & Video
Description
π¨ Anime Image Generator with LLM-Enhanced Prompts
This workflow turns a short text idea into stunning, AI-generated anime-style images, all from Telegram.
It combines a chat LLM for prompt enhancement with Gemini (free) or Leonardo.AI (paid) image models.
π What It Does
- Accepts a text prompt sent via Telegram.
- Uses an LLM (DeepSeek via OpenRouter) to expand and enrich the idea into several anime-ready prompts.
- Lets you choose the image engine:
- Gemini (90-day free trial with a GCP account).
- Leonardo.AI (paid, higher-fidelity anime rendering).
- Generates 4 images per query, converts them to files, and delivers the images back to your Telegram chat.
βοΈ How It Works
- Telegram Trigger β waits for a text message from you.
- Image-count Node β stores your prompt & sets how many images to create (default: 4).
- Prompt Generator (LLM) β transforms your simple prompt into multiple detailed, visually rich anime prompts.
- Split & Loop β sends each refined prompt to the chosen image generator.
- Image Generator:
- Default: HTTP-Gemini node.
- Alternative: HTTP-Leonardo AI node (swap in for better quality).
- Convert to File & Send β decodes the generated images and sends them back to you on Telegram.
π Setup
- Telegram Bot
- Create a bot using BotFather.
- Add your Bot Token & your Telegram User ID to the workflow (look for βConfigure Me!β sticky notes).
- LLM Provider
- Default: DeepSeek via OpenRouter β used to expand prompts.
- You can swap this with any other chat LLM you prefer.
- Image Engine
- Default: Gemini (free trial, good baseline quality).
- Optional: Leonardo.AI for anime-focused, premium-quality images.
Replace theHTTP-Gemininode with theHTTP-Leonardo AInode and set up your Leonardo API key as a Header Auth credential.
- Optional Adjustments
- Change default number of images in the
Image-countnode. - Tweak the LLM prompt template for different artistic styles (e.g., pastel slice-of-life, fantasy, action, cyberpunk).
- Change default number of images in the
π‘ Tips
- Start with short, plain prompts β e.g.,
girl with umbrella in neon city street at night
The LLM will enrich it automatically. - If images look flat, try Leonardo.AI or adjust the prompt style and guidance scale.
- Avoid NSFW or copyrighted character prompts β follow the providersβ usage policies.
- Keep your API keys private and never share them in screenshots.
π₯ Who Is This For
- Anime creators & hobbyists who want to visualize characters or scenes quickly.
- Content creators & social posters who want to share unique anime-style visuals.
- Anyone who wants easy AI image generation via Telegram, without needing to master prompt engineering.
β¨ Ready to go:
Run the workflow, send a prompt to your Telegram bot, and watch it turn into beautiful anime images.
π Nodes Used
HTTP Request, Telegram, Telegram Trigger, Basic LLM Chain, Structured Output Parser, Convert to File
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File