AutomationMart
Home/Browse/Generate AI images via Telegram with WaveSpeed, credit system, PIX and S3
n8n

Generate AI images via Telegram with WaveSpeed, credit system, PIX and S3

n8nn8n90 modulesv1.0
StripeTelegram

Generate images via Telegram using an AI bot with a credit system and S3 storage A complete, production-ready Telegram bot for AI-powered image generation and editing, featuring a built-in credit system, payment integration, and cloud storage. --- โœจ Features ๐ŸŽจ AI Image Generation - Text-to-Image: Generate stunning images from text prompts using the Nano Banana Pro Ultra model via WaveSpeed API - Image-to-Image Editing: Edit existing images by sending a photo with a caption describing the desired

At a glance

Generate AI images via Telegram with WaveSpeed, credit system, PIX and S3 is a ready-made n8n workflow you import as a workflow JSON file โ€” no build required. It connects Stripe, Telegram. It's free to download. Follow the 5-step import below to go live in minutes.

Platform
n8n
Connects
Stripe, Telegram
Modules
90
Price
Free
Version
v1.0
Generate AI images via Telegram with WaveSpeed, credit system, PIX and S3 workflow diagram

About this workflow

Generate images via Telegram using an AI bot with a credit system and S3 storage A complete, production-ready Telegram bot for AI-powered image generation and editing, featuring a built-in credit system, payment integration, and cloud storage. --- โœจ Features ๐ŸŽจ AI Image Generation - Text-to-Image: Generate stunning images from text prompts using the Nano Banana Pro Ultra model via WaveSpeed API - Image-to-Image Editing: Edit existing images by sending a photo with a caption describing the desired changes - Multiple Resolutions: Support for both 4K and 8K output quality - Flexible Aspect Ratios: Choose from 10 different aspect ratios (1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9) ๐Ÿ’ณ Credit Management System - Per-generation billing: Different costs for 4K vs 8K resolution - Balance tracking: Real-time credit balance displayed to users - Initial credits: New users receive starter credits automatically - Insufficient balance handling: Graceful messages when credits run out Here's the adjusted payment section: --- ๐Ÿ’ฐ Payment Integration (Mercado Pago PIX) > About PIX: PIX is Brazil's instant payment system, launched by the Central Bank of Brazil in 2020. It allows instant money transfers 24/7, 365 days a year, using QR codes or copy-paste codes. It has become the most popular payment method in Brazil due to its speed and zero fees for individuals. This workflow includes a fully integrated PIX payment flow as a reference implementation. You can adapt it to your local payment provider. Features: - Multiple deposit options: Pre-configured credit packages (R$ 3, R$ 6, R$ 10) - QR Code generation: Automatic PIX QR code sent directly to users via Telegram - Copy-paste code: PIX code provided for manual payment - Webhook confirmation: Real-time payment status updates via Mercado Pago webhooks - Auto credit top-up: Credits added automatically upon payment approval - Payment status handling: Supports approved, pending, and rejected states > ๐Ÿ’ก Tip: To adapt this for other regions, replace the Mercado Pago nodes with your preferred payment gateway (Stripe, PayPal, etc.) while keeping the same credit update logic. --- โš™๏ธ User Configuration - Resolution settings: Users can set their preferred default resolution - Aspect ratio preferences: Save preferred aspect ratio for future generations - Custom default prompts: Set a default prompt that's automatically appended to all generations - Persistent settings: All preferences stored in n8n Data Tables ๐Ÿ“ฆ Cloud Storage (S3/MinIO) - Automatic upload: Generated images are automatically uploaded to S3-compatible storage - Persistent URLs: Images remain accessible via permanent links - Edit from storage: Reference previously uploaded images for editing --- ๐Ÿ› ๏ธ Tech Stack | Component | Technology | |-----------|------------| | Bot Platform | Telegram Bot API | | AI Generation | WaveSpeed API (Nano Banana Pro) | | Storage | S3-compatible (MinIO/AWS S3) | | Database | n8n Data Tables | | Payments | Mercado Pago PIX | | Automation | n8n | --- ๐Ÿ“‹ Prerequisites Before using this workflow, you'll need: 1. Telegram Bot Token - Create a bot via @BotFather 2. WaveSpeed API Key - Sign up at WaveSpeed 3. S3-compatible Storage - MinIO, AWS S3, or any S3-compatible service 4. Mercado Pago Account (optional) - For payment integration 5. n8n Data Table - Create a table with the required schema --- ๐Ÿ“Š Data Table Schema Create a Data Table with the following columns: | Column | Type | Description | |--------|------|-------------| | chatid | String | Telegram chat ID (primary key) | | username | String | Telegram username | | status | String | Current user state in the flow | | credits | String | User's credit balance | | resolution | String | Preferred resolution (4k/8k) | | aspectratio | String | Preferred aspect ratio | | userdefaultprompt | String | Custom default prompt | | numberimages | Number | Total images generated | | numbervideos | Number | Total videos generated | | demosended | Boolean | Welcome demo sent flag | --- โšก Quick Setup 1. Import the workflow into your n8n instance 2. Configure the Global Environment node with your settings: - botName: Your bot's display name - botToken: Your Telegram bot token - dataTableId: Your n8n Data Table ID - bucketName: Your S3 bucket name - initialCredits: Credits given to new users - generateImageCost4k: Cost per 4K image - generateImageCost8k: Cost per 8K image 3. Set up credentials: - Telegram API credentials - WaveSpeed API credentials - S3 credentials - Mercado Pago credentials (if using payments) 4. Activate the workflow --- ๐ŸŽฎ Bot Commands | Command | Description | |---------|-------------| | /start | Initialize bot and receive welcome message | | menu | Return to main menu | | config | Open settings menu | | Any text | Generate image from prompt (when in generation mode) | | Photo + caption | Edit the photo based on the caption | --- ๐Ÿ”„ Workflow Flow --- ๐Ÿ“ Notes - The workflow uses polling to check generation status - WaveSpeed processes may take up to 1 minute - Credits are deducted when the task is submitted and refunded if generation fails - All user states are managed through the Data Table for persistence across restarts --- ๐Ÿ“„ License Free to use and modify. Attribution appreciated but not required. ---

