Skip to content
youbot
Docs menu

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.

modelIdgpt-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
Modalityimage
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Flaregpt-image-2-6-flare-text-to-imagePOST /api/v1/generateprompt, output_format, aspect_ratio
Flare Editgpt-image-2-6-flare-image-to-imagePOST /api/v1/generateprompt, input_urls, aspect_ratio
Sunburstgpt-image-2-6-sunburst-text-to-imagePOST /api/v1/generateprompt, output_format, aspect_ratio
Sunburst Editgpt-image-2-6-sunburst-image-to-imagePOST /api/v1/generateprompt, 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

FieldTypeRequiredValues / example
promptstringYesText value Max 20000 characters.
output_formatstringYespng returns a still image. gif returns a short looping animation; the aspect ratio is chosen automatically for gif. (options: png | gif) (default: png)
aspect_ratiostringYesOptions: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1)
resolutionstringNoOptions: 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

FieldTypeRequiredValues / example
promptstringYesText value Max 20000 characters.
input_urlsstring[]YesImage URL
aspect_ratiostringYesOptions: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1)
resolutionstringNoOptions: 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

FieldTypeRequiredValues / example
promptstringYesText value Max 20000 characters.
output_formatstringYespng returns a still image. gif returns a short looping animation; the aspect ratio is chosen automatically for gif. (options: png | gif) (default: png)
aspect_ratiostringYesOptions: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1)
resolutionstringNoOptions: 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

FieldTypeRequiredValues / example
promptstringYesText value Max 20000 characters.
input_urlsstring[]YesImage URL
aspect_ratiostringYesOptions: 1:1 | 3:2 | 2:3 | 4:3 | 3:4 | 16:9 | 9:16 | 21:9 (default: 1:1)
resolutionstringNoOptions: 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"}}'