Skip to main content

Free AI image generator - n8n automation workflow with Gemini/ChatGPT

Workflow preview

Workflow preview
100%
Free AI image generator - n8n automation workflow with Gemini/ChatGPT preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n template demonstrates how to use AI to generate custom images from scratch fully automated, prompt driven, and ready to deploy at scale. Use cases are many: You can use it for marketing vi...

Best for

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

Tools used

n8n-nodes-base.set, @n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.code, n8n-nodes-base.httprequest, n8n-nodes-base.telegramtrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.agent

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Agent Circle.

Original n8n.io source

1.1 Workflow description

Title
Free AI image generator - n8n automation workflow with Gemini/ChatGPT
Workflow name
Free AI image generator - n8n automation workflow with Gemini/ChatGPT

This n8n template demonstrates how to use AI to generate custom images from scratch - fully automated, prompt-driven, and ready to deploy at scale.

Use cases are many: You can use it for marketing visuals, character art, digital posters, storyboards, or even daily image generation for your personal purposes.

How It Works

  • The flow is triggered by a chat message in N8N or via Telegram. The default image size is 1080 x 1920 pixels. To use a different size, update the values in the “Fields - Set Values” node before triggering the workflow.
  • The input is parsed into a clean, structured prompt using a multi-step transformation process.
  • Our AI Agent sends the final prompt to Google Gemini’s image model for generation (you can also integrate with OpenAI or other chat models).
  • The raw image data created by the AI Agent will be run through a number of codes to make sure it's feasible for your preview if needed and downloading.
  • Then, we use an HTTP node to fetch the result so you can preview the image.
  • You can send it back to the chat message in N8N or Telegram, or save it locally to your disk.

How To Use

  • Download the workflow package.
  • Import the package into your N8N interface.
  • Set up the credentials in the following nodes for tool access and usability: "Telegram Trigger"; "AI Agent - Create Image From Prompt"; "Telegram Response" or "Save Image To Disk" (based on your wish).
  • Activate the "Telegram Response" OR "Save Image To Disk" node to specify where you want to save your image later.
  • Open the chat interface (via N8N or Telegram).
  • Type your image prompt or detailed descriptions and send.
  • Wait for the process to run and finish in a few seconds.
  • Check the result in your desired saving location.

Requirements

  • Google Gemini account with image generation access.
  • Telegram bot access and chat setup (optional).
  • Connection to local storage (optional).

How To Customize

  • We’re setting the default image size to 1080 x 1920 pixels and the default image model to "flux". You can customize both of these values in the “Fields – Set Values” node. Supported image model options include: "flux", "kontext", "turbo", and "gptimage".
  • In the “AI Agent – Create Image From Prompt” node, you can also change the AI chat model. By default, it uses Google Gemini, but you can easily replace it with OpenAI ChatGPT, Microsoft AI Copilot, or any other compatible provider.

Need Help?

Join our community on different platforms for support, inspiration and tips from others.

Website: https://www.agentcircle.ai/ Etsy: https://www.etsy.com/shop/AgentCircle Gumroad: http://agentcircle.gumroad.com/ Discord Global: https://discord.gg/d8SkCzKwnP FB Page Global: https://www.facebook.com/agentcircle/ FB Group Global: https://www.facebook.com/groups/aiagentcircle/ X: https://x.com/agent_circle YouTube: https://www.youtube.com/@agentcircle LinkedIn: https://www.linkedin.com/company/agentcircle

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 - Fields - Set Values

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

Block 2 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 3 - Code - Clean Json

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Code - Get Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - HTTP Request - Create Image

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

Block 6 - Telegram Trigger

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

Block 7 - Code - Set Filename

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 9 - Sticky Note1

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note2

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

Block 12 - Sticky Note3

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

Block 13 - Sticky Note4

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

Block 14 - AI Agent - Create Image From Prompt

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 15 - Telegram Response

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

Block 16 - Save Image To Disk

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

3. Summary Table

Workflow Free AI image generator - n8n automation workflow with Gemini/ChatGPT
Complexity advanced
Nodes 16
Categories Content Creation, Multimodal AI
Author Agent Circle
Published 03 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5626/5626.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 Free AI image generator - n8n automation workflow with Gemini/ChatGPT do?

This n8n template demonstrates how to use AI to generate custom images from scratch fully automated, prompt driven, and ready to deploy at scale. Use cases are many: You can use it for marketing vi...

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.