Generate and Edit Images with OpenAI's GPT-Image-1 Model
Ready for 3.0What this workflow does
This workflow has 5 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes. It also calls api.openai.com over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Create image call (HTTP Request): calls api.openai.com (POST)
- Convert json binary to File (Convert to File): converts data to a file (to binary)
- Edit Image (OpenAI) (HTTP Request): calls api.openai.com (POST)
- Convert json binary to File final (Convert to File): converts data to a file (to binary)
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (3)
- Manual Trigger
n8n-nodes-base.manualTrigger - HTTP Request
n8n-nodes-base.httpRequest - Convert to File
n8n-nodes-base.convertToFile
From the author
This template integrates OpenAI's image generation and editing endpoints via the GPT-Image-1 model to visually create and manipulate images based on prompts. It features base64 conversion, binary handling, and prompt chaining. Perfect for marketing, design,…