Gpt Image 2.5 Sunburst
Model Overview
GPT Image 2.5 Sunburst is available through the AI/ML API.
API Schemas
The text prompt describing the content, style, or composition of the image to be generated.
The size of the generated image.
1024x1024Possible values: The quality of the image that will be generated.
mediumPossible values: The format of the generated image.
pngPossible values: Allows to set transparency for the background of the generated image(s). When auto is used, the model will automatically determine the best background for the image. If transparent, the output format needs to support transparency, so it should be set to either png (default value) or webp.
autoPossible values: Control the content-moderation level for images.
autoPossible values: The number of images to generate.
1Possible values: Compression level (0-100%), applies to JPEG and WebP only.
100The format in which the generated images are returned.
urlPossible values: Successful response.
curl --request POST \
--url 'https://api.aimlapi.com/v1/images/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "openai/gpt-image-2.5-sunburst", "prompt": "Describe what you want the model to generate."}'Successful response.
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}The text prompt describing the content, style, or composition of the image to be generated.
The image(s) to edit. Must be a supported image file or an array of images. Each image should be a png, webp, or jpg file less than 50MB. You can provide up to 16 images.
The size of the generated image.
1024x1024Possible values: The quality of the image that will be generated.
mediumPossible values: The format of the generated image.
pngPossible values: Allows to set transparency for the background of the generated image(s). When auto is used, the model will automatically determine the best background for the image. If transparent, the output format needs to support transparency, so it should be set to either png (default value) or webp.
autoPossible values: The number of images to generate.
1Compression level (0-100%), applies to JPEG and WebP only.
100The format in which the generated images are returned.
urlPossible values: Successful response.
curl --request POST \
--url 'https://api.aimlapi.com/v1/images/edits' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "openai/gpt-image-2.5-sunburst", "prompt": "Describe what you want the model to generate.", "image": "<image>"}'Successful response.
{
"data": [
{
"url": "https://cdn.aimlapi.com/generations/hedgehog/1749730923700-29fe35d2-4aef-4bc5-a911-6c39884d16a8.png",
"b64_json": null
}
],
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Code Example
Last updated
Was this helpful?