curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-2.5-fixed",
"input": {
"prompt": "A paper-cut illustration of a city at sunrise",
"version": "flare",
"resolution": "2K",
"size": "16:9"
}
}
'
{
"code": 200,
"data": {
"task_id": "task-unified-1793176000-example",
"status": "not_started",
"created_time": "2026-10-28T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "validation_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "validation_error"
}
}OpenAI
GPT Image 2.5 Fixed
Generate or edit images with GPT Image 2.5 Flare or Sunburst at a fixed per-image price by resolution.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-image-2.5-fixed",
"input": {
"prompt": "A paper-cut illustration of a city at sunrise",
"version": "flare",
"resolution": "2K",
"size": "16:9"
}
}
'
{
"code": 200,
"data": {
"task_id": "task-unified-1793176000-example",
"status": "not_started",
"created_time": "2026-10-28T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "validation_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "validation_error"
}
}- 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 response result through the unified Query Task Status endpoint.
resolution, instead of token-based pricing. Choose the variant with version. Add reference images to edit or guide the output.
Models
- gpt-image-2.5-fixed — GPT Image 2.5 Flare or Sunburst with per-image pricing
Required parameters
prompt(string): Image description, 1–32000 characters.
Optional parameters
version(string):flareorsunburst. Default isflare.resolution(string):1K,2K, or4K. Default is1K.size(string):auto,1:1,16:9,9:16,4:3,3:4,3:2,2:3,5:4,4:5, or21:9. Default is1:1.image_urls(array of strings): Up to 16 reference image URLs.
Output
A finished task returns the generated image infiles with file_type: image.
Examples
- Text to image with Flare at 2K — sets
prompt,version,resolution,size. - Edit with a reference image using Sunburst — sets
prompt,version,image_urls.
Notes
nandnum_imagesare not supported. Each task returns one image.image_urlsmust be an array, even for one image.- For token-based pricing, use GPT Image 2.5 Flare or GPT Image 2.5 Sunburst.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json