APIMart
GPT Image 2.5 Sunburst model icon
Image

GPT Image 2.5 Sunburst API

GPT Image 2.5 Sunburst API (gpt-image-2.5-sunburst) on APIMart runs the precision model in OpenAI's GPT Image 2.5 family. It gives tighter control across multi-turn edits for production ads and polished product imagery, supports mask inpainting and 4K output, and costs the same per token as GPT Image 2.5 Flare, with longer generation times.

Precision EditingMask InpaintingUp to 4KMulti-Turn Edits

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input

Add at least one reference image when using a mask.

Output
Generated 1

Image link valid for 72 hours

GPT Image 2.5 Sunburst API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

gpt-image-2.5-sunburst
Token Pricing
Text input40Credits / 1M tokens
Cached text input10Credits / 1M tokens
Image input64Credits / 1M tokens
Cached image input16Credits / 1M tokens
Image output240Credits / 1M tokens

Estimated Price

Save 20%

Showing: Gold member price

0.047Credits(~$0.0047)
0.0588Credits(~$0.0059)Original Price

Price is calculated from token usage — this configuration uses about 196 tokens.

* Estimated output cost for one image, excluding prompt and reference-image input costs. Final charges are based on actual token usage.

GPT Image 2.5 Sunburst API - Precise OpenAI Image Editing

Use the GPT Image 2.5 Sunburst API on APIMart for detail-sensitive work: change one element while the subject, composition and brand treatment stay put, refine over several rounds and deliver up to 4K, at the same token price as Flare.

50K+

Active Users

99.9%

Uptime

2x

Faster

70%

Cost Savings

GPT Image 2.5 Sunburst API Example: 4K Text to Image and Mask Editing

Call gpt-image-2.5-sunburst with one POST request. Generation is asynchronous and takes longer than Flare: submit a task, then poll the task endpoint for the image URL.

  1. 1

    Authenticate GPT Image 2.5 Sunburst API requests

    Save your APIMart key in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a GPT Image 2.5 Sunburst task

    POST /v1/images/generations with model gpt-image-2.5-sunburst, your prompt, size, resolution and quality. Add image_urls and mask_url to edit. The task ID is in data[0].task_id.

  3. 3

    Get the GPT Image 2.5 Sunburst result

    Poll GET /v1/tasks/{task_id} every 2–5 seconds until status is completed, then read data.result.images[0].url[0]. APIMart keeps results for 72 hours, so download the files you want to keep.

    See the GPT Image 2.5 API reference for every parameter, size rule and response field.

POST /v1/images/generations
curl -X POST https://api.apimart.ai/v1/images/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2.5-sunburst",
    "prompt": "A premium skincare bottle on wet black stone, soft rim light, water droplets, editorial product photography",
    "n": 1,
    "size": "4:5",
    "resolution": "2k",
    "quality": "xhigh"
  }'

GPT Image 2.5 Sunburst API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: gpt-image-2.5-sunburstUse gpt-image-2.5-sunburst. gpt-image-2.5-flare takes the same parameters.
promptstringRequiredDefault: —What to generate or change: subject, scene, composition, style, lighting and anything that must stay the same.
sizestringOptionalDefault: autoauto, one of 15 aspect ratios (1:1 to 21:9 and 3:1) or exact pixels such as 1600x1200. Omit it when editing to follow the input ratio.
resolutionstringOptionalDefault: 1k1k, 2k or 4k, used with an aspect-ratio size.
qualitystringOptionalDefault: autolow, medium, high, xhigh, max or auto. auto reserves funds at max and settles on actual usage.
nintegerOptionalDefault: 1Number of images, 1 to 4.
output_formatstringOptionalDefault: pngpng, jpeg or webp; output_compression 0–100 applies to jpeg and webp.
backgroundstringOptionalDefault: —transparent, opaque or auto. transparent needs png or webp.
image_urlsarrayOptionalDefault: —Up to 16 public HTTP(S) reference image URLs. Adding them switches to editing.
mask_urlstringOptionalDefault: —PNG mask with an alpha channel, the same size as the first input image. Transparent pixels mark the area to edit.

GPT Image API Model Family

Explore GPT Image versions on APIMart and choose the model and request settings for your image workflow.

ModelBest forResolution / size
GPT Image 2.6 APIFlare and Sunburst: image, GIF, and SVG output with complexity and markup controls1K / 2K / 4K
GPT Image 2.6 Flare APIFastest 2.6 model for drafts, posters, product images and batch jobs, with GIF and SVG output1K / 2K / 4K
GPT Image 2.6 Sunburst APIHigher-quality 2.6 model for detailed 4K work and consistent multi-round edits with masks or markup1K / 2K / 4K
GPT Image 2.5 APIFlare and Sunburst on one page, with up to 16 reference images, masks and transparent backgrounds1K / 2K / 4K
GPT Image 2.5 Flare APIFast everyday images, batch generation and rapid prototyping1K / 2K / 4K
GPT Image 2.5 Sunburst APIThis pagePrecise edits for production assets, ad creatives and multi-turn editing1K / 2K / 4K
GPT Image 2 APIText-to-image and editing with up to 16 reference images and 15 aspect ratios1K / 2K / 4K
GPT Image 1.5 APIText-to-image and editing with up to 15 reference images and masks; OpenAI retires it on Dec 1, 20261:1 / 3:2 / 2:3
GPT Image 1 APIPrevious generation, shut down by OpenAI on Oct 23, 2026; use GPT Image 2.6 for new projects1:1 / 3:2 / 2:3