The GPT Image 2.5 Sunburst Text To Image API generates images from a text prompt using OpenAI's gpt-image-2.5-sunburst model. Sunburst is the precision-focused GPT Image 2.5 variant, trading longer generation time for extra fidelity on intricate detail.
taskId.Enum: application/json
Bearer authentication token. Example: Bearer {{APIKey}}.
The text description of the image to generate or edit. Maximum length is 4000 characters.
The width of the generated image in pixels. Must be a multiple of 16 and no greater than 3840. The aspect ratio of the longer edge to the shorter edge must not exceed 3:1. Total pixels must be between 655,360 and 8,294,400. Outputs above 3,686,400 pixels (2560×1440) are experimental. Default value: 1024.
The height of the generated image in pixels. Must be a multiple of 16 and no greater than 3840. The aspect ratio of the longer edge to the shorter edge must not exceed 3:1. Total pixels must be between 655,360 and 8,294,400. Default value: 1024.
The quality level of the generated image. Enum: low, medium, high, xhigh, max. auto is not supported. Lower quality generates faster results with fewer credits. Default value: low.
The number of images to generate in a single request. Must be between 1 and 10. Default value: 1.
Returns 0 for success, or a specific error code.
Returns "success" or a descriptive error message.
The unique identifier for the task. Use this ID with the Polling API to retrieve the generated images.
Use the Polling API to retrieve the processing results.
Alternatively, you can enable Callback to receive task results automatically upon completion.
{
"code": 0,
"message": "success",
"data": {
"images": [
{
"imageUrl": "https://dreamapi-rs-aigc.newportai.com/dreamapi/o/2026-09-17/6aab929bc3b94145884a2479730ee30e.jpg",
"imageType": "png"
}
],
"task": {
"taskId": "API-381c1f58e5a14b94905174980df04074",
"status": 3,
"errorCode": 0,
"reason": "ok",
"taskType": "gpt_image_2.5/sunburst/text_to_image",
"executionTime": 108186,
"creditsConsumed": 2,
"expire": 1789618658695
}
}
}curl -X POST 'https://api.newportai.com/api/async/gpt_image_2.5/sunburst/text_to_image' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {{key}}' \
-d '{
"prompt": "A sea otter sitting on a rock in sunlight, photorealistic",
"width": 1024,
"height": 1024,
"quality": "low"
}'{
"code": 0,
"message": "success",
"data": {
"taskId": "API-381c1f58e5a14b94905174980df04074"
}
}