n8n

How to import this n8n workflow

  1. 1

    Download the workflow JSON file after purchase.

  2. 2

    Open n8n โ†’ click the menu โ†’ Import from File.

  3. 3

    Select the downloaded JSON and import.

  4. 4

    Set up credentials for each node that requires them.

  5. 5

    Click Execute Workflow to test, then activate.

Setup guide

Setup guide included

Purchase to unlock the full step-by-step guide

Related N8n workflows

Auto-post Dev.to articles to LinkedIn with Airtable tracking & Telegram alerts

Problem This Solves: For developers and creators, consistently posting quality content on LinkedIn can be time-consuming. This workflow automates the process by: Fetching the latest Dev.to articles Posting them to LinkedIn twice daily Preventing duplicates using Airtable Sending success alerts to Telegram This ensures you're always active on LinkedIn, with zero manual effort. ๐Ÿ‘ฅ Who This Template Is For Developers who want to build their presence on LinkedIn Tech creators or solo founders looking

Free

Get new emails from Zoho Mail in Telegram

Every time a new email is received in a selected Zoho Mail folder, Make will automatically send a message in Telegram.

Free

Automated template delivery system with Stripe, GPT-4o & Gmail

Description Automate post-purchase workflows by instantly fetching successful Stripe payments, matching them to corresponding automation templates in Google Sheets, and sending customers personalized access emails using AI-generated content. This system ensures each buyer receives their digital template, password, and onboarding details automatically after payment. ๐Ÿ’ณ๐Ÿ“ฉ๐Ÿค– What This Template Does - Step 1: Triggers daily at 7:00 AM IST to fetch all successful payment charges from Stripe. โฐ - Step 2:

Free

Create Stripe customers with new or updated Salesforce contacts

With this automation, Make fetches new/updated contacts in Salesforce and creates/updates customers in Stripe for you.

Free

Send a Telegram message and add a row in Google Sheets for new Facebook Lead Ads submissions

Automatically send a Telegram message and log details in Google Sheets for every new Facebook Lead Ads submission, streamlining your lead management process.

Free

Send new file from OneDrive to a Telegram channel

Every time a new file is uploaded to your OneDrive, Make will automatically send that file to Telegram channel you specify.

Free

Auto-generate and post Instagram reels with Veo3, OpenAI, and Blotato

Veo3 Instagram Agent โ€“ Create & Auto-Post Reels with Blotato Description: This no-code workflow automates the full pipeline of generating and publishing Instagram Reels using Veo3 (via Wavespeed API). From prompt to post, it handles content ideation, short-form video generation, caption writing, logging, and even automatic publishing to Instagram via Blotato. Perfect for creators, brands, and marketers who want to scale content creation without needing to shoot or edit videos manually. ๐Ÿ”— W

Free

Extract and structure X Post Comments with Airtop Browser Automation

Extracting Comments from an X Post Use Case Engaging with conversations on X (formerly Twitter) is critical for brands and individuals monitoring sentiment, leads, or emerging trends. Manually collecting comments is time-consumingโ€”this automation enables scalable extraction of comment data to inform your outreach or analysis. What This Automation Does This automation extracts comments from a specified X post, with the following input parameters: - airtopprofile: The name of your Airtop Profile c

Free

Reviews

No reviews yet

Be the first to buy and share your experience.

Leave a review

Sign in to share your experience with this workflow.

Log in to review
Free
No ratings yet

Create a free account to purchase workflows.

  • JSON blueprint โ€” instant download
  • Setup guide PDF included
  • 5 downloads ยท valid 30 days
  • Works with n8n

Need help setting this up?

Book a 3-hour live setup session with an Agility consultant.

โ‚น2,499/ session
3 hrs ยท video call
  • Configure live on Google Meet / Zoom
  • Free follow-up if workflow has defects
  • Platform expert assigned to you
Book installation session
Free