{ "model_id": "openai/gpt-image-2.5-sunburst", "provider_id": "openai", "name": "GPT Image 2.5 Sunburst", "description": "OpenAI's most capable image generation and editing model. It accepts text and image inputs and produces images with low, medium, high, xhigh, max, and auto quality settings.", "task": "Text-to-Image", "tags": [ "Image Generation", "Image Editing", "Multimodal" ], "context_length": null, "max_output_tokens": null, "schema_version": "1.0.0", "pricing": { "Cached input image tokens (per 1M)": 3, "Cached input tokens (per 1M)": 1.25, "Input image tokens (per 1M)": 8, "Input tokens (per 1M)": 5, "Output image tokens (per 1M)": 30 }, "examples": [ { "name": "Technical Editorial Illustration", "description": "Create a detailed editorial illustration with the highest quality setting", "input": { "prompt": "A cutaway editorial illustration of a floating ocean research station during a storm, showing laboratories, hydroponic gardens, autonomous submersibles, and illuminated underwater cables, precise technical details, dramatic but realistic lighting", "quality": "max", "size": "1536x1024" }, "output": { "image": "https://examples.aig.cloudflare.com/openai/gpt-image-2.5-sunburst/technical-editorial-illustration.png" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/openai/gpt-image-2.5-sunburst/technical-editorial-illustration.png" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/gpt-image-2.5-sunburst',\n {\n prompt:\n 'A cutaway editorial illustration of a floating ocean research station during a storm, showing laboratories, hydroponic gardens, autonomous submersibles, and illuminated underwater cables, precise technical details, dramatic but realistic lighting',\n quality: 'max',\n size: '1536x1024',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"openai/gpt-image-2.5-sunburst\",\n \"input\": {\n \"prompt\": \"A cutaway editorial illustration of a floating ocean research station during a storm, showing laboratories, hydroponic gardens, autonomous submersibles, and illuminated underwater cables, precise technical details, dramatic but realistic lighting\",\n \"quality\": \"max\",\n \"size\": \"1536x1024\"\n }\n}'" } ] }, { "name": "Portrait WebP", "description": "Generate a portrait composition in WebP format", "input": { "prompt": "A fashion portrait of an astronaut botanist in a glass greenhouse on Mars, crimson dust visible through the windows, translucent fabric, delicate blue flowers in the foreground, soft rim light, sophisticated magazine photography", "quality": "xhigh", "size": "1024x1536", "output_format": "webp" }, "output": { "image": "https://examples.aig.cloudflare.com/openai/gpt-image-2.5-sunburst/portrait-webp.webp" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/openai/gpt-image-2.5-sunburst/portrait-webp.webp" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/gpt-image-2.5-sunburst',\n {\n prompt:\n 'A fashion portrait of an astronaut botanist in a glass greenhouse on Mars, crimson dust visible through the windows, translucent fabric, delicate blue flowers in the foreground, soft rim light, sophisticated magazine photography',\n quality: 'xhigh',\n size: '1024x1536',\n output_format: 'webp',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"openai/gpt-image-2.5-sunburst\",\n \"input\": {\n \"prompt\": \"A fashion portrait of an astronaut botanist in a glass greenhouse on Mars, crimson dust visible through the windows, translucent fabric, delicate blue flowers in the foreground, soft rim light, sophisticated magazine photography\",\n \"quality\": \"xhigh\",\n \"size\": \"1024x1536\",\n \"output_format\": \"webp\"\n }\n}'" } ] }, { "name": "Cinematic Reference Edit", "description": "Edit a reference image into a cinematic scene while preserving its main subject", "input": { "prompt": "Turn the reference drawing into a polished cinematic stop-motion scene. Preserve the character's face and red scarf, add a miniature train platform at night, warm station lights, shallow depth of field, handcrafted felt and paper textures", "images": [ "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAnklEQVR42u2XQRLAIAgD8/839i/26qFCACm0ozPe1KwcQsAoXvgcAABxpwFowl4QWITHxW0LCBhxVngF4gKIirMQyBRnIJAtrkE8AuwWnyFEgKzfS1UA+3sWTju3BGAu7gKYIfBW+Q/AAQgBeMCkt1wVsLZjcwUYG2Z9wGLHZitWk1DEisubUYt2XB5IWkSyFqG0RSxvMZi0Gc1+Ox3fm00ZJ5mGVtkAAAAASUVORK5CYII=" ], "quality": "high", "background": "opaque" }, "output": { "image": "https://examples.aig.cloudflare.com/openai/gpt-image-2.5-sunburst/cinematic-reference-edit.png" }, "raw_response": { "state": "Completed", "result": { "image": "https://examples.aig.cloudflare.com/openai/gpt-image-2.5-sunburst/cinematic-reference-edit.png" }, "gatewayMetadata": { "keySource": "Unified" } }, "code_snippets": [ { "label": "typescript", "language": "typescript", "code": "const response = await env.AI.run(\n 'openai/gpt-image-2.5-sunburst',\n {\n prompt:\n \"Turn the reference drawing into a polished cinematic stop-motion scene. Preserve the character's face and red scarf, add a miniature train platform at night, warm station lights, shallow depth of field, handcrafted felt and paper textures\",\n images: [\n 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAnklEQVR42u2XQRLAIAgD8/839i/26qFCACm0ozPe1KwcQsAoXvgcAABxpwFowl4QWITHxW0LCBhxVngF4gKIirMQyBRnIJAtrkE8AuwWnyFEgKzfS1UA+3sWTju3BGAu7gKYIfBW+Q/AAQgBeMCkt1wVsLZjcwUYG2Z9wGLHZitWk1DEisubUYt2XB5IWkSyFqG0RSxvMZi0Gc1+Ox3fm00ZJ5mGVtkAAAAASUVORK5CYII=',\n ],\n quality: 'high',\n background: 'opaque',\n },\n)\nconsole.log(response)" }, { "label": "curl", "language": "bash", "code": "curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \\\n --header \"Authorization: Bearer $CLOUDFLARE_API_TOKEN\" \\\n --header \"Content-Type: application/json\" \\\n --data '{\n \"model\": \"openai/gpt-image-2.5-sunburst\",\n \"input\": {\n \"prompt\": \"Turn the reference drawing into a polished cinematic stop-motion scene. Preserve the character'\\''s face and red scarf, add a miniature train platform at night, warm station lights, shallow depth of field, handcrafted felt and paper textures\",\n \"images\": [\n \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAnklEQVR42u2XQRLAIAgD8/839i/26qFCACm0ozPe1KwcQsAoXvgcAABxpwFowl4QWITHxW0LCBhxVngF4gKIirMQyBRnIJAtrkE8AuwWnyFEgKzfS1UA+3sWTju3BGAu7gKYIfBW+Q/AAQgBeMCkt1wVsLZjcwUYG2Z9wGLHZitWk1DEisubUYt2XB5IWkSyFqG0RSxvMZi0Gc1+Ox3fm00ZJ5mGVtkAAAAASUVORK5CYII=\"\n ],\n \"quality\": \"high\",\n \"background\": \"opaque\"\n }\n}'" } ] } ], "default_example": null, "code_snippets": [], "supports_async": false, "zdr": false, "zdr_comment": null, "external_info": "https://developers.openai.com/api/docs/models/gpt-image-2.5-sunburst", "terms": "https://openai.com/policies/", "cover_image_url": "https://pub-26f1392c1b674324be6786695bd72257.r2.dev/openai/gpt-image-2.5-sunburst.png", "metadata": { "Image Editing": "Yes", "Output Formats": "png, webp, jpeg", "Quality": "low, medium, high, xhigh, max, auto", "Sizes": "1024x1024, 1024x1536, 1536x1024, auto" }, "request_formats": null, "providers": null, "provider_details": [ { "id": "openai", "pricing": { "input_cached_image_tokens": 3, "input_cached_tokens": 1.25, "input_image_tokens": 8, "input_tokens": 5, "output_image_tokens": 30 } } ], "banner": null, "created_at": "2026-09-10 23:35:47", "schema": { "input": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "prompt": { "type": "string", "description": "Text prompt describing the image to generate or edit" }, "images": { "description": "Input images for image editing, 1-16 entries. Each entry is base64-encoded (raw string or data:image/{png|jpeg|webp};base64,... URI).", "maxItems": 16, "type": "array", "items": { "type": "string" } }, "quality": { "description": "Quality of the generated image", "type": "string", "enum": [ "low", "medium", "high", "xhigh", "max", "auto" ] }, "size": { "description": "Size of the generated image", "type": "string", "enum": [ "1024x1024", "1024x1536", "1536x1024", "auto" ] }, "background": { "description": "Background transparency setting", "type": "string", "enum": [ "transparent", "opaque", "auto" ] }, "output_format": { "description": "Output format for the generated image", "type": "string", "enum": [ "png", "webp", "jpeg" ] } }, "required": [ "prompt" ], "additionalProperties": {} }, "output": { "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { "image": { "type": "string", "format": "uri", "description": "URL to the generated image" } }, "required": [ "image" ], "additionalProperties": false } } }