# GPT Image 2.6 Sunburst Image Editing

> Image Generation

Edit a single image, optionally constrained by a `mask` or guided by a `markup` annotation layer,
or compose multiple reference images by repeating the multipart `image[]` field.
- The edit endpoint does not support SVG output, and SVG is not a supported input image.
- `output_format: gif` is supported, but GIF output cannot be combined with a mask.

## Endpoint

`POST https://api.modelverse.cn/v1/images/edits`

## Request Body

## Responses

- **200** — Image editing response.
- **400** — Invalid request parameters or editing error.
- **default** — Error response.

## OpenAPI Definition

```json
{
  "openapi": "3.1.0",
  "x-language": "en-US",
  "info": {
    "title": "ModelVerse gpt-image-2.6-sunburst Image API",
    "version": "1.0.0",
    "description": "Self-contained OpenAPI 3.1 schema for the ModelVerse OpenAI-compatible\n`gpt-image-2.6-sunburst` image generation and image editing APIs.\nNew compared with the 2.5 series: `complexity` control, SVG vector output, animated GIF output, and `markup`-guided edits.\n"
  },
  "servers": [
    {
      "url": "https://api.modelverse.cn",
      "description": "Mainland China"
    },
    {
      "url": "https://api.umodelverse.ai",
      "description": "Global"
    },
    {
      "url": "https://api-us-ca.umodelverse.ai",
      "description": "Los Angeles, US"
    },
    {
      "url": "https://api-sg.umodelverse.ai",
      "description": "Singapore"
    },
    {
      "url": "https://api-ge-fra.umodelverse.ai",
      "description": "Frankfurt"
    }
  ],
  "tags": [
    {
      "name": "gpt-image-2.6-sunburst",
      "description": "Image generation, SVG / GIF output, localized image editing, markup-guided editing, and multi-image composition with gpt-image-2.6-sunburst."
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/images/generations": {
      "post": {
        "tags": [
          "gpt-image-2.6-sunburst"
        ],
        "operationId": "createGptImage26SunburstImageGeneration",
        "summary": "GPT Image 2.6 Sunburst Image Generation",
        "description": "Generate images from a text prompt. The response returns base64 data in `data[].b64_json`.\n- With `output_format: svg`, the response is an SVG vector image. `svg.model` is required and `n` must be 1.\n- With `output_format: gif`, the response is an animated GIF. Use `frame_count` and `frame_duration_ms` to control frames.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GptImage26SunburstGenerationRequest"
              },
              "examples": {
                "flower": {
                  "summary": "Generate a PNG image",
                  "value": {
                    "model": "gpt-image-2.6-sunburst",
                    "prompt": "a beautiful flower",
                    "size": "1024x1024",
                    "quality": "high",
                    "complexity": "medium",
                    "background": "transparent",
                    "output_format": "png",
                    "output_compression": 100
                  }
                },
                "svgOutput": {
                  "summary": "Generate an SVG vector image",
                  "value": {
                    "model": "gpt-image-2.6-sunburst",
                    "prompt": "a vector illustration of a lighthouse on a cliff at sunset, flat colors, clean paths",
                    "size": "1024x1024",
                    "quality": "medium",
                    "complexity": "low",
                    "output_format": "svg",
                    "svg": {
                      "model": "gpt-6.1-sol",
                      "reasoning": {
                        "effort": "low"
                      }
                    },
                    "n": 1
                  }
                },
                "gifOutput": {
                  "summary": "Generate an animated GIF",
                  "value": {
                    "model": "gpt-image-2.6-sunburst",
                    "prompt": "a paper airplane looping through soft white clouds, simple flat style, seamless loop",
                    "size": "auto",
                    "quality": "low",
                    "complexity": "low",
                    "output_format": "gif",
                    "frame_count": 4,
                    "frame_duration_ms": 150,
                    "n": 1
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Image generation response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26SunburstImagesResponse"
                },
                "examples": {
                  "generatedImage": {
                    "summary": "Generated image with token usage",
                    "value": {
                      "created": 1750667997,
                      "data": [
                        {
                          "b64_json": "{image_base64_string}"
                        }
                      ],
                      "background": "transparent",
                      "output_format": "png",
                      "quality": "high",
                      "size": "1024x1024",
                      "usage": {
                        "total_tokens": 4169,
                        "input_tokens": 9,
                        "output_tokens": 4160,
                        "input_tokens_details": {
                          "text_tokens": 9
                        }
                      }
                    }
                  },
                  "svgImage": {
                    "summary": "SVG output (reference image usage + SVG authoring svg_usage)",
                    "value": {
                      "created": 1794537975,
                      "data": [
                        {
                          "b64_json": "{svg_base64_string}"
                        }
                      ],
                      "background": "opaque",
                      "output_format": "svg",
                      "quality": "medium",
                      "size": "1024x1024",
                      "usage": {
                        "total_tokens": 1539,
                        "input_tokens": 90,
                        "output_tokens": 1449,
                        "input_tokens_details": {
                          "text_tokens": 90,
                          "image_tokens": 0
                        },
                        "output_tokens_details": {
                          "text_tokens": 0,
                          "image_tokens": 1449
                        }
                      },
                      "svg_usage": {
                        "model": "gpt-6.1-sol",
                        "input_tokens": 1599,
                        "output_tokens": 4277,
                        "reasoning_tokens": 48,
                        "total_tokens": 5876
                      }
                    }
                  },
                  "gifImage": {
                    "summary": "GIF output (4 frames; with size auto the API chose 512x512 per frame)",
                    "value": {
                      "created": 1794554507,
                      "data": [
                        {
                          "b64_json": "{gif_base64_string}",
                          "generation_id": "75091ae8-8a37-408b-8cb5-508d19bf7396"
                        }
                      ],
                      "background": "opaque",
                      "output_format": "gif",
                      "quality": "low",
                      "size": "512x512",
                      "usage": {
                        "total_tokens": 598,
                        "input_tokens": 43,
                        "output_tokens": 555,
                        "input_tokens_details": {
                          "text_tokens": 43,
                          "image_tokens": 0
                        },
                        "output_tokens_details": {
                          "text_tokens": 0,
                          "image_tokens": 555
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters or generation error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26SunburstErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26SunburstError"
                  },
                  "svgModelMissing": {
                    "$ref": "#/components/examples/GptImage26SunburstSvgModelMissingError"
                  },
                  "gifPixelBudgetExceeded": {
                    "$ref": "#/components/examples/GptImage26SunburstGifPixelBudgetError"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26SunburstErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26SunburstError"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/images/edits": {
      "post": {
        "tags": [
          "gpt-image-2.6-sunburst"
        ],
        "operationId": "createGptImage26SunburstImageEdit",
        "summary": "GPT Image 2.6 Sunburst Image Editing",
        "description": "Edit a single image, optionally constrained by a `mask` or guided by a `markup` annotation layer,\nor compose multiple reference images by repeating the multipart `image[]` field.\n- The edit endpoint does not support SVG output, and SVG is not a supported input image.\n- `output_format: gif` is supported, but GIF output cannot be combined with a mask.\n",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/GptImage26SunburstEditRequest"
              },
              "encoding": {
                "image": {
                  "contentType": "image/png"
                },
                "mask": {
                  "contentType": "image/png"
                },
                "markup": {
                  "contentType": "image/png"
                },
                "image[]": {
                  "contentType": "image/png",
                  "style": "form",
                  "explode": true
                }
              },
              "examples": {
                "localizedEdit": {
                  "summary": "Localized edit with an optional mask",
                  "value": {
                    "image": "/path/to/your/image.png",
                    "mask": "/path/to/your/mask.png",
                    "model": "gpt-image-2.6-sunburst",
                    "prompt": "Add a beach ball in the center",
                    "size": "1024x1024",
                    "n": 1,
                    "quality": "low",
                    "background": "opaque",
                    "output_format": "png",
                    "output_compression": 100
                  }
                },
                "markupEdit": {
                  "summary": "Markup-guided edit",
                  "value": {
                    "image": "/path/to/your/photo.png",
                    "markup": "/path/to/your/annotations.png",
                    "model": "gpt-image-2.6-sunburst",
                    "prompt": "Follow the red annotations, replace the circled cup with a glass of orange juice",
                    "quality": "medium"
                  }
                },
                "multiImageComposition": {
                  "summary": "Compose multiple images by repeating image[]",
                  "value": {
                    "model": "gpt-image-2.6-sunburst",
                    "image[]": [
                      "./body-lotion.png",
                      "./bath-bomb.png",
                      "./incense-kit.png",
                      "./soap.png"
                    ],
                    "prompt": "a beautiful gift basket containing all these products arranged elegantly"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Image editing response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26SunburstImagesResponse"
                },
                "examples": {
                  "editedImage": {
                    "summary": "Edited image with token usage",
                    "value": {
                      "created": 1750668025,
                      "data": [
                        {
                          "b64_json": "{edited_image_base64}"
                        }
                      ],
                      "background": "opaque",
                      "output_format": "png",
                      "quality": "low",
                      "size": "1024x1024",
                      "usage": {
                        "total_tokens": 8290,
                        "input_tokens": 4170,
                        "output_tokens": 4120,
                        "input_tokens_details": {
                          "text_tokens": 10,
                          "image_tokens": 4160
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request parameters or editing error.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26SunburstErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26SunburstError"
                  }
                }
              }
            }
          },
          "default": {
            "description": "Error response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26SunburstErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26SunburstError"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GptImage26SunburstModel": {
        "type": "string",
        "enum": [
          "gpt-image-2.6-sunburst"
        ],
        "description": "The model to use for image generation.\n"
      },
      "GptImage26SunburstPrompt": {
        "type": "string",
        "maxLength": 32000,
        "description": "A text description of the desired image(s). Maximum length is 32000 characters for gpt-image-2.6-sunburst.\n"
      },
      "GptImage26SunburstImageCount": {
        "type": "integer",
        "minimum": 1,
        "maximum": 10,
        "default": 1,
        "description": "The number of images to generate. Must be between 1 and 10.\n- Must be 1 for SVG output.\n- For GIF output, `n` also counts toward the total request pixel budget.\n"
      },
      "GptImage26SunburstSize": {
        "type": "string",
        "default": "auto",
        "description": "The size of the generated images. Supports arbitrary resolutions as `WIDTHxHEIGHT` strings (e.g., 1536x864).\nWidth and height must both be divisible by 16, and the aspect ratio must be between 1:3 and 3:1.\nMaximum supported resolution is 3840x2160.\nFor GIF output, `size` describes **each frame**. frame count × frame pixels × `n` must fit the total request pixel budget,\notherwise the request fails with `invalid_value` (param `size`). The budget value is not published; use `auto` for GIF\nto let the API choose a frame size within limits (for example, 1024x1024 × 4 frames already exceeds the budget; with `auto`, 4 frames resolved to 512x512).\n",
        "x-max-aspect-ratio": "3:1",
        "x-min-aspect-ratio": "1:3",
        "oneOf": [
          {
            "const": "auto"
          },
          {
            "pattern": "^[1-9][0-9]*x[1-9][0-9]*$"
          }
        ],
        "examples": [
          "1024x1024",
          "1024x1536",
          "1536x1024",
          "2048x2048",
          "2048x1152",
          "2160x3840",
          "2560x1440",
          "3840x2160"
        ]
      },
      "GptImage26SunburstQuality": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high",
          "xhigh",
          "max"
        ],
        "description": "The quality of the image to be generated.\n- `low`: Low quality\n- `medium`: Medium quality\n- `high`: High quality (may take longer)\n- `xhigh`: Extra high quality\n- `max`: Maximum quality\nFor SVG output, `quality` controls the reference image that the API renders before authoring the SVG.\n"
      },
      "GptImage26SunburstComplexity": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "default": "high",
        "description": "Computation spent planning the image, independent of rendering `quality`.\n- `low`: Simpler composition, faster generation\n- `medium`: Balanced\n- `high`: Denser visual elements and more intricate composition (default)\nHigher complexity can increase latency and may introduce unwanted changes. Adjusting complexity has no separate fee.\n"
      },
      "GptImage26SunburstBackground": {
        "type": "string",
        "enum": [
          "transparent",
          "opaque",
          "auto"
        ],
        "default": "auto",
        "description": "Set the background of the generated image(s).\n- `transparent`: Transparent background (requires output_format to be png or webp)\n- `opaque`: Opaque background\n- `auto`: Automatically determine the best background (default)\n"
      },
      "GptImage26SunburstModeration": {
        "type": "string",
        "enum": [
          "low",
          "auto"
        ],
        "default": "auto",
        "description": "Control the content-moderation level for images generated.\n- `low`: Less restrictive filtering\n- `auto`: Default moderation level\n"
      },
      "GptImage26SunburstOutputFormat": {
        "type": "string",
        "enum": [
          "png",
          "jpeg",
          "webp",
          "gif",
          "svg"
        ],
        "default": "png",
        "description": "The format in which the generated images are returned.\n- `png` / `jpeg` / `webp`: Raster images\n- `gif`: Animated GIF, used with `frame_count` and `frame_duration_ms`. Streaming, partial images, and custom `output_compression` are not supported.\n- `svg`: Vector image (UTF-8 XML, static vector content without scripts, external resources, or embedded raster images). Requires `svg.model`, `n` must be 1; streaming, partial images, and `output_compression` are not supported.\n"
      },
      "GptImage26SunburstEditOutputFormat": {
        "type": "string",
        "enum": [
          "png",
          "jpeg",
          "webp",
          "gif"
        ],
        "default": "png",
        "description": "The format in which the edited images are returned. `svg` is not supported by the edit endpoint.\n`gif` output does not support masks, streaming, partial images, or custom `output_compression`.\n"
      },
      "GptImage26SunburstOutputCompression": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100,
        "default": 100,
        "description": "The compression level (0-100%) for the generated images. Only supported for jpeg and webp formats; not supported for SVG or GIF output.\n`0` disables compression, `100` applies maximum compression.\n"
      },
      "GptImage26SunburstSvgOptions": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model"
        ],
        "description": "SVG output settings, used only when `output_format` is `svg`.\nThe top-level `model` (gpt-image-2.6-sunburst) renders a reference image first, then the text model in `svg.model` authors the SVG from it.\n",
        "properties": {
          "model": {
            "type": "string",
            "description": "The text model that authors the SVG. Required when `output_format` is `svg`.\nMust be a GPT text model available on ModelVerse that the current API key is allowed to call (for example `gpt-6.1-sol`); image models are not allowed.\nSVG authoring usage is billed separately at this model's price.\n",
            "examples": [
              "gpt-6.1-sol"
            ]
          },
          "reasoning": {
            "type": "object",
            "additionalProperties": false,
            "description": "Reasoning settings for the SVG author, independent of `complexity`.",
            "properties": {
              "effort": {
                "type": "string",
                "enum": [
                  "none",
                  "minimal",
                  "low",
                  "medium",
                  "high",
                  "xhigh",
                  "max"
                ],
                "description": "Reasoning effort for the SVG author. Defaults to the `svg.model` default when omitted."
              }
            }
          }
        }
      },
      "GptImage26SunburstFrameCount": {
        "type": "integer",
        "minimum": 2,
        "maximum": 16,
        "default": 9,
        "description": "Number of GIF frames. Used only when `output_format` is `gif`. More frames make it easier to exceed the total request pixel budget.\n"
      },
      "GptImage26SunburstFrameDurationMs": {
        "type": "integer",
        "minimum": 20,
        "maximum": 2000,
        "default": 200,
        "description": "Delay per GIF frame in milliseconds, rounded to 10 ms. Used only when `output_format` is `gif`.\n"
      },
      "GptImage26SunburstGenerationRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "$ref": "#/components/schemas/GptImage26SunburstModel"
          },
          "prompt": {
            "$ref": "#/components/schemas/GptImage26SunburstPrompt"
          },
          "n": {
            "$ref": "#/components/schemas/GptImage26SunburstImageCount"
          },
          "size": {
            "$ref": "#/components/schemas/GptImage26SunburstSize"
          },
          "quality": {
            "$ref": "#/components/schemas/GptImage26SunburstQuality"
          },
          "complexity": {
            "$ref": "#/components/schemas/GptImage26SunburstComplexity"
          },
          "background": {
            "$ref": "#/components/schemas/GptImage26SunburstBackground"
          },
          "moderation": {
            "$ref": "#/components/schemas/GptImage26SunburstModeration"
          },
          "output_format": {
            "$ref": "#/components/schemas/GptImage26SunburstOutputFormat"
          },
          "output_compression": {
            "$ref": "#/components/schemas/GptImage26SunburstOutputCompression"
          },
          "svg": {
            "$ref": "#/components/schemas/GptImage26SunburstSvgOptions"
          },
          "frame_count": {
            "$ref": "#/components/schemas/GptImage26SunburstFrameCount"
          },
          "frame_duration_ms": {
            "$ref": "#/components/schemas/GptImage26SunburstFrameDurationMs"
          }
        }
      },
      "GptImage26SunburstEditRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "prompt"
        ],
        "anyOf": [
          {
            "required": [
              "image"
            ]
          },
          {
            "required": [
              "image[]"
            ]
          }
        ],
        "properties": {
          "image": {
            "type": "string",
            "format": "binary",
            "description": "The image to edit. When `markup` is provided, the annotations apply to this image."
          },
          "image[]": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "format": "binary"
            },
            "description": "Repeated multipart `image` field for multi-image composition. With `markup`, the first image is edited and the rest are references."
          },
          "mask": {
            "type": "string",
            "format": "binary",
            "description": "Optional mask file that constrains a single-image localized edit. Cannot be combined with `markup`."
          },
          "markup": {
            "type": "string",
            "format": "binary",
            "description": "Optional annotation layer (strokes, circles, notes) that guides the edit.\n- Must be a transparent PNG with exactly the same width and height as the first input image; do not flatten annotations onto the photo.\n- The first input image and the annotation layer can each contain at most 16,777,216 pixels; the annotation file is limited to 50 MB.\n- Cannot be combined with `mask`.\n"
          },
          "model": {
            "$ref": "#/components/schemas/GptImage26SunburstModel"
          },
          "prompt": {
            "$ref": "#/components/schemas/GptImage26SunburstPrompt"
          },
          "n": {
            "$ref": "#/components/schemas/GptImage26SunburstImageCount"
          },
          "size": {
            "$ref": "#/components/schemas/GptImage26SunburstSize"
          },
          "quality": {
            "$ref": "#/components/schemas/GptImage26SunburstQuality"
          },
          "complexity": {
            "$ref": "#/components/schemas/GptImage26SunburstComplexity"
          },
          "background": {
            "$ref": "#/components/schemas/GptImage26SunburstBackground"
          },
          "moderation": {
            "$ref": "#/components/schemas/GptImage26SunburstModeration"
          },
          "output_format": {
            "$ref": "#/components/schemas/GptImage26SunburstEditOutputFormat"
          },
          "output_compression": {
            "$ref": "#/components/schemas/GptImage26SunburstOutputCompression"
          },
          "frame_count": {
            "$ref": "#/components/schemas/GptImage26SunburstFrameCount"
          },
          "frame_duration_ms": {
            "$ref": "#/components/schemas/GptImage26SunburstFrameDurationMs"
          }
        }
      },
      "GptImage26SunburstImagesResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "created",
          "data"
        ],
        "properties": {
          "created": {
            "type": "integer",
            "format": "int64",
            "description": "Unix timestamp in seconds for when the request was created."
          },
          "data": {
            "type": "array",
            "minItems": 1,
            "description": "Generated image data as base64. SVG decodes to UTF-8 XML; GIF decodes to a .gif file.",
            "items": {
              "$ref": "#/components/schemas/GptImage26SunburstImageData"
            }
          },
          "background": {
            "type": "string",
            "enum": [
              "transparent",
              "opaque"
            ],
            "description": "Background type of the generated image."
          },
          "output_format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "gif",
              "svg"
            ],
            "description": "The output format of the image generation."
          },
          "quality": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "xhigh",
              "max"
            ],
            "description": "The quality of the image generated."
          },
          "size": {
            "type": "string",
            "description": "Image size as a WIDTHxHEIGHT string (per-frame size for GIF)."
          },
          "usage": {
            "$ref": "#/components/schemas/GptImage26SunburstUsage"
          },
          "svg_usage": {
            "$ref": "#/components/schemas/GptImage26SunburstSvgUsage"
          }
        }
      },
      "GptImage26SunburstImageData": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "b64_json"
        ],
        "properties": {
          "b64_json": {
            "type": "string",
            "description": "Base64-encoded image data, optionally with a data URL prefix."
          },
          "generation_id": {
            "type": "string",
            "description": "Generation ID, returned for some outputs such as GIF."
          }
        }
      },
      "GptImage26SunburstUsage": {
        "type": "object",
        "additionalProperties": true,
        "description": "Image rendering usage (the reference image for SVG output), billed at the gpt-image-2.6-sunburst price.",
        "properties": {
          "total_tokens": {
            "type": "integer"
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "input_tokens_details": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "text_tokens": {
                "type": "integer"
              },
              "image_tokens": {
                "type": "integer"
              }
            }
          },
          "output_tokens_details": {
            "type": "object",
            "additionalProperties": true,
            "properties": {
              "text_tokens": {
                "type": "integer"
              },
              "image_tokens": {
                "type": "integer"
              }
            }
          }
        }
      },
      "GptImage26SunburstSvgUsage": {
        "type": "object",
        "additionalProperties": true,
        "description": "Token usage for SVG authoring, returned only for SVG output. It is separate from `usage` and billed at the `svg.model` price.\n`output_tokens` already includes `reasoning_tokens`.\n",
        "properties": {
          "model": {
            "type": "string",
            "description": "The model that authored the SVG."
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "reasoning_tokens": {
            "type": "integer"
          },
          "total_tokens": {
            "type": "integer"
          }
        }
      },
      "GptImage26SunburstErrorResponse": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/GptImage26SunburstError"
          }
        }
      },
      "GptImage26SunburstError": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message."
          },
          "type": {
            "type": "string",
            "description": "Error type."
          },
          "param": {
            "type": "string",
            "description": "Request ID or related parameter."
          },
          "code": {
            "type": "string",
            "description": "Error code."
          }
        }
      }
    },
    "examples": {
      "GptImage26SunburstError": {
        "summary": "Documented error response",
        "value": {
          "error": {
            "message": "error_message",
            "type": "error_type",
            "param": "request_id",
            "code": "error_code"
          }
        }
      },
      "GptImage26SunburstSvgModelMissingError": {
        "summary": "SVG output without svg.model",
        "value": {
          "error": {
            "message": "SVG generation requires 'svg.model'.",
            "type": "invalid_request_error",
            "param": "svg.model",
            "code": "missing_required_parameter"
          }
        }
      },
      "GptImage26SunburstGifPixelBudgetError": {
        "summary": "GIF frames × frame size exceed the total request pixel budget",
        "value": {
          "error": {
            "message": "GIF frames exceed the total request pixel budget. Reduce the frame size or frame_count.",
            "type": "image_generation_user_error",
            "param": "size",
            "code": "invalid_value"
          }
        }
      }
    }
  }
}
```
