# GPT Image 2.5 Sunburst API

> OpenAI's flagship image model: close prompt adherence, clean composition and legible text inside the picture.

GPT Image 2.5 Sunburst by OpenAI, called with one Frameport API key: from $0.085 per image, charged only when the image succeeds.

- Model id: `gpt-image-2-5-sunburst`
- Type: image
- Maker: OpenAI
- Tasks: Text to image
- Endpoint: `POST https://frameport.ai/v1/images/generations`
- Page: https://frameport.ai/models/gpt-image-2-5-sunburst
- Every model, as JSON: https://frameport.ai/models.json

## Pricing

| Item | Price |
| --- | --- |
| One image, any aspect ratio | $0.085 |

- Charged once, and only when the image succeeds. A failed job costs $0.00: its hold is released in full.
- The exact price is known before the run: the API returns it as `reserved_usd` when it accepts the job.
- A request makes 1 to 4 images, each charged at this price.

## Options

| Option | Value |
| --- | --- |
| Tasks | Text to image |
| Aspect ratios | 1:1, 3:4, 4:3, 9:16, 16:9 |
| Images per request | 1 to 4 |
| Reference pictures | None |
| Prompt | Up to 2,400 characters |
| Output | Image files, signed links valid about an hour |
| Billing unit | Per image |
| Model id | `gpt-image-2-5-sunburst` |

## GPT Image 2.5 Sunburst API parameters

`POST https://frameport.ai/v1/images/generations` with a JSON body and your key as a Bearer token:

| Field | Values | Notes |
| --- | --- | --- |
| `model` (required) | "gpt-image-2-5-sunburst" | Required. |
| `prompt` (required) | text, up to 2,400 characters | Required: the subject, the setting, the light and the style. |
| `n` | 1 to 4 | 1 when left out. Each image is charged. |
| `aspect_ratio` | 1:1, 3:4, 4:3, 9:16, 16:9 | 1:1 when left out. The same price at every ratio. |

## GPT Image 2.5 Sunburst request bodies, one per mode

### Text to image · $0.085

```json
{
  "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, flat colours",
  "n": 1,
  "aspect_ratio": "16:9"
}
```

## Submit, poll, download

### cURL

```bash
# 1. Submit: the price is held on your balance (reserved_usd)
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, flat colours",
    "n": 1,
    "aspect_ratio": "16:9"
  }'

# 2. Poll with the id it returns, until "succeeded" or "failed"
curl https://frameport.ai/v1/images/generations/$GENERATION_ID \
  -H "Authorization: Bearer $FRAMEPORT_API_KEY"

# 3. Download outputs[0].url once it has succeeded (a signed link, no key needed)
curl -L "$OUTPUT_URL" -o out.png
```

### Python

```python
import os, time
import requests

API = "https://frameport.ai/v1"
headers = {"Authorization": f"Bearer {os.environ['FRAMEPORT_API_KEY']}"}

# 1. Submit: the price is held on your balance (reserved_usd)
gen = requests.post(f"{API}/images/generations", headers=headers, json={
    "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, flat colours",
    "n": 1,
    "aspect_ratio": "16:9",
}).json()
if gen.get("error"):
    raise SystemExit(gen["error"]["message"])

# 2. Poll until it succeeds or fails
while gen["status"] in ("queued", "running"):
    time.sleep(3)
    gen = requests.get(f"{API}/images/generations/{gen['id']}", headers=headers).json()

# A failed generation costs nothing: the hold is released
if gen["status"] == "failed":
    raise SystemExit(gen["error"]["message"])

# 3. Download the file (a signed link, no key needed)
file = requests.get(gen["outputs"][0]["url"])
open("out.png", "wb").write(file.content)
print("saved out.png", gen["cost_usd"])
```

### JavaScript

