Felo API PlatformFelo API Platform
Back to models

GPT Image 2.5 Sunburst API

GPT Image 2.5 Sunburst is OpenAI's precision-focused image generation and editing model, tuned for targeted changes that preserve identity, composition and lighting.

GPT Image 2.5 Sunburst is OpenAI's premium, precision-oriented tier of the GPT Image 2.5 family. It generates images from text descriptions and edits existing images with instruction-following control, accepting one image for editing or multiple images to combine styles, subjects or references. Reference images are processed at high fidelity automatically, and the model maintains consistency across multiple editing passes.

Sunburst is tuned for targeted changes without reinterpreting the entire image. It preserves identity, composition and lighting while adjusting specific elements, offers strong style control across different subjects, follows editing instructions more precisely and maintains quality over long editing sessions. It supports six quality settings (low, medium, high, xhigh, max and auto, with auto as default), multiple aspect ratios including square 1:1, portrait 9:16 and landscape 16:9, images up to 3840 pixels, plus transparency, reframing and seed control.

The model suits precision work such as object removal, lighting adjustments, scene compositing, style transfer, text translation in images, virtual clothing try-ons and multi-step image refinement systems. It also handles infographics, logos, UI mockups, photorealistic scenes, comic strips, marketing visuals and product mockups. Known limitations include noise artifacts in certain outputs; it does not support streaming, function calling, audio or video, and it costs more with longer generation times than GPT Image 2.5 Flare.

Updated:

MODEL ID

gpt-image-2.5-sunburst
Input
text / image
Output
image

Highlights

  • Precision-focused GPT Image 2.5 tier
  • Targeted edits without full reinterpretation
  • Preserves identity, composition and lighting
  • Consistent across multiple editing passes
  • Generates images up to 3840 pixels

Providers

Best price
2 providers

Compare API prices across providers. Select a provider to view all charges and conditions.

Provider · Pricing details
Uptime
$8$0Not published
$8$4.8$30$18$1.25$0.75

Benchmarks

  • Image Arena

    Ranked 1st; GPT Image 2.5 Flare scored 1399 and GPT Image 2 scored 1381

    1421

Scores as published by the model provider.

Quick Start

Submit an image task, poll its status, then save the images. These examples use curl and Python 3 (standard library only).

POST https://openapi.felo.ai/api/v1/images/generations

1Get your API key

Create a key from your Felo API Platform account and set it as an environment variable.

export FELO_API_KEY="YOUR_API_KEY"

2Make your first request

Optional values vary by model. This example leaves them unset; confirm supported values in Playground before adding them. Request fields sit alongside model and prompt, without an input wrapper.

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "A studio product photo of a ceramic coffee cup on warm linen, soft morning light",
  "model": "gpt-image-2.5-sunburst"
}'

3Poll the task

Submission returns task_id. Poll every 3 seconds while queued or running; stop on succeeded, failed or interrupted. This example stops waiting after 30 minutes. Keep created.json to resume querying the same task instead of submitting again.

python3 - <<'PY'
import json, os, time
from pathlib import Path
from urllib.parse import quote
from urllib.request import Request, urlopen

task = json.loads(Path("created.json").read_text())
task_id = task["task_id"]
url = "https://openapi.felo.ai/api/v1/images/generations/" + quote(task_id, safe="")
headers = {"Authorization": "Bearer " + os.environ["FELO_API_KEY"]}
deadline = time.monotonic() + 1800

while task["status"] in ("queued", "running"):
    if time.monotonic() >= deadline:
        raise TimeoutError(f"Keep task_id={task_id} to resume polling")
    time.sleep(3)
    with urlopen(Request(url, headers=headers), timeout=60) as response:
        task = json.load(response)
    if task.get("task_id") != task_id or task.get("kind") != "image":
        raise ValueError("Unexpected task response")
    print(task["status"])

if task["status"] != "succeeded":
    raise RuntimeError(task.get("error") or task["status"])
if not task.get("outputs"):
    raise ValueError("Task succeeded without image outputs")
Path("task.json").write_text(json.dumps(task))
print("Saved task.json")
PY

4Download the output

After success, save outputs from task.json. Results may be HTTPS URLs, URL objects or b64_json. Download signed URLs promptly; media downloads do not use your API key.

python3 - <<'PY'
import base64, json
from pathlib import Path
from urllib.request import urlopen

task = json.loads(Path("task.json").read_text())
if task.get("status") != "succeeded" or not task.get("outputs"):
    raise ValueError("No completed image outputs")
