Skip to main content
POST
GPT Image 2.5 Flare

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be gpt-image-2-5-flare.

Available options:
gpt-image-2-5-flare
prompt
string
required

Up to 32,000 characters; keep it under roughly 8,000 tokens for best results.

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

Aspect ratio. auto lets the model pick, and follows the reference image when one is supplied.

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
image_list
object[]

Reference images to edit, [{"url": "https://..."}]. Up to 16, each under 50MB.

Required array length: 1 - 16 elements
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"

Response

code
integer
required
msg
string
required
data
object
required