Skip to main content
POST
GPT-Image 2.6 has two model names in AIReiter: gpt_image_2_6_flare and gpt_image_2_6_sunburst, with no standalone gpt_image_2_6. The parameters for both models are completely identical.output_format can be png (default) or gif. This endpoint does not expose quality, output_n, or background, nor does it support SVG vector graphics and mask / selection local editing.

Authorizations

string
required
All endpoints require Bearer Token authenticationGet the API key:Visit the API Key Management page to get your API KeyAdd to the request header when using:

Body

string
required
Model name, choose one of two:
  • "gpt_image_2_6_flare" — Flare, faster image generation, suitable for drafts and batch generation
  • "gpt_image_2_6_sunburst" — Sunburst, more detail-focused, suitable for edits requiring preservation of characters, products, or layouts
When comparing the two models, please keep the prompt, reference images, aspect ratio, and resolution consistent.
object
required
Model parameter object
string
required
Initiator task IDUser-defined task identifier, required. Use the same value to call POST /api/openapi/query when querying results.

尺寸 × 分辨率映射表

aspect_ratio × resolution → Actual pixels (auto is selected by the model and not included in the table):
3:2 / 2:3 @ 2K is actually 2048×1360 (approximate ratio). For aspect ratios not in the table, please use size.

GIF 帧尺寸

When output_format is gif, the size of each frame is determined by aspect_ratio (auto defaults to 1:1):

Response

string
Initiator task ID, can be used to query results
string
Initial status, usually "pending"
string
Creation time (ISO format)

Query Task

GPT-Image 2.6 is an asynchronous image generation model. After submitting a task, please use out_task_id to query the task status. You can also refer to Get Task Status.
string
required
The initiator task ID passed when submitting the task.
After the query succeeds and is completed, the output array in the response will contain the generated image (PNG or GIF). In actual testing, a single 1K image takes about 25–45 seconds to complete, and a GIF takes about 25–70 seconds. Sunburst is usually slightly slower than Flare; the higher the resolution and the more reference images, the longer it takes. Please continue polling and do not submit repeatedly.

使用说明

  • When only prompt is passed, it is text-to-image; when image_url is passed, it performs editing based on the reference image, and parts not mentioned in the prompt will be kept unchanged as much as possible.
  • Each request returns only 1 image; if multiple images are needed, please submit them separately.
  • The default output is PNG; pass output_format: "gif" to output a looping animated GIF.
  • GIFs are generated based only on prompt. Please clearly describe the subject, action, and looping method in the prompt (e.g., “wave and return to the initial pose”); the simpler the action, the more coherent the frames.
  • The 4K tier is suitable for scenarios requiring large-format delivery; for realistic images with high detail requirements, it is recommended to first use 1K / 2K to confirm the composition before generating 4K.

Request Examples