GPT-Image-2.5-Flare API

The speed-focused GPT Image 2.5 variant, released September 9, 2026, uses the Images API.

POST /v1/images/generations

Text-to-image (speed tier), compatible with OpenAI SDK

Request parameters

ParameterTypeRequiredDescription
modelstringYesFixed to `gpt-image-2.5-flare`
promptstringYesText description, supports both Chinese and English; more specific descriptions lead to higher generation quality
nintegerNoNumber of generated images
sizestringNoImage dimensions (width × height). The same limits as `gpt-image-2` apply: both dimensions must be multiples of 16, the longest side must be no more than 3840 px, the total pixel count must be between 655,360 and 8,294,400, and the aspect ratio must not exceed 3:1. Custom sizes are supported within these limits. Options: auto / 1024x1024 / 1024x1536 / 1536x1024 / 2048x2048 / 2048x1152 / 3840x2160 / 2160x3840
qualitystringNoQuality tier. `low/medium/high` is the native three-tier; `standard/hd` is an alias for DALL-E for compatibility. The tier significantly impacts image details and generated token count Options: auto / low / medium / high / standard / hd
response_formatstringNo⚠️ This series **always returns inline base64 data** (`data[].b64_json`) and does not support `url`. The API ignores this field, which is retained only for SDK compatibility. Options: b64_json / url

Request example

curl https://api.router.ai/v1/images/generations \
  -H "Authorization: Bearer sk-你的令牌" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-image-2.5-flare",
    "prompt": "雪山日出, 长焦压缩, 胶片颗粒",
    "size": "1024x1024",
    "quality": "high",
    "n": 1
  }'

Endpoint reference: Aliyun Qwen-Image text-to-image