curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-image-2.6-flare/text-to-image",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A product photograph of a silver coffee maker in a bright studio.",
"size": "1:1",
"resolution": "1K"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-10-09T10:30:00"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}OpenAI
GPT Image 2.6 Flare Text to Image
The GPT Image 2.6 Flare Text to Image API turns a prompt into one 1K, 2K or 4K image, with transparent backgrounds, output compression and moderation control.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "openai/gpt-image-2.6-flare/text-to-image",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A product photograph of a silver coffee maker in a bright studio.",
"size": "1:1",
"resolution": "1K"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-10-09T10:30:00"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
openai/gpt-image-2.6-flare/edit). GPT Image 2.6 accepts the same parameters as GPT Image 2.5 Flare, plus output_compression, moderation and complexity.
Models
- openai/gpt-image-2.6-flare/text-to-image — Text to image with GPT Image 2.6 Flare, one image per request.
Features
- Text-to-image from a prompt of up to 32,000 characters.
- Three resolution tiers (
1K,2K,4K) with aspect-ratio presets,auto, or customWIDTHxHEIGHTsizes. - Five quality tiers:
low,medium,high,xhigh,max. - Transparent or opaque backgrounds; PNG, JPEG or WebP output.
- Adjustable JPEG/WebP compression, moderation strictness and planning effort (
complexity).
Required parameters
prompt(string): Text describing the desired image. Up to 32,000 characters; must not be blank.
Optional parameters
size(string): Aspect-ratio preset,auto, or customWIDTHxHEIGHT. Default1:1. See Size.resolution(string):1K,2Kor4K. Default1K.quality(string):low,medium,high,xhighormax. Defaulthigh.background(string):auto,transparentoropaque. Defaultauto. A transparent background requirespngorwebpoutput.output_format(string):png,jpegorwebp. Defaultpng.output_compression(integer): Compression level from0to100. Only allowed whenoutput_formatisjpegorwebp. When omitted, the default compression applies.moderation(string): Content moderation strictness,autoorlow. Defaultauto;lowapplies less restrictive filtering.complexity(string): Planning effort the model spends before generating,low,mediumorhigh. Defaulthigh. Does not change the price.
Size
- Presets:
1:1,2:3,3:2,4:3,3:4,4:5,5:4,16:9,9:16,21:9. Whensizeis omitted, the output is1:1at the selectedresolution. - Presets keep the selected
resolutiontier; actual pixel dimensions may vary between generations. Use a custom size when you need exact pixels. autolets the model choose the size (about 1.5 megapixels). It works with anyresolutionand is billed at the1Ktier.- Custom
WIDTHxHEIGHT(usexorX, for example2304x1536) works with anyresolution. Both edges must be multiples of 16, the longest edge must not exceed 3,840 pixels, the aspect ratio must not exceed 3:1, and total pixels must be between 655,360 and 8,294,400. - A custom size is billed at the tier that matches its total pixels, or at the selected
resolutionif that is higher:
| Total pixels (custom size) | Billing tier |
|---|---|
| Up to 1,572,864 | 1K |
| 1,572,865–4,194,304 | 2K |
| Above 4,194,304 | 4K |
Examples
- Generate one image: a studio product photo,
1:1,1K, with acallback_url. - Transparent asset: a cutout with
background: transparent, WebP,4K,xhighquality. - Custom size: a panoramic scene at
2304x1536,2K,mediumquality. - Compressed JPEG:
3:2,mediumquality,output_format: jpeg,output_compression: 80.
Notes
- Each request returns exactly one image;
nother than1returns 400. Fields not listed above return 400.modelandcallback_urlbelong at the request root, not insideinput. - A transparent background with
output_format: jpegreturns 400.output_compressionwithoutput_format: pngalso returns 400. - Credits depend on
qualityand the billing tier (resolution, or the custom-size tier described in Size).complexityandmoderationdo not change the price. The per-image maximum is reserved at submission; when the task finishes you are charged for actual token usage, up to that maximum, and the rest is refunded. A failed task is refunded in full. See the pricing page for current rates.
Authorizations
Use Authorization: Bearer VIDGO_API_KEY.
Body
application/json