extensions = {"image/png": ".png", "image/jpeg": ".jpg", "image/webp": ".webp", "image/gif": ".gif", "image/avif": ".avif"}

for index, output in enumerate(task["outputs"], 1):
    item = output if isinstance(output, dict) else {}
    url = output if isinstance(output, str) else item.get("url") or item.get("unsigned_url")
    mime = item.get("media_type") or "image/png"
    if url and url.startswith("https://"):
        with urlopen(url, timeout=60) as response:
            data = response.read()
            mime = response.headers.get_content_type()
    elif url and url.startswith("data:image/") and ";base64," in url:
        header, encoded = url.split(",", 1)
        mime = header[5:].split(";", 1)[0]
        data = base64.b64decode(encoded, validate=True)
    elif item.get("b64_json"):
        data = base64.b64decode(item["b64_json"], validate=True)
    else:
        raise ValueError("Unrecognized image output")
    path = Path(f"image-{index}" + extensions.get(mime, ".bin"))
    path.write_bytes(data)
    print(path)
PY
input_references

For image editing, replace the example URL with your HTTPS image URL or a base64 image data URL. Submit once, then use the same polling and saving steps.

curl --fail-with-body --max-time 60 "https://openapi.felo.ai/api/v1/images/generations" \
  -H "Authorization: Bearer $FELO_API_KEY" \
  -H "Content-Type: application/json" \
  -o created.json \
  -d '{
  "prompt": "Keep the product and framing. Replace the background with a sunlit marble countertop.",
  "model": "gpt-image-2.5-sunburst",
  "input_references": [
    {
      "type": "image_url",
      "image_url": {
        "url": "https://example.com/product.png"
      }
    }
  ]
}'

Supported parameters

  • n
  • quality
  • background
  • aspect_ratio
  • input_references
  • output_compression

Prefer the full reference?

API reference →

Frequently asked questions

What is GPT Image 2.5 Sunburst?

GPT Image 2.5 Sunburst is OpenAI's premium, precision-oriented tier of the GPT Image 2.5 family. It generates images from text descriptions and edits existing images with instruction-following control, accepting one image for editing or multiple images to combine styles, subjects or references. Reference images are processed at high fidelity automatically, and the model maintains consistency across multiple editing passes. Sunburst is tuned for targeted changes without reinterpreting the entire image. It preserves identity, composition and lighting while adjusting specific elements, offers strong style control across different subjects, follows editing instructions more precisely and maintains quality over long editing sessions. It supports six quality settings (low, medium, high, xhigh, max and auto, with auto as default), multiple aspect ratios including square 1:1, portrait 9:16 and landscape 16:9, images up to 3840 pixels, plus transparency, reframing and seed control. The model suits precision work such as object removal, lighting adjustments, scene compositing, style transfer, text translation in images, virtual clothing try-ons and multi-step image refinement systems. It also handles infographics, logos, UI mockups, photorealistic scenes, comic strips, marketing visuals and product mockups. Known limitations include noise artifacts in certain outputs; it does not support streaming, function calling, audio or video, and it costs more with longer generation times than GPT Image 2.5 Flare.

How is usage billed?

Your bill depends on the provider you use, its prices and your usage. Longer inputs or other conditions may have different prices.

What inputs does GPT Image 2.5 Sunburst accept?

It accepts text input and image input. It can generate images from text descriptions and edit existing images, taking one image for editing or multiple images to combine styles, subjects or references.

What image output options are available?

It supports six quality settings: low, medium, high, xhigh, max and auto, with auto as default. It offers aspect ratios including square 1:1, portrait 9:16 and landscape 16:9, generates images up to 3840 pixels, and supports transparency, reframing and seed control.

What tasks is Sunburst best suited for?

It is tuned for targeted edits that preserve identity, composition and lighting, such as object removal, lighting adjustments, scene compositing, style transfer, text translation in images and virtual clothing try-ons. It also works for infographics, logos, UI mockups, marketing visuals and multi-step image refinement systems.

How does Sunburst differ from GPT Image 2.5 Flare?

Sunburst is the precision-focused tier, tuned for targeted changes without reinterpreting the entire image. Flare has higher cost efficiency and shorter generation times, and OpenAI recommends GPT Image 2.5 Flare as the default choice for most applications.

Does Sunburst support streaming or function calling?

No. It does not support streaming or function calling, and it does not support audio or video. It is not intended as a general-purpose multimodal language model.

Related models