OpenAI
GPT Image 2
· Experimental · Partner model · Premium · Generate from a description, with a reasoning pass ahead of generation. The gain is clearest on prompts with several interacting constraints — a layout with specified positions, a scene with a set number of objects, or a design that has to carry a specific line of text. Output runs from 512px up to 2048px.
gpt-image-2- Endpoint
POST /api/v2/run- Input
- Text prompt · Reference images
- Output
- Image (PNG / WebP)
- Rate
- ~$0.0845 / 1024×1024
Sample prompt“A detailed technical cutaway illustration of a mechanical wristwatch movement, precise line-and-wash rendering on cream paper, the mainspring barrel, escapement, balance wheel and gear train all visible and individually …”
Best for
- Live text-to-image generation and multipart image editing on POST /api/v2/run under one API key
- Free pre-run cost quotes via POST /api/v2/quote before committing credits
- Partner flagship image quality through one API key with spend caps enforced at submission
- API model ID
gpt-image-2- Model developer
- OpenAI
- Modality
- Image Generation & Editing
- Input
- Text prompt · Reference images
- Output
- Image (PNG / WebP)
- Endpoints
POST /api/v2/quotePOST /api/v2/runGET /api/v2/jobs/{request_id}GET /api/v2/jobs/{request_id}/outputMCP runstage_generate_media- Infrastructure
- Partner cloud capacity
Request parameters
modelstring · requiredExact Runstage model slug (gpt-image-2).
promptstring · requiredVisual description of subject, composition, lighting, and medium.
width / heightinteger · optionalOutput pixel dimensions (e.g. 1024×1024 or 1536×1024).
Additional parameters
qualityseedenhance_prompt
Quickstart
Copy a working request using model ID gpt-image-2. Check a free pre-run quote first (final cost settles on completion), then run with your Runstage API key.
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
-H "Content-Type: application/json" \
-d '{"model":"gpt-image-2","width":1024,"height":1024}'
# 2. Submit metered job
curl -X POST 'https://runstage.dev/api/v2/run' \
-H "Authorization: Bearer $RUNSTAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "model": "gpt-image-2", "prompt": "A detailed technical cutaway illustration of a mechanical wristwatch movement, precise line-and-wash rendering on cream paper, the mainspring barrel, escapement, balance wheel and gear train all visible and individually labelled with fine leader lines, an ornate title block at the lower right reading \"CALIBRE 7 - EXPLODED VIEW\", draughtsman precision, muted sepia and slate palette", "width": 1024, "height": 1024, "seed": 42 }'
# Optional: switch to image editing (img2img) by uploading multipart -F "image=@input.png"
# curl -X POST 'https://runstage.dev/api/v2/run' -H "Authorization: Bearer $RUNSTAGE_API_KEY" --form-string 'model=gpt-image-2' --form-string 'prompt=A detailed technical cutaway illustration of a mechanical wristwatch movement, precise line-and-wash rendering on cream paper, the mainspring barrel, escapement, balance wheel and gear train all visible and individually labelled with fine leader lines, an ornate title block at the lower right reading "CALIBRE 7 - EXPLODED VIEW", draughtsman precision, muted sepia and slate palette' -F "image=@input.png"
# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
'https://runstage.dev/api/v2/jobs/<request_id>'Pricing
| Billable unit and options | Rate (USD) |
|---|---|
| Standard · 1024×1024Production square artwork (estimated) | ~$0.0845 |
| Widescreen · 1536×1024Hero & banner aspect ratio (estimated) | ~$0.0974 |
| Portrait · 1024×1536Vertical editorial & mobile layout (estimated) | ~$0.0974 |
Billing notes
- Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.
- Free pre-run cost estimates are available via POST /api/v2/quote before committing prepaid credits.
- Upfront reservations automatically reconcile against settled execution cost on completion or failure, refunding any unused reserved credits.
- Served via partner external capacity; final settled cost reconciles against reported execution metrics.
Live catalog rates on Runstage. Prepaid USD credits with per-key spend caps.
Compare in full catalog