GPT Image 2.5
OpenAI's latest image model. Sharp text and precise edits at 1K, 2K or 4K, with Flare for speed or Sunburst for precision.

- Model id
gpt-image-2-5- Price
- 1K 122K 164K 24credits / image
- Output
- 1K–4K
- Reference images
- Up to 16
- Typical time
- 30–60 seconds
Aspect ratios
/api/v1/generationsPricing depends on resolution. Select a tier in the example to see the cost. Reference images do not add an extra charge. Check credits_refunded to confirm a refund; unresolved submissions may require review.
Authorization
AuthorizationstringrequiredBearer fx1_live_… — send your API key in the request header. Requires a completed paid purchase; new generations also require enough credits.
Idempotency-KeystringoptionalUse one unique value per generation and reuse it with the same body on retries. Printable ASCII, no spaces. A different body with the same key returns 409.
Maximum length: 128 characters
Request body
modelstringrequiredUse this exact model ID in the top-level request body.
gpt-image-2-5promptstringrequiredDescribe the image to create, or the changes to make to your reference images. Whitespace is trimmed.
Maximum length: 5,000 characters
imagesstring[]optionalOptional reference images. Use publicly accessible HTTPS URLs or data:image/* base64 URIs (up to 20,000,000 characters per entry). Omit for text-to-image.
Maximum items: 16
aspect_ratiostringoptionalOutput width-to-height ratio. Auto lets the model choose.
Default: auto
auto1:116:99:164:33:43:22:35:44:521:9resolutionstringoptionalOutput resolution tier; values are case-insensitive. Omit or leave empty to use the default.
Default: 1K
1K2K4Kversionstringoptionalflare is faster for everyday images and drafts; sunburst makes more precise edits. Both cost the same.
Default: flare
flaresunburstResponse & next step
A successful submission returns 202 and a generation id. Poll GET /api/v1/generations/{id} every 2–3 seconds until the status is succeeded or failed.
Read the result URL from output.images[0].url. Download it before expires_at (30 days after storage). On failure, inspect error and credits_refunded.