Generate custom AI images with OpenAI 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”.
- Set Variables (Edit Fields (Set)): sets 5 fields: image_prompt, number_of_images, quality_of_image…
- OpenAI - Generate Image (HTTP Request): calls api.openai.com (POST)
- Separate Image Outputs (Split Out): splits a list into separate items
- 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 (5)
- Convert to File
n8n-nodes-base.convertToFile - HTTP Request
n8n-nodes-base.httpRequest - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut
From the author
How it works 1. Trigger the workflow manually via the n8n UI. 2. Define key parameters like the image prompt, number of images, size, quality, and model. 3. Send a POST request to OpenAI’s image generation API using those inputs. 4. Split the API response to…