OpenAI
GPT Image 2
Text-to-image with dependable in-image typography, plus masked…
imagelivetext-to-imageeditingtypography
- Model id
- gpt-image-2
- Typical run
- ~53s
- Inputs
- 9 parameters
- Contract
- async
Call it
bash
curl -X POST https://api.ezflows.io/v1/models/gpt-image-2 \
-H "Authorization: Bearer $EZFLOWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt": "a wide shot of a desert at dusk"}'
# { "request_id": "req_8f2a41c9", "poll_url": "…", "status": "queued" }Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| prompt required | string | — | What to generate. Handles in-image text across scripts. |
| size | enum | 1024x1024 | — |
| quality | enum | medium | High costs roughly 3.5x medium at the same size. |
| image_urls | string[] | — | Supplying any image switches to edit mode. |
| mask_image_url | string | — | White regions are the ones edited. Needs a reference image. |
| background | enum | opaque | — |
| output_format | enum | png | — |
| output_compression | integer | 100 | Keep at 100 when the image contains text. |
| moderation | enum | auto | — |
What a run costs
$0.009from · per image
$0.00for a failed run
~53smeasured mean, end to end
How it stacks up
| Model | Price | Unit | Typical run |
|---|---|---|---|
| GPT Image 2 | from $0.009 | image | ~53s |
| GPT Image 1 Mini | avg $0.018 | run | ~21s |
| GPT Image 1 Edit Mini | avg $0.018 | run | ~20s |
| Nano Banana | avg $0.026 | run | ~7s |
| Seedream 5.0 Lite: Image-to-Image | avg $0.035 | run | ~47s |