GPT Image 2.5 API: Sunburst and Flare by Code
Use the GPT Image 2.5 API: Sunburst for precise text and layout, Flare for dramatic frames. Requests, aspect ratios, batches and how each image is billed.
Updated 5 min read
The GPT Image 2.5 API on Frameport comes as two models from OpenAI: GPT Image 2.5 Sunburst, its flagship for precise text, composition and control, and GPT Image 2.5 Flare, tuned for expressive, dramatic frames. Both take a prompt and return up to 4 images per request, from $0.085 an image, on one API key, and an image that fails costs nothing.
This page helps you pick between them, sends a first request in curl, Python and Node, covers text in images and dramatic frames, and explains how a batch is billed.
GPT Image 2.5 at a glance: Sunburst and Flare
| GPT Image 2.5 Sunburst | GPT Image 2.5 Flare | |
|---|---|---|
| Model id | gpt-image-2-5-sunburst | gpt-image-2-5-flare |
| Made for | Precise text, composition and control | Expressive, dramatic frames |
| What it does | Text to image | Text to image |
| Aspect ratios | 1:1, 3:4, 4:3, 9:16 and 16:9 | 1:1, 3:4, 4:3, 9:16 and 16:9 |
| Images per request | Up to 4 | Up to 4 |
| Price | $0.085 per image | $0.085 per image |
Both call POST /v1/images/generations with the same body: switching from one to the other is changing model. In this catalog they generate from a prompt alone; to edit or build on pictures you send, use a model that takes reference pictures, such as Nano Banana Pro or Frameport Image 1.
Which one for which picture
GPT Image 2.5 Sunburst follows a brief closely: layout, placement and style land where the prompt puts them, and lettering in the picture reads. GPT Image 2.5 Flare keeps that precision and that in-image text, with a bolder, more dramatic rendering.
| The picture | Pick |
|---|---|
| A poster, a label or packaging with words on it | Sunburst |
| An interface mockup or a sign that must read cleanly | Sunburst |
| A product or brand shot with a controlled composition | Sunburst |
| Key art, a film poster, an album cover | Flare |
| A cinematic still or a mood board that should feel staged | Flare |
| A campaign visual with a bold palette and heavy atmosphere | Flare |
When you are not sure, send the same prompt to both with n: 1 and keep the one you prefer: two small requests, on the same key.
Your first GPT Image 2.5 API request
An image request answers 202 at once with an id and the amount held; you then read the generation until its images are ready. This one asks Sunburst for two takes of a poster in 3:4:
# 1. Submit
curl https://frameport.ai/v1/images/generations \
-H "Authorization: Bearer $FRAMEPORT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2-5-sunburst",
"prompt": "A minimal poster of a mountain lake at dawn with the title \"Quiet Water\" in a clean serif across the top, flat colours",
"n": 2,
"aspect_ratio": "3:4"
}'
# 2. Poll with the id it returned until "status" is "succeeded"
curl https://frameport.ai/v1/images/generations/$GENERATION_ID \
-H "Authorization: Bearer $FRAMEPORT_API_KEY"{
"id": "gen_4kQ8vT2nLm9Xr7Wd1sYcPa",
"object": "generation",
"type": "image",
"model": "gpt-image-2-5-sunburst",
"status": "queued",
"input": {
"prompt": "A minimal poster of a mountain lake at dawn with the title \"Quiet Water\" in a clean serif across the top, flat colours",
"n": 2,
"aspect_ratio": "3:4",
"reference_images": 0
},
"reserved_usd": 0.17,
"cost_usd": null,
"outputs": [
{ "id": "file_8Hc2RkQw5ZpT1mVb7nXe3L", "status": "queued" },
{ "id": "file_3Vb8KqW2nTx7Lc5Rm1YdPs", "status": "queued" }
],
"error": null,
"created_at": "2026-11-28T10:00:00.000Z",
"completed_at": null
}aspect_ratio is 1:1 when left out. Each finished output carries a url that opens without a key for about an hour, and the images reference lists every field.
Picking between the two versions is covered in GPT Image 2.5 Sunburst vs Flare, and against other makers in Flux 3 vs GPT Image 2.5 vs Seedream 5.0 Pro.
Text in images: getting it right
Lettering is where Sunburst earns its place, and the prompt does most of the work:
- Write it like a design brief: subject, framing, background, light, then the words that must appear.
- Put the text in quotes:
the title "Quiet Water", so it is read as lettering, not as part of the scene. - Say where it goes and how it looks: "across the top in a clean serif", "small white caps in the lower right corner".
- Keep it short. A title and a line read better than a paragraph, and one clear idea per image beats three.
- Use the batch:
n: 4gives four takes of the same layout in one request; keep the one whose lettering is right, and read it before it ships.
Flare: prompts for dramatic frames
With Flare, lead with the light and the atmosphere, "low-key", "rim-lit", "volumetric haze", then the subject, and name the genre you are aiming for: film poster, album cover, game key art. A prompt such as "Film poster of a lone astronaut on a red desert under two moons, rim light, volumetric haze" gives it all three. Text works the same way as on Sunburst: short, and in quotes.
Batches of up to four and how each image is billed
n asks for 1 to 4 images from one prompt, each rendered and charged on its own. When you submit, the price of the whole batch is held from your balance; each image is charged when it succeeds, and an image that fails costs nothing. With n: 4, three can succeed and one fail, and only three are charged.
| Images | GPT Image 2.5 Sunburst | GPT Image 2.5 Flare |
|---|---|---|
| 1 | $0.085 | $0.085 |
| 4 | $0.34 | $0.34 |
| 100 | $8.50 | $8.50 |
To see the price of a body first, post it to POST /v1/generations/quote: nothing is held or started, and the answer says whether your balance covers it.
{
"object": "quote",
"model": "gpt-image-2-5-sunburst",
"type": "image",
"mode": "generate",
"price_usd": 0.34,
"reserved_usd": 0.34,
"breakdown": "4 images × $0.085",
"available_usd": 42.5,
"enough_balance": true
}Add max_cost_usd to a request built from user input, and anything priced above it is refused before anything is held. Both models keep OpenAI's own content policy: a prompt they refuse answers 400 content_policy, an image refused after it started fails, and neither costs anything.
Every rate, with what a batch and a thousand images cost, is in GPT Image 2.5 API pricing.
FAQ
Do I need an OpenAI API key to use GPT Image 2.5?
No. A Frameport key calls both models: create an account, add funds under Billing, then create a key under API keys. It starts with fp_live_, is shown once, and works for every other model of the catalog too.
Is there a GPT Image 2 API on Frameport?
The catalog sells version 2.5, as GPT Image 2.5 Sunburst and GPT Image 2.5 Flare. Requests name them by their ids, gpt-image-2-5-sunburst and gpt-image-2-5-flare, and GET /v1/models lists what is on sale at any time.
How much does the GPT Image 2.5 API cost?
$0.085 per image on Sunburst and $0.085 on Flare, the same at every aspect ratio. A batch of four on Sunburst costs $0.34, and only the images that succeed are charged.
Can I try GPT Image 2.5 for free?
The account, the key and quotes are free, and a failed image costs nothing. Images are paid from a prepaid balance, topped up from $10, with no subscription. You can try Sunburst online before writing code.
Can GPT Image 2.5 edit a picture I send?
No: both versions generate from a prompt alone. To edit a picture you send, use Nano Banana Pro, which edits by instruction from up to 6 reference pictures (see the Nano Banana Pro API), or Frameport Image 1, which takes up to 10. Both run on the same key.