# GPT Image 2

`gpt-image-2` · OpenAI · Image Generation & Editing

· 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.

[Model page](https://runstage.dev/models/gpt-image-2) · [JSON](https://runstage.dev/models/gpt-image-2.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=gpt-image-2)

## Technical summary

- **Exact API model slug**: `gpt-image-2`
- **Developer**: OpenAI
- **Inference types**: `txt2img`, `img2img`
- **Infrastructure**: Partner Cloud (Premium plan)
- **Headline rate**: Live estimate via /api/v2/quote (Partner rate (estimated before run))
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`

## Runstage routes

- **Text to Image** (`txt2img`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output` · `MCP runstage_generate_media`
- **Image Edit** (`img2img`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output`

## Best for

- Run GPT Image 2 via unified v2 jobs with free pre-run /price quotes
- Partner-hosted flagship model accessible on Premium accounts

## Billing notes

Partner external model (Premium plan required). Quote via /api/v2/quote returns an estimate (is_estimated: true); settled on completion.

## Quickstart (cURL)

```bash
# 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>'
```