```js
import { writeFile } from 'node:fs/promises'

const API = 'https://frameport.ai/v1'
const headers = {
  'Authorization': `Bearer ${process.env.FRAMEPORT_API_KEY}`,
  'Content-Type': 'application/json',
}

// 1. Submit: the price is held on your balance (reserved_usd)
let gen = await fetch(`${API}/images/generations`, {
  method: 'POST',
  headers,
  body: JSON.stringify({
    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, flat colours',
    n: 1,
    aspect_ratio: '16:9',
  }),
}).then(res => res.json())
if (gen.error) throw new Error(gen.error.message)

// 2. Poll until it succeeds or fails
while (gen.status === 'queued' || gen.status === 'running') {
  await new Promise(resolve => setTimeout(resolve, 3000))
  gen = await fetch(`${API}/images/generations/${gen.id}`, { headers }).then(res => res.json())
}
// A failed generation costs nothing: the hold is released
if (gen.status === 'failed') throw new Error(gen.error.message)

// 3. Download the file (a signed link, no key needed)
const file = await fetch(gen.outputs[0].url)
await writeFile('out.png', Buffer.from(await file.arrayBuffer()))
console.log('saved out.png', gen.cost_usd)
```

## What GPT Image 2.5 Sunburst is good at

- Frames that must match the brief: layout, placement and style follow the prompt closely.
- Typography in the image: posters, packaging, signs and interface mockups with readable lettering.
- Product and brand work where a controlled composition matters most.

### When another model fits better

- [Nano Banana Pro](https://frameport.ai/models/nano-banana-pro.md) (`nano-banana-pro`): Edits from reference pictures (up to 6), from $0.16 / image.
- [Frameport Image 2](https://frameport.ai/models/fp-image-2.md) (`fp-image-2`): A lower price per image: from $0.025 / image.
- [Frameport Image 3](https://frameport.ai/models/fp-image-3.md) (`fp-image-3`): Reference pictures to hold a face or a product, from $0.025 / image.

## How to prompt GPT Image 2.5 Sunburst

1. Write it like a design brief: subject, framing, background, lighting and the words that must appear.
2. Put text to render in quotes so it is treated as lettering, not as part of the scene.
3. Keep one clear idea per image.

Sample prompt: “A minimal poster of a mountain lake at dawn with the title "Quiet Water" in a clean serif, flat colours”

## GPT Image 2.5 Sunburst and the other OpenAI image models

| Model | Model id | Per image | Reference pictures | Edits |
| --- | --- | --- | --- | --- |
| GPT Image 2.5 Sunburst | `gpt-image-2-5-sunburst` | $0.085 | — | No |
| [GPT Image 2.5 Flare](https://frameport.ai/models/gpt-image-2-5-flare.md) | `gpt-image-2-5-flare` | $0.085 | — | No |

## About the GPT Image 2.5 Sunburst API

### How much does the GPT Image 2.5 Sunburst API cost?

GPT Image 2.5 Sunburst costs $0.085 per image. A request makes 1 to 4 images and each one is charged, once, only when it succeeds.

### How do I call GPT Image 2.5 Sunburst from code?

Send POST /v1/images/generations with "model": "gpt-image-2-5-sunburst" and a prompt, your API key as a Bearer token. The answer is a generation with an id: poll GET /v1/images/generations/{id} until its status is succeeded, then download each outputs[].url.

### What happens if a GPT Image 2.5 Sunburst generation fails?

Nothing is charged. The price is held on your balance when the job starts and released in full if it fails: cost_usd stays at 0.

### Can GPT Image 2.5 Sunburst edit a picture?

No, it renders from the prompt alone. For edits from reference pictures, use Frameport Image 1 (fp-image-1).

### Which aspect ratios does GPT Image 2.5 Sunburst support?

1:1, 3:4, 4:3, 9:16 and 16:9, at the same price.

### Do I need a subscription?

No. You top up a prepaid balance in dollars, from $10, and it never expires. Every model runs on the same balance and the same API key.

## Compare with similar models

- [GPT Image 2.5 Flare](https://frameport.ai/models/gpt-image-2-5-flare.md) (`gpt-image-2-5-flare`): OpenAI, from $0.085 per image
- [Nano Banana 2.1](https://frameport.ai/models/nano-banana-2-1.md) (`nano-banana-2-1`): Google, from $0.085 per image
- [Flux 3 Image](https://frameport.ai/models/flux-3-image.md) (`flux-3-image`): Black Forest Labs, from $0.088 per image
- [Grok Imagine 2.0](https://frameport.ai/models/grok-imagine-2-0.md) (`grok-imagine-2-0`): xAI, from $0.088 per image
- [Seedream 5.0 Pro](https://frameport.ai/models/seedream-5-0-pro.md) (`seedream-5-0-pro`): ByteDance, from $0.099 per image
- [Nano Banana Pro](https://frameport.ai/models/nano-banana-pro.md) (`nano-banana-pro`): Google, from $0.16 per image
