AI Text-to-Image for Telegram (Gemini + Hugging Face FLUX)
Turn text prompts into stunning AI-generated images—automatically! ## What it does? This workflow lets your Telegram bot: 1. Receive a user's image description (e.g., a cyberpunk cat wearing sunglasses). 2. Refine the prompt using AI (Gemini/OpenAI) for better results. 3. Generate the image via Hugging Face's free API (no costs!). 4. Send the final image back to the user—all in seconds! ## How It Works? - **Telegram Trigger** Listens for user messages (e.g., “/image a futuristic cityscape”). - **AI Prompt Refinement** Uses Google Gemini (or OpenAI) to optimize the input for the image model. - **AI Image Generation** Calls Hugging Face's Together API (free tier) to create the image. Supports models like black-forest-labs/FLUX.1-schnell. - **Auto-Delivery** Downloads the image and sends it in the Telegram chat. ## Setup Guide (3 Minutes!) ### 1. **Prerequisites** - An n8n instance (cloud/self-hosted). - A Telegram bot token (get it from @BotFather). - A Hugging Face API token (free: https://huggingface.co/). ### 2. **Installation** - Import the JSON template into n8n. - Replace placeholders: - Telegram API token (in the Telegram nodes). - Hugging Face API token (in the HTTP Request node). (Optional) Swap Gemini for OpenAI if preferred. ### 3. **Done!** Activate the workflow—your bot is now ready to create stunning images! Simply send a command like: “Hey, generate an image of a warrior standing on top of a mountain.” You can keep your prompt casual or get as detailed as you like. The AI will interpret your request and craft a full, descriptive prompt for image generation. For example: “Generate an image of a warrior wearing tattered clothes, chest out, standing on a snowy mountain.” ## Why Use This Template? 1. 100% Free - Uses Hugging Face's free tier (no OpenAI costs). 2. No Coding - Fully visual n8n workflow. 3. Customizable - Swap AI models (Gemini/OpenAI) or image APIs. 4. Instant Results - Users get images in seconds.
Turn text prompts into stunning AI-generated images—automatically!
What it does?
This workflow lets your Telegram bot:
- Receive a user's image description (e.g., a cyberpunk cat wearing sunglasses).
- Refine the prompt using AI (Gemini/OpenAI) for better results.
- Generate the image via Hugging Face's free API (no costs!).
- Send the final image back to the user—all in seconds!
How It Works?
-
Telegram Trigger Listens for user messages (e.g., “/image a futuristic cityscape”).
-
AI Prompt Refinement Uses Google Gemini (or OpenAI) to optimize the input for the image model.
-
AI Image Generation Calls Hugging Face's Together API (free tier) to create the image. Supports models like black-forest-labs/FLUX.1-schnell.
-
Auto-Delivery Downloads the image and sends it in the Telegram chat.
Setup Guide (3 Minutes!)
1. Prerequisites
- An n8n instance (cloud/self-hosted).
- A Telegram bot token (get it from @BotFather).
- A Hugging Face API token (free: https://huggingface.co/).
2. Installation
- Import the JSON template into n8n.
- Replace placeholders:
- Telegram API token (in the Telegram nodes).
- Hugging Face API token (in the HTTP Request node).
(Optional) Swap Gemini for OpenAI if preferred.
3. Done!
Activate the workflow—your bot is now ready to create stunning images! Simply send a command like: “Hey, generate an image of a warrior standing on top of a mountain.”
You can keep your prompt casual or get as detailed as you like. The AI will interpret your request and craft a full, descriptive prompt for image generation. For example: “Generate an image of a warrior wearing tattered clothes, chest out, standing on a snowy mountain.”
Why Use This Template?
- 100% Free - Uses Hugging Face's free tier (no OpenAI costs).
- No Coding - Fully visual n8n workflow.
- Customizable - Swap AI models (Gemini/OpenAI) or image APIs.
- Instant Results - Users get images in seconds.
New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.
Related bundle
Content Repurposing Engine
8 hand-picked workflows for $29.00.
That is $3.63 each, vs $9.99 for this one alone.
View bundleSecure checkout powered by Stripe
Support
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related AI workflows
- Launch Your First AI-Powered Chatbot with Actionable Tools$9.99
- Build a WhatsApp Assistant with Memory, Google Suite, Multi-AI, Research, and Imaging$24.99
- Automate AI Video Creation and YouTube Upload with Google Sheets$14.99
- Automate Blog Post Creation and Publishing with GPT, Leonardo AI, and WordPress$14.99
- Automate SEO Keyword Generation with ChatGPT from Google Sheets$3.99
- Email Agent$500.99
More from Malik Hashir
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.