Skip to main content

Generate & edit images with OpenAI GPT-Image-1 and share via Telegram

Workflow preview

Workflow preview
100%
Generate & edit images with OpenAI GPT-Image-1 and share via Telegram preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

AI Image Generator & Editor with GPT 4 Vision Complete Workflow Template Description Transform text prompts into stunning images or edit existing visuals using OpenAI's latest GPT 4 Vision model th...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googledrive, n8n-nodes-base.httprequest, n8n-nodes-base.converttofile, n8n-nodes-base.stickynote, n8n-nodes-base.formtrigger, n8n-nodes-base.set, n8n-nodes-base.telegram, n8n-nodes-base.switch

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Alexey from Mingles.ai.

Original n8n.io source

1.1 Workflow description

Title
Generate & edit images with OpenAI GPT-Image-1 and share via Telegram
Workflow name
Generate & edit images with OpenAI GPT-Image-1 and share via Telegram

AI Image Generator & Editor with GPT-4 Vision - Complete Workflow

Template Description

Transform text prompts into stunning images or edit existing visuals using OpenAI's latest GPT-4 Vision model through an intuitive web form interface.

This comprehensive n8n automation provides three powerful image generation modes:

🎨 Text-to-Image Generation

Simply enter a descriptive prompt and generate high-quality images from scratch using OpenAI's gpt-image-1 model. Perfect for creating original artwork, concepts, or visual content.

πŸ–ΌοΈ Image-to-Image Editing

Upload an existing image file and transform it based on your text prompt. The AI analyzes your input image and applies modifications while maintaining the original structure and context.

πŸ”— URL-Based Image Editing

Provide a direct URL to any online image and edit it with AI. Great for quick modifications of web images or collaborative workflows.

Key Features

Smart Input Processing

  • Flexible Form Interface: User-friendly web form with authentication
  • Multiple Input Methods: File upload, URL input, or text-only generation
  • Quality Control: Selectable quality levels (low, medium, high)
  • Format Support: Accepts PNG, JPG, and JPEG formats

Advanced AI Integration

  • Latest GPT-4 Vision Model: Uses gpt-image-1 for superior results
  • Intelligent Switching: Automatically detects input type and routes accordingly
  • Context-Aware Editing: Maintains image coherence during modifications
  • Customizable Parameters: Control size (1024x1024), quality, and generation settings

Dual Storage Options

  • Google Drive Integration: Automatic upload with public sharing permissions
  • ImgBB Hosting: Alternative cloud storage for instant public URLs
  • File Management: Organized storage with timestamp-based naming

Instant Telegram Delivery

  • Real-time Notifications: Results sent directly to your Telegram chat
  • Rich Media Messages: Includes generated image with prompt details
  • Quick Access Links: Direct links to view and download results
  • Markdown Formatting: Clean, professional message presentation

Technical Workflow

  1. Form Submission β†’ User submits prompt and optional image
  2. Smart Routing β†’ System detects input type (text/file/URL)
  3. AI Processing β†’ OpenAI generates or edits image based on mode
  4. Binary Conversion β†’ Converts base64 response to downloadable file
  5. Cloud Upload β†’ Stores in Google Drive or ImgBB with public access
  6. Telegram Delivery β†’ Sends result with viewing links and metadata

Perfect For

  • Content Creators: Generate unique visuals for social media and marketing
  • Designers: Quick concept development and image variations
  • Developers: Automated image processing for applications
  • Teams: Collaborative image editing and sharing workflows
  • Personal Use: Transform ideas into visual content effortlessly

Setup Requirements

  • OpenAI API Key: Access to GPT-4 Vision model
  • Google Drive API (optional): For Google Drive storage
  • ImgBB API Key (optional): For alternative image hosting
  • Telegram Bot: For result delivery
  • Basic Auth Credentials: For form security

What You Get

βœ… Complete image generation and editing pipeline
βœ… Secure web form with authentication
βœ… Dual cloud storage options
βœ… Instant Telegram notifications
βœ… Professional result formatting
βœ… Flexible input methods
βœ… Quality control settings
βœ… Automated file management

Start creating AI-powered images in minutes with this production-ready template!


Tags: #AI #ImageGeneration #OpenAI #GPT4 #ImageEditing #Telegram #GoogleDrive #Automation #ComputerVision #ContentCreation

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Set Access Permissions

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 2 - Edit Image (OpenAI)

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Convert json binary to File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 4 - Convert json binary to File final

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 5 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - On form submission

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.2

Block 9 - Upload Result Image to imgbb

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Upload Result Image to Google Drive

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 11 - File Link

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Get Input Image by URL

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - SETUP API KEY

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 14 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Image Generation

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 16 - File Link1

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Send to Telegram

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 18 - Switch Mode

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

3. Summary Table

Workflow Generate & edit images with OpenAI GPT-Image-1 and share via Telegram
Complexity advanced
Nodes 18
Categories Content Creation, Multimodal AI
Author Alexey from Mingles.ai
Published 26 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4391/4391.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate & edit images with OpenAI GPT-Image-1 and share via Telegram do?

AI Image Generator & Editor with GPT 4 Vision Complete Workflow Template Description Transform text prompts into stunning images or edit existing visuals using OpenAI's latest GPT 4 Vision model th...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.