import requests r = requests.post( "https://api.aimlapi.com/v1/images/generations", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "openai/gpt-image-2.5-sunburst", "prompt": "A cat holding a sign that says hello" }, ) print(r.json())
const r = await fetch("https://api.aimlapi.com/v1/images/generations", { method: "POST", headers: { Authorization: `Bearer ${process.env.AIMLAPI_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "model": "openai/gpt-image-2.5-sunburst", "prompt": "A cat holding a sign that says hello" }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"openai/gpt-image-2.5-sunburst","prompt":"A cat holding a sign that says hello"}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Input | |
| Output | |
| Cached input |
| Benchmark | Score | What it measures | Source | Retrieved |
|---|---|---|---|---|
| Image Editing Arena | 1176 | Human preference Elo from blind pairwise comparisons of edited images, measured independently by Artificial Analysis | Source | September 21, 2026 |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
GPT Image 2.5 Sunburst This page | Precise image editing | |||
| Fast, high-volume image generation | ||||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale |
GPT Image 2.5 Sunburst is the precision-oriented tier of OpenAI's GPT Image 2.5 family. It generates and edits images from text and image inputs.
Use Sunburst when editing precision matters most, for example production-ready campaign creative or polished product imagery. Flare is the better fit when speed and volume matter more.
Yes. Editing is its main purpose: it supports the image edits endpoint, and inpainting is a supported feature.
Six settings are available: low, medium, high, xhigh, max and auto.
It takes text and image input and returns images.
Two: image generations and image edits.
OpenAI describes the 2.5 models as offering sharper detail, stronger style adherence and more control over edits than the previous generation.
Send a request to the image generations endpoint with the model id openai/gpt-image-2.5-sunburst, and a prompt describing the image you want.