Image models
GPT Image 2.6
On this page
OpenAI's GPT Image 2.6 Sunburst — the refined tier, for higher-quality images from text where detail matters most.
| modelId | gpt-image-2-6-flare-text-to-image, gpt-image-2-6-flare-image-to-image, gpt-image-2-6-sunburst-text-to-image, gpt-image-2-6-sunburst-image-to-image |
| Modality | image |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Flare | gpt-image-2-6-flare-text-to-image | POST /api/v1/generate | prompt, output_format, aspect_ratio |
| Flare Edit | gpt-image-2-6-flare-image-to-image | POST /api/v1/generate | prompt, input_urls, aspect_ratio |
| Sunburst | gpt-image-2-6-sunburst-text-to-image | POST /api/v1/generate | prompt, output_format, aspect_ratio |
| Sunburst Edit | gpt-image-2-6-sunburst-image-to-image | POST /api/v1/generate | prompt, input_urls, aspect_ratio |
| Poll task | — | GET /api/v1/task/{id}?model=gpt-image-2-6-sunburst-text-to-image | — |
Flare — gpt-image-2-6-flare-text-to-image
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text value Max 20000 characters. |
| output_format | string | Yes | png returns a still image. gif returns a short looping animation; the aspect ratio is chosen automatically for gif. (options: png | gif) (default: png) |
| aspect_ratio | string | Yes | Options: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1) |
| resolution | string | No | Options: 1K (default: 1K) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"gpt-image-2-6-flare-text-to-image","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","output_format":"png","aspect_ratio":"1:1","resolution":"1K"}}'Flare Edit — gpt-image-2-6-flare-image-to-image
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text value Max 20000 characters. |
| input_urls | string[] | Yes | Image URL |
| aspect_ratio | string | Yes | Options: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1) |
| resolution | string | No | Options: 1K (default: 1K) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"gpt-image-2-6-flare-image-to-image","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","input_urls":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"aspect_ratio":"1:1","resolution":"1K"}}'Sunburst — gpt-image-2-6-sunburst-text-to-image
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text value Max 20000 characters. |
| output_format | string | Yes | png returns a still image. gif returns a short looping animation; the aspect ratio is chosen automatically for gif. (options: png | gif) (default: png) |
| aspect_ratio | string | Yes | Options: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1) |
| resolution | string | No | Options: 1K (default: 1K) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"gpt-image-2-6-sunburst-text-to-image","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","output_format":"png","aspect_ratio":"1:1","resolution":"1K"}}'Sunburst Edit — gpt-image-2-6-sunburst-image-to-image
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Text value Max 20000 characters. |
| input_urls | string[] | Yes | Image URL |
| aspect_ratio | string | Yes | Options: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1) |
| resolution | string | No | Options: 1K (default: 1K) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"gpt-image-2-6-sunburst-image-to-image","input":{"prompt":"A photorealistic portrait of a red fox in a snowy forest, soft morning light, shallow depth of field, 85mm.","input_urls":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"aspect_ratio":"1:1","resolution":"1K"}}'