# GPT Image 2.6 Flare 图像编辑

> 图像生成

发起图片编辑请求。通过 multipart 上传图片，可选 mask（局部编辑）或 markup（标注图引导编辑），响应返回编辑后的图片结果。
- 编辑接口不支持 SVG 输出，SVG 也不能作为编辑的输入图。
- 支持 `output_format: gif` 输出动图，但 GIF 输出不能与 mask 同时使用。

## 请求地址

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

## 请求体

## 响应

- **200** — 图像编辑响应。
- **400** — 无效请求参数或编辑错误。
- **default** — 错误响应。

## OpenAPI 定义

```json
{
  "openapi": "3.1.0",
  "x-language": "zh-CN",
  "info": {
    "title": "gpt-image-2.6-flare接口文档",
    "version": "1.0.0",
    "description": "这是 ModelVerse 上 `gpt-image-2.6-flare` 的图片接口文档，说明如何发起图片生成或编辑请求、填写参数、读取结果以及处理错误。\n接口路径包括 `POST /v1/images/generations`、`POST /v1/images/edits`。\n相比 2.5 系列新增：画面复杂度 `complexity`、SVG 矢量图输出、GIF 动图输出、标注图引导编辑 `markup`。\n"
  },
  "servers": [
    {
      "url": "https://api.modelverse.cn",
      "description": "中国大陆"
    },
    {
      "url": "https://api.umodelverse.ai",
      "description": "海外"
    },
    {
      "url": "https://api-us-ca.umodelverse.ai",
      "description": "美国洛杉矶"
    },
    {
      "url": "https://api-sg.umodelverse.ai",
      "description": "新加坡"
    },
    {
      "url": "https://api-ge-fra.umodelverse.ai",
      "description": "法兰克福"
    }
  ],
  "tags": [
    {
      "name": "gpt-image-2.6-flare",
      "description": "使用 gpt-image-2.6-flare 进行图像生成、SVG / GIF 输出、局部图像编辑、标注引导编辑和多图像合成。"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/images/generations": {
      "post": {
        "tags": [
          "gpt-image-2.6-flare"
        ],
        "operationId": "createGptImage26FlareImageGeneration",
        "summary": "GPT Image 2.6 Flare 图像生成",
        "description": "发起图片生成请求。请求体包含模型、提示词和可选生成参数，响应返回 Base64 图像数据。\n- `output_format` 为 `svg` 时返回 SVG 矢量图：必须传 `svg.model`，且 `n` 只能为 1。\n- `output_format` 为 `gif` 时返回 GIF 动图：可用 `frame_count`、`frame_duration_ms` 控制帧数和每帧时长。\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GptImage26FlareGenerationRequest"
              },
              "examples": {
                "flower": {
                  "summary": "生成 PNG 图像",
                  "value": {
                    "model": "gpt-image-2.6-flare",
                    "prompt": "a beautiful flower",
                    "size": "1024x1024",
                    "quality": "high",
                    "complexity": "medium",
                    "background": "transparent",
                    "output_format": "png",
                    "output_compression": 100
                  }
                },
                "svgOutput": {
                  "summary": "生成 SVG 矢量图",
                  "value": {
                    "model": "gpt-image-2.6-flare",
                    "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": "生成 GIF 动图",
                  "value": {
                    "model": "gpt-image-2.6-flare",
                    "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": "图像生成响应。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26FlareImagesResponse"
                },
                "examples": {
                  "generatedImage": {
                    "summary": "带 token 用量的生成图像",
                    "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 输出（参考图用量 usage + SVG 编写用量 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 输出（4 帧，size 为 auto 时接口选择单帧 512x512）",
                    "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": "无效请求参数或生成错误。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26FlareErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26FlareError"
                  },
                  "svgModelMissing": {
                    "$ref": "#/components/examples/GptImage26FlareSvgModelMissingError"
                  },
                  "gifPixelBudgetExceeded": {
                    "$ref": "#/components/examples/GptImage26FlareGifPixelBudgetError"
                  }
                }
              }
            }
          },
          "default": {
            "description": "错误响应。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26FlareErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26FlareError"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/images/edits": {
      "post": {
        "tags": [
          "gpt-image-2.6-flare"
        ],
        "operationId": "createGptImage26FlareImageEdit",
        "summary": "GPT Image 2.6 Flare 图像编辑",
        "description": "发起图片编辑请求。通过 multipart 上传图片，可选 mask（局部编辑）或 markup（标注图引导编辑），响应返回编辑后的图片结果。\n- 编辑接口不支持 SVG 输出，SVG 也不能作为编辑的输入图。\n- 支持 `output_format: gif` 输出动图，但 GIF 输出不能与 mask 同时使用。\n",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/GptImage26FlareEditRequest"
              },
              "encoding": {
                "image": {
                  "contentType": "image/png"
                },
                "mask": {
                  "contentType": "image/png"
                },
                "markup": {
                  "contentType": "image/png"
                },
                "image[]": {
                  "contentType": "image/png",
                  "style": "form",
                  "explode": true
                }
              },
              "examples": {
                "localizedEdit": {
                  "summary": "带可选遮罩的局部编辑",
                  "value": {
                    "image": "/path/to/your/image.png",
                    "mask": "/path/to/your/mask.png",
                    "model": "gpt-image-2.6-flare",
                    "prompt": "Add a beach ball in the center",
                    "size": "1024x1024",
                    "n": 1,
                    "quality": "low",
                    "background": "opaque",
                    "output_format": "png",
                    "output_compression": 100
                  }
                },
                "markupEdit": {
                  "summary": "标注图引导编辑",
                  "value": {
                    "image": "/path/to/your/photo.png",
                    "markup": "/path/to/your/annotations.png",
                    "model": "gpt-image-2.6-flare",
                    "prompt": "Follow the red annotations, replace the circled cup with a glass of orange juice",
                    "quality": "medium"
                  }
                },
                "multiImageComposition": {
                  "summary": "通过重复 image[] 合成多张图片",
                  "value": {
                    "model": "gpt-image-2.6-flare",
                    "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": "图像编辑响应。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26FlareImagesResponse"
                },
                "examples": {
                  "editedImage": {
                    "summary": "带 token 用量的编辑图像",
                    "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": "无效请求参数或编辑错误。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26FlareErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26FlareError"
                  }
                }
              }
            }
          },
          "default": {
            "description": "错误响应。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GptImage26FlareErrorResponse"
                },
                "examples": {
                  "documentedError": {
                    "$ref": "#/components/examples/GptImage26FlareError"
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "GptImage26FlareModel": {
        "type": "string",
        "enum": [
          "gpt-image-2.6-flare"
        ],
        "description": "用于图像生成的模型。\n"
      },
      "GptImage26FlarePrompt": {
        "type": "string",
        "maxLength": 32000,
        "description": "所需图像的文本描述。gpt-image-2.6-flare 最大长度为 32000 字符。\n"
      },
      "GptImage26FlareImageCount": {
        "type": "integer",
        "minimum": 1,
        "maximum": 10,
        "default": 1,
        "description": "要生成的图像数量。必须在 1 到 10 之间。\n- SVG 输出时必须为 1。\n- GIF 输出时 `n` 也计入请求总像素预算。\n"
      },
      "GptImage26FlareSize": {
        "type": "string",
        "default": "auto",
        "description": "生成图像的尺寸。支持任意分辨率 `WIDTHxHEIGHT` 格式（如 1536x864）。\n宽度和高度必须都能被 16 整除，宽高比必须在 1:3 到 3:1 之间。\n最大支持分辨率为 3840x2160。\nGIF 输出时表示**单帧**尺寸：帧数 × 单帧像素 × `n` 须在请求总像素预算内，超出会返回 `invalid_value`（param 为 `size`）。\n预算没有公开的具体数值，GIF 建议使用 `auto`，由接口在限额内自动选择单帧尺寸（例如 1024x1024 × 4 帧已超出预算，`auto` 下 4 帧实测选择 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"
        ]
      },
      "GptImage26FlareQuality": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high",
          "xhigh",
          "max"
        ],
        "description": "图像质量。\n- `low`: 低质量\n- `medium`: 中等质量\n- `high`: 高质量（可能需要更长时间）\n- `xhigh`: 超高质量\n- `max`: 最高质量\nSVG 输出时，`quality` 控制的是参考图的质量（接口先渲染参考图，再据此编写 SVG）。\n"
      },
      "GptImage26FlareComplexity": {
        "type": "string",
        "enum": [
          "low",
          "medium",
          "high"
        ],
        "default": "high",
        "description": "生成前规划画面所花的计算量，与渲染质量 `quality` 相互独立。\n- `low`: 画面简洁，生成更快\n- `medium`: 适中\n- `high`: 画面元素更多、构图更复杂（默认值）\ncomplexity 越高耗时越长，也更可能引入不需要的改动。调整 complexity 不单独收费。\n"
      },
      "GptImage26FlareBackground": {
        "type": "string",
        "enum": [
          "transparent",
          "opaque",
          "auto"
        ],
        "default": "auto",
        "description": "生成图像的背景设置。\n- `transparent`: 透明背景（需设置 output_format 为 png 或 webp）\n- `opaque`: 不透明背景\n- `auto`: 自动决定最佳背景（默认值）\n"
      },
      "GptImage26FlareModeration": {
        "type": "string",
        "enum": [
          "low",
          "auto"
        ],
        "default": "auto",
        "description": "内容审核级别。\n- `low`: 较少限制的过滤\n- `auto`: 默认审核级别\n"
      },
      "GptImage26FlareOutputFormat": {
        "type": "string",
        "enum": [
          "png",
          "jpeg",
          "webp",
          "gif",
          "svg"
        ],
        "default": "png",
        "description": "输出图像格式。\n- `png` / `jpeg` / `webp`: 位图\n- `gif`: 动图，配合 `frame_count`、`frame_duration_ms` 使用；不支持流式、partial_images 和自定义 `output_compression`\n- `svg`: 矢量图（UTF-8 XML，静态矢量内容，不含脚本、外部资源和内嵌位图）；必须传 `svg.model`，`n` 只能为 1，不支持流式、partial_images 和 `output_compression`\n"
      },
      "GptImage26FlareEditOutputFormat": {
        "type": "string",
        "enum": [
          "png",
          "jpeg",
          "webp",
          "gif"
        ],
        "default": "png",
        "description": "输出图像格式。编辑接口不支持 `svg`。\n`gif` 输出不支持 mask、流式、partial_images 和自定义 `output_compression`。\n"
      },
      "GptImage26FlareOutputCompression": {
        "type": "integer",
        "minimum": 0,
        "maximum": 100,
        "default": 100,
        "description": "图像压缩强度（0-100%）。仅支持 jpeg / webp 格式，SVG 和 GIF 输出不支持。`0` 禁用压缩，`100` 应用最大压缩。\n"
      },
      "GptImage26FlareSvgOptions": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model"
        ],
        "description": "SVG 输出配置，仅在 `output_format` 为 `svg` 时使用。\n接口先由 `model`（gpt-image-2.6-flare）渲染参考图，再由 `svg.model` 指定的文本模型据此编写 SVG。\n",
        "properties": {
          "model": {
            "type": "string",
            "description": "编写 SVG 的文本模型，`output_format` 为 `svg` 时必填。\n必须是 ModelVerse 已上架、且当前 API Key 有权调用的 GPT 文本模型（如 `gpt-6.1-sol`），不能是图像模型。\nSVG 编写用量按该模型的价格单独计费。\n",
            "examples": [
              "gpt-6.1-sol"
            ]
          },
          "reasoning": {
            "type": "object",
            "additionalProperties": false,
            "description": "编写 SVG 时的推理设置，与 `complexity` 相互独立。",
            "properties": {
              "effort": {
                "type": "string",
                "enum": [
                  "none",
                  "minimal",
                  "low",
                  "medium",
                  "high",
                  "xhigh",
                  "max"
                ],
                "description": "编写 SVG 时的推理强度，不传则使用 `svg.model` 的默认值。"
              }
            }
          }
        }
      },
      "GptImage26FlareFrameCount": {
        "type": "integer",
        "minimum": 2,
        "maximum": 16,
        "default": 9,
        "description": "GIF 帧数，仅在 `output_format` 为 `gif` 时使用。帧数越多越容易超出请求总像素预算。\n"
      },
      "GptImage26FlareFrameDurationMs": {
        "type": "integer",
        "minimum": 20,
        "maximum": 2000,
        "default": 200,
        "description": "GIF 每帧时长（毫秒），四舍五入到 10ms，仅在 `output_format` 为 `gif` 时使用。\n"
      },
      "GptImage26FlareGenerationRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "prompt"
        ],
        "properties": {
          "model": {
            "$ref": "#/components/schemas/GptImage26FlareModel"
          },
          "prompt": {
            "$ref": "#/components/schemas/GptImage26FlarePrompt"
          },
          "n": {
            "$ref": "#/components/schemas/GptImage26FlareImageCount"
          },
          "size": {
            "$ref": "#/components/schemas/GptImage26FlareSize"
          },
          "quality": {
            "$ref": "#/components/schemas/GptImage26FlareQuality"
          },
          "complexity": {
            "$ref": "#/components/schemas/GptImage26FlareComplexity"
          },
          "background": {
            "$ref": "#/components/schemas/GptImage26FlareBackground"
          },
          "moderation": {
            "$ref": "#/components/schemas/GptImage26FlareModeration"
          },
          "output_format": {
            "$ref": "#/components/schemas/GptImage26FlareOutputFormat"
          },
          "output_compression": {
            "$ref": "#/components/schemas/GptImage26FlareOutputCompression"
          },
          "svg": {
            "$ref": "#/components/schemas/GptImage26FlareSvgOptions"
          },
          "frame_count": {
            "$ref": "#/components/schemas/GptImage26FlareFrameCount"
          },
          "frame_duration_ms": {
            "$ref": "#/components/schemas/GptImage26FlareFrameDurationMs"
          }
        }
      },
      "GptImage26FlareEditRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "prompt"
        ],
        "anyOf": [
          {
            "required": [
              "image"
            ]
          },
          {
            "required": [
              "image[]"
            ]
          }
        ],
        "properties": {
          "image": {
            "type": "string",
            "format": "binary",
            "description": "要编辑的图像文件。使用 markup 时，标注作用于这张图。"
          },
          "image[]": {
            "type": "array",
            "minItems": 1,
            "items": {
              "type": "string",
              "format": "binary"
            },
            "description": "多图合成时可重复传入的 multipart `image` 字段。使用 markup 时，第一张为被编辑图，其余为参考图。"
          },
          "mask": {
            "type": "string",
            "format": "binary",
            "description": "可选的 mask 文件，用于限制单图局部编辑区域。不能与 `markup` 同时使用。"
          },
          "markup": {
            "type": "string",
            "format": "binary",
            "description": "可选的标注图，用画笔、圈选、文字等标注引导编辑。\n- 必须是透明背景 PNG，宽高与第一张输入图完全一致，不要把标注直接画在原图上合成一张。\n- 第一张输入图和标注图各自最多 16,777,216 像素，标注图文件不超过 50 MB。\n- 不能与 `mask` 同时使用。\n"
          },
          "model": {
            "$ref": "#/components/schemas/GptImage26FlareModel"
          },
          "prompt": {
            "$ref": "#/components/schemas/GptImage26FlarePrompt"
          },
          "n": {
            "$ref": "#/components/schemas/GptImage26FlareImageCount"
          },
          "size": {
            "$ref": "#/components/schemas/GptImage26FlareSize"
          },
          "quality": {
            "$ref": "#/components/schemas/GptImage26FlareQuality"
          },
          "complexity": {
            "$ref": "#/components/schemas/GptImage26FlareComplexity"
          },
          "background": {
            "$ref": "#/components/schemas/GptImage26FlareBackground"
          },
          "moderation": {
            "$ref": "#/components/schemas/GptImage26FlareModeration"
          },
          "output_format": {
            "$ref": "#/components/schemas/GptImage26FlareEditOutputFormat"
          },
          "output_compression": {
            "$ref": "#/components/schemas/GptImage26FlareOutputCompression"
          },
          "frame_count": {
            "$ref": "#/components/schemas/GptImage26FlareFrameCount"
          },
          "frame_duration_ms": {
            "$ref": "#/components/schemas/GptImage26FlareFrameDurationMs"
          }
        }
      },
      "GptImage26FlareImagesResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "created",
          "data"
        ],
        "properties": {
          "created": {
            "type": "integer",
            "format": "int64",
            "description": "请求创建时的 Unix 时间戳（秒）。"
          },
          "data": {
            "type": "array",
            "minItems": 1,
            "description": "生成的图像数据。gpt-image-2.6-flare 的响应返回 base64 数据；SVG 解码后为 UTF-8 XML，GIF 解码后为 .gif 文件。",
            "items": {
              "$ref": "#/components/schemas/GptImage26FlareImageData"
            }
          },
          "background": {
            "type": "string",
            "enum": [
              "transparent",
              "opaque"
            ],
            "description": "生成图像的背景类型。"
          },
          "output_format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg",
              "webp",
              "gif",
              "svg"
            ],
            "description": "输出图像格式。"
          },
          "quality": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high",
              "xhigh",
              "max"
            ],
            "description": "图像质量。"
          },
          "size": {
            "type": "string",
            "description": "图像尺寸（GIF 为单帧尺寸）。"
          },
          "usage": {
            "$ref": "#/components/schemas/GptImage26FlareUsage"
          },
          "svg_usage": {
            "$ref": "#/components/schemas/GptImage26FlareSvgUsage"
          }
        }
      },
      "GptImage26FlareImageData": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "b64_json"
        ],
        "properties": {
          "b64_json": {
            "type": "string",
            "description": "Base64 编码图像数据，可带 data URL 前缀。"
          },
          "generation_id": {
            "type": "string",
            "description": "本次生成的 ID，部分输出（如 GIF）会返回。"
          }
        }
      },
      "GptImage26FlareUsage": {
        "type": "object",
        "additionalProperties": true,
        "description": "图像渲染用量（SVG 输出时为参考图的用量），按 gpt-image-2.6-flare 的价格计费。",
        "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"
              }
            }
          }
        }
      },
      "GptImage26FlareSvgUsage": {
        "type": "object",
        "additionalProperties": true,
        "description": "SVG 编写用量，仅 SVG 输出时返回，与 `usage` 分开统计，按 `svg.model` 对应模型的价格单独计费。\n`output_tokens` 已包含 `reasoning_tokens`。\n",
        "properties": {
          "model": {
            "type": "string",
            "description": "实际编写 SVG 的模型。"
          },
          "input_tokens": {
            "type": "integer"
          },
          "output_tokens": {
            "type": "integer"
          },
          "reasoning_tokens": {
            "type": "integer"
          },
          "total_tokens": {
            "type": "integer"
          }
        }
      },
      "GptImage26FlareErrorResponse": {
        "type": "object",
        "additionalProperties": true,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/GptImage26FlareError"
          }
        }
      },
      "GptImage26FlareError": {
        "type": "object",
        "additionalProperties": true,
        "properties": {
          "message": {
            "type": "string",
            "description": "错误信息。"
          },
          "type": {
            "type": "string",
            "description": "错误类型。"
          },
          "param": {
            "type": "string",
            "description": "请求 ID 或相关参数。"
          },
          "code": {
            "type": "string",
            "description": "错误码。"
          }
        }
      }
    },
    "examples": {
      "GptImage26FlareError": {
        "summary": "文档中的错误响应",
        "value": {
          "error": {
            "message": "error_message",
            "type": "error_type",
            "param": "request_id",
            "code": "error_code"
          }
        }
      },
      "GptImage26FlareSvgModelMissingError": {
        "summary": "SVG 输出缺少 svg.model",
        "value": {
          "error": {
            "message": "SVG generation requires 'svg.model'.",
            "type": "invalid_request_error",
            "param": "svg.model",
            "code": "missing_required_parameter"
          }
        }
      },
      "GptImage26FlareGifPixelBudgetError": {
        "summary": "GIF 帧数 × 单帧尺寸超出请求总像素预算",
        "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"
          }
        }
      }
    }
  }
}
```
