n8n + ApexApi
How to Generate Images with GPT Image 2 in n8n
POST a prompt to this workflow's webhook and it returns a freshly generated GPT Image 2 image. It is a clean, three-node endpoint: a webhook in, the ApexApi image node in the middle, and a response out. Call it from any app, or drop it into a larger workflow as a reusable image sub-workflow. One API key covers it.
What you'll build
- •A webhook that turns a prompt into an image, no glue code
- •GPT Image 2 by default, with its strong text rendering
- •Reusable as a sub-workflow inside a bigger automation
- •Pay per image on one ApexApi key; swap the model with one field
Set it up in 4 steps
Get a free ApexApi key
ak-.Install the community node
n8n-nodes-apexapi (0.2.0+).Import this template
Add your key and run
FAQ
How do I call it?
Activate the workflow, then POST to the webhook URL with a JSON body like { "prompt": "a red bicycle leaning on a blue wall" }. The response contains the generated image.
Can I use a different image model?
Yes. Open the Generate image node and change the model field to any image model in the catalog, for example black-forest-labs/flux-2-pro.
What does it cost?
You pay per image, billed to your ApexApi credit balance. GPT Image 2 pricing scales with size and quality; see the model page for live rates.
More n8n templates
- Summarize Any Website with AI in n8n
- Scrape Amazon Product Data in n8n
- Crawl a Website into an AI Knowledge Base with n8n
- Build a Competitor Price Monitor in n8n
- Enrich Leads from Crunchbase in n8n
- Auto-Summarize News from RSS in n8n
See all node operations in the n8n integration docs.