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-sunburst/edit",
"input": {
"prompt": "Preserve the product and replace the background with a warm modern studio.",
"image_urls": [
"https://cdn.vidgo.ai/temp/reference-product.png"
],
"resolution": "2K"
}
}
'{
"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 Sunburst Image Edit
The GPT Image 2.6 Sunburst Image Edit API edits 1–16 reference images into one 1K–4K image, with optional masks, transparent backgrounds and output compression.
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-sunburst/edit",
"input": {
"prompt": "Preserve the product and replace the background with a warm modern studio.",
"image_urls": [
"https://cdn.vidgo.ai/temp/reference-product.png"
],
"resolution": "2K"
}
}
'{
"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-sunburst/text-to-image). GPT Image 2.6 accepts the same parameters as GPT Image 2.5 Sunburst, plus output_compression, moderation and complexity.
Models
- openai/gpt-image-2.6-sunburst/edit — Image edit with GPT Image 2.6 Sunburst, 1–16 reference images, one image per request.
Features
- Instruction-based editing with up to 16 reference images, referenced by order in the prompt.
- Optional mask to limit the edit to one region.
- 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 instructions describing the edit. Up to 32,000 characters; must not be blank.image_urls(string[]): 1–16 reference images as publicly accessible HTTP(S) URLs, in the order you refer to them in the prompt.
Optional parameters
size(string): Aspect-ratio preset,auto, or customWIDTHxHEIGHT. When omitted, the output follows the first reference image’s aspect ratio. 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.mask_url(string): Mask image selecting the area to edit, as a publicly accessible HTTP(S) URL. Requiresimage_urls.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 follows the first reference image’s aspect ratio, using the closest supported ratio at the selectedresolution. Sendsizeto override it. - 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
- Edit with a reference image: replace the background at
2Kwithoutsize, so the output keeps the reference image’s aspect ratio. - Mask edit: change only the masked area, with
size: auto. - Transparent background: remove the background, WebP,
4K,xhighquality. - Custom size: place the product in 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. - An empty
image_urlsarray, more than 16 images, or a URL that is not a valid HTTP(S) URL returns 400. - Credits depend on
quality, the billing tier (resolution, or the custom-size tier described in Size) and the number of reference images.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