gpt-image-2.5-sunburst/editGeneration type:
image_to_imageEndpoint:
POST /api/asset_generator/
Pricing
Prices are per output. When a request asks for several outputs, the charge is this price times the number of outputs.
Quick start
The example uses sample media from our CDN. Swap in publicly accessible URLs for your own files.Input parameters
Send these fields ininput_params.
string
required
The prompt for image generationMinimum characters:
2.
Maximum characters: 32000.string[]
required
List of URLs of input images for editing.Minimum items:
1.
Maximum items: 10.string
default:"square"
Aspect ratio for the generated imageAllowed values:
"square", "portrait_4_3", "portrait_16_9", "portrait_5_4", "portrait_3_2", "landscape_4_3", "landscape_16_9", "landscape_5_4", "landscape_3_2".string
default:"max"
Quality for the generated imageAllowed values:
"low", "medium", "high", "xhigh", "max".string
default:"auto"
Background for the generated imageAllowed values:
"auto", "transparent", "opaque".string
default:"1K"
Output resolution for the generated imageAllowed values:
"1K", "2K", "4K".integer
default:1
Number of images to generateMinimum:
1.
Maximum: 4.string
default:"png"
Output format for the imagesAllowed values:
"jpeg", "png".Complete JSON schema
Complete JSON schema
Response
The request returns the task withstatus: "initializing". Poll GET /api/asset_generator/{id}/ until status is done or failed, or pass a webhook_url to be notified. A finished task lists its files in assets and the credits it charged in credits_used.
