APIMart
GPT Image 2.5 model icon
Image

GPT Image 2.5 API

GPT Image 2.5 API on APIMart gives you OpenAI's GPT Image 2.5 models, the API version of ChatGPT Images 2.5 released on September 8, 2026. Use gpt-image-2.5-flare, the default choice with 50% lower latency than GPT Image 2, or gpt-image-2.5-sunburst for tighter control across detailed edits. Both generate and edit images at up to 4K, accept up to 16 reference images and cost the same per token.

Flare & SunburstUp to 4KMask Editing16 References

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 API Pricing

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

gpt-image-2.5-flare
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 API - OpenAI Flare and Sunburst Image Models

Generate and edit images with GPT Image 2.5 on APIMart: pick Flare for fast everyday images or Sunburst for precise multi-turn edits, then output up to 4K with transparent backgrounds, mask inpainting and token billing at the same rate for both models.

50K+

Active Users

99.9%

Uptime

2x

Faster

70%

Cost Savings

GPT Image 2.5 API Example: Text to Image and Mask Editing

Call gpt-image-2.5-flare or gpt-image-2.5-sunburst with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint for the image URL.

  1. 1

    Authenticate GPT Image 2.5 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 task

    POST /v1/images/generations with model gpt-image-2.5-flare or 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 result

    Poll GET /v1/tasks/{task_id} every 2–5 seconds until status is completed, then read the image URL from 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-flare",
    "prompt": "A minimalist poster for a jazz night in Lisbon, the words LISBON JAZZ in bold serif type, warm dusk light, film grain",
    "n": 1,
    "size": "16:9",
    "resolution": "2k",
    "quality": "high"
  }'

GPT Image 2.5 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: gpt-image-2.5-flaregpt-image-2.5-flare or gpt-image-2.5-sunburst. Both take 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, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 21:9, 9:21, 3:1, 1:3) 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. Ignored for exact pixel sizes.
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_compressionintegerOptionalDefault: —0 to 100, for jpeg and webp only.
backgroundstringOptionalDefault: —transparent, opaque or auto. transparent needs png or webp.
moderationstringOptionalDefault: lowauto or low.
image_urlsarrayOptionalDefault: —Up to 16 public HTTP(S) reference image URLs. Adding them switches to editing.
mask_urlstringOptionalDefault: —PNG mask with an alpha channel (URL or PNG data URL), the same size as the first input image. Transparent pixels mark the area to edit.

GPT Image API Model Family

Compare every GPT Image model on APIMart. One API key calls all of them; GPT Image 2.5 Flare and Sunburst share the same parameters and pricing.

ModelBest forResolution / size
GPT Image 2.5 APIThis pageFlare 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 APIPrecise 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 5 reference images and masks1:1 / 3:2 / 2:3
GPT Image 1 APIPrevious generation: text-to-image and editing with up to 5 reference images and masks1:1 / 3:2 / 2:3