# 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 pre

- **Domain**: `n8n-workflow-5626.n8n.io`
- **Provider**: n8n.io (https://n8n.io)
- **Kind**: workflow
- **Category**: media
- **Live-responds (last probe)**: None
- **Signed card**: False
- **Streaming**: False
- **Quality score**: 40%

## URLs
- Agent card: https://n8n.io/workflows/5626
- Page (HTML): https://agenstry.com/agents/n8n-workflow-5626.n8n.io
- Documentation: https://n8n.io/workflows/5626
