Skip to main content
POST
GPT Image 2.6 Sunburst

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be gpt-image-2-6-sunburst.

Available options:
gpt-image-2-6-sunburst
prompt
string
required

Generation or editing instructions, up to 32,000 characters. Input billing uses the UTF-8 byte length of the trimmed prompt.

Required string length: 1 - 32000
ratio
enum<string>
default:auto

Output ratio. With auto, text generation uses 1:1; reference editing follows the first image.

Available options:
auto,
1:1,
1:2,
2:1,
1:3,
3:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
9:21,
21:9
image_size
enum<string>
default:1k

Resolution tier. Together with quality it decides the price.

Available options:
1k,
2k,
4k
quality
enum<string>
default:low

Rendering quality. Together with image_size it decides the price.

Available options:
low,
medium,
high,
xhigh,
max
background
enum<string>
default:opaque

transparent keeps the alpha channel. Does not affect pricing.

Available options:
opaque,
transparent,
auto
image_list
object[]

Up to 16 direct public image URLs. Each image must be readable, at most 50MB, and return HTTP 200 or 206 without redirects. Reference input is billed separately by its pixel dimensions.

Maximum array length: 16
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

complexity
enum<string>
default:high

Planning intensity, independent of rendering quality. No additional charge.

Available options:
low,
medium,
high

Response

code
integer
required
msg
string
required
data
object
required