Templates / Generate AI images in Telegram with GPT-4o enhancement and Flux Pro

Generate AI images in Telegram with GPT-4o enhancement and Flux Pro

Unknown

by AI/ML API | D1m7asis ✓ · 3,669 views · created 2025-07-29 · Content Creation, Multimodal AI

Unknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs on Telegram events (message). Along the way it connects Telegram, Google Sheets and Aimlapi (community). It also calls api.aimlapi.com over HTTP.

How it runs

Trigger: On Telegram events (message).

  1. 📊 Fetch Usage Logs (Google Sheets): uses Google Sheets
  2. 📈 Count Today’s Requests (Aggregate): combines items into one
  3. 🔢 Set Daily Limit (Edit Fields (Set)): sets 1 field: daily_limit
  4. 🚦 Check Limit Exceeded? (If): checks a condition and branches into true / false
  5. 🧠 Enhance Prompt (AI/ML API | GPT-4o) (Aiml Api): uses Aiml Api
  6. 🚫 Notify: Limit Exceeded (Telegram): uses Telegram
  7. 🎨 Generate Image (AI/ML API | flux-pro) (HTTP Request): calls api.aimlapi.com (POST)
  8. 🖋 Describe Image (AI/ML API | GPT-4o) (Aiml Api): uses Aiml Api
  9. 📤 Send Image to User (Telegram): send photo
  10. 📝 Log Successful Generation (Google Sheets): append

Services it uses

TelegramGoogle SheetsAimlapi (community)

HTTP calls to: api.aimlapi.com

Before you upgrade to n8n 3.0

We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).

  • Check that n8n-nodes-aimlapi is verified or supports 3.0 (used in 🧠 Enhance Prompt (AI/ML API | GPT-4o), 🖋 Describe Image (AI/ML API | GPT-4o)).

Nodes used (8)

From the author

🧠 AI Image Generator Bot — Telegram + AI/ML API This n8n workflow allows users to generate AI-generated images by sending messages to a Telegram bot. Each request is logged in Google Sheets and limited by a daily quota per user. Image prompts are enhanced by…

Excerpt from AI/ML API | D1m7asis's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.