# Doubao Seedream 图像生成

> 图像生成

根据提示词生成图片，或使用参考图编辑图片，返回图片 URL 或 Base64 数据。
Seedream 5.5 支持普通单图生成、最多 10 张参考图、原生 RGBA 透明图和图层拆分；不支持 `stream`、`tools`、`sequential_image_generation` 及其选项。
其他模型的流式和组图能力见各参数说明。

## 请求地址

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

## 请求体

## 响应

- **200** — 图片生成响应。非流式请求返回 JSON，流式请求返回 SSE。
- **400** — 请求参数无效或图像生成失败。
- **default** — 错误响应。

## OpenAPI 定义

```json
{
  "openapi": "3.1.0",
  "x-language": "zh-CN",
  "info": {
    "title": "doubao-seedream接口文档",
    "version": "1.0.0",
    "description": "这是 ModelVerse 上 `doubao-seedream` 的图片接口文档，说明如何发起图片生成或编辑请求、填写参数、读取结果以及处理错误。\n接口路径包括 `POST /v1/images/generations`，支持 Seedream 4.5、5.0 Lite、5.0 Pro 和 5.5。\n参考图通过复数 `images` 数组传入。\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": "doubao-seedream",
      "description": "使用 doubao-seedream 生成图片或根据参考图生成图片。"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "paths": {
    "/v1/images/generations": {
      "post": {
        "tags": [
          "doubao-seedream"
        ],
        "operationId": "createDoubaoSeedreamImageGeneration",
        "summary": "Doubao Seedream 图像生成",
        "description": "根据提示词生成图片，或使用参考图编辑图片，返回图片 URL 或 Base64 数据。\nSeedream 5.5 支持普通单图生成、最多 10 张参考图、原生 RGBA 透明图和图层拆分；不支持 `stream`、`tools`、`sequential_image_generation` 及其选项。\n其他模型的流式和组图能力见各参数说明。\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DoubaoSeedreamGenerationRequest"
              },
              "examples": {
                "seedream55TextToImage": {
                  "summary": "Seedream 5.5 文生图",
                  "value": {
                    "model": "doubao-seedream-5-5-261028",
                    "prompt": "一座漂浮在云端的花园，电影级光影",
                    "size": "2K",
                    "output_format": "png",
                    "background": "auto"
                  }
                },
                "seedream55Transparent": {
                  "summary": "Seedream 5.5 透明图",
                  "value": {
                    "model": "doubao-seedream-5-5-261028",
                    "prompt": "一只可爱的机器人，透明背景，正面全身",
                    "size": "1K",
                    "output_format": "png",
                    "background": "transparent"
                  }
                },
                "seedream55MultiReference": {
                  "summary": "Seedream 5.5 多参考图",
                  "value": {
                    "model": "doubao-seedream-5-5-261028",
                    "prompt": "将参考图中的角色放在同一张电影海报中",
                    "images": [
                      "https://example.com/character.png",
                      "https://example.com/background.jpg"
                    ],
                    "size": "2K"
                  }
                },
                "seedream55LayerDecomposition": {
                  "summary": "Seedream 5.5 图层拆分",
                  "value": {
                    "model": "doubao-seedream-5-5-261028",
                    "images": [
                      "https://example.com/source.png"
                    ],
                    "layer_decomposition": true,
                    "layer_decomposition_options": {
                      "max_images": 30
                    },
                    "size": "auto"
                  }
                },
                "referenceImageToSketch": {
                  "summary": "根据参考图生成图像",
                  "value": {
                    "model": "doubao-seedream-4.5",
                    "prompt": "将图片转换为铅笔素描",
                    "images": [
                      "https://umodelverse-inference.cn-wlcb.ufileos.com/ucloud-maxcot.jpg"
                    ],
                    "size": "2k",
                    "watermark": false,
                    "stream": false,
                    "response_format": "url"
                  }
                },
                "webSearchWeatherPoster": {
                  "summary": "使用 Seedream 5.0 Lite 联网搜索生成天气海报",
                  "value": {
                    "model": "doubao-seedream-5-0-260128",
                    "prompt": "制作一张上海未来5日的天气预报图，采用现代扁平化插画风格，清晰展示每日天气、温度和穿搭建议。",
                    "size": "2k",
                    "tools": [
                      {
                        "type": "web_search"
                      }
                    ],
                    "output_format": "jpeg",
                    "response_format": "url",
                    "watermark": false
                  }
                },
                "streamedBase64Group": {
                  "summary": "流式生成组图并返回 Base64 JSON",
                  "value": {
                    "model": "doubao-seedream-4.5",
                    "prompt": "生成一组现代城市公共空间导视图标",
                    "size": "2048x2048",
                    "sequential_image_generation": "auto",
                    "sequential_image_generation_options": {
                      "max_images": 3
                    },
                    "stream": true,
                    "response_format": "b64_json",
                    "watermark": true
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "图片生成响应。非流式请求返回 JSON，流式请求返回 SSE。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoubaoSeedreamGenerationResponse"
                },
                "examples": {
                  "urlImage": {
                    "summary": "返回 URL 的生成图像",
                    "value": {
                      "model": "doubao-seedream-4-5-251128",
                      "created": 1767939740,
                      "data": [
                        {
                          "url": "https://xxxxxx",
                          "size": "2048x2048"
                        }
                      ],
                      "usage": {
                        "generated_images": 1,
                        "output_tokens": 16384,
                        "total_tokens": 16384
                      }
                    }
                  },
                  "layerDecomposition": {
                    "summary": "图层拆分响应（1 张底图和 1 个图层）",
                    "value": {
                      "model": "doubao-seedream-5-5-261028",
                      "created": 1767939740,
                      "data": [
                        {
                          "url": "https://example.com/base.png",
                          "size": "2048x2048",
                          "output_format": "png",
                          "background": "opaque",
                          "z_index": 0,
                          "name": "background",
                          "description": "完整底图"
                        },
                        {
                          "url": "https://example.com/layer.png",
                          "size": "2048x2048",
                          "output_format": "png",
                          "background": "transparent",
                          "z_index": 1,
                          "name": "foreground",
                          "description": "前景主体",
                          "bounding_box": {
                            "absolute": [
                              512,
                              512,
                              1536,
                              1536
                            ],
                            "normalized": [
                              250,
                              250,
                              750,
                              750
                            ]
                          }
                        }
                      ],
                      "usage": {
                        "input_images": 1,
                        "generated_images": 2
                      }
                    }
                  },
                  "base64Image": {
                    "summary": "返回 Base64 JSON 的生成图像",
                    "value": {
                      "model": "doubao-seedream-4-5-251128",
                      "created": 1767939740,
                      "data": [
                        {
                          "b64_json": "{image_base64_string}",
                          "size": "2048x2048"
                        }
                      ],
                      "usage": {
                        "generated_images": 1,
                        "output_tokens": 16384,
                        "total_tokens": 16384
                      }
                    }
                  }
                }
              },
              "text/event-stream": {
                "schema": {
                  "$ref": "#/components/schemas/DoubaoSeedreamStreamEvent"
                },
                "examples": {
                  "streamedImage": {
                    "summary": "流式图像生成事件",
                    "value": "event: image_generation.partial_succeeded\ndata: {\"type\":\"image_generation.partial_succeeded\",\"model\":\"doubao-seedream-4-5-251128\",\"created\":1767939740,\"image_index\":0,\"url\":\"https://xxxxxx\",\"size\":\"2048x2048\"}\n\nevent: image_generation.completed\ndata: {\"type\":\"image_generation.completed\",\"model\":\"doubao-seedream-4-5-251128\",\"created\":1767939740,\"usage\":{\"generated_images\":1,\"output_tokens\":16384,\"total_tokens\":16384}}\n"
                  }
                }
              }
            }
          },
          "400": {
            "description": "请求参数无效或图像生成失败。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoubaoSeedreamErrorResponse"
                },
                "examples": {
                  "requestError": {
                    "summary": "请求级错误",
                    "value": {
                      "error": {
                        "code": "error_code",
                        "message": "error_message"
                      }
                    }
                  }
                }
              }
            }
          },
          "default": {
            "description": "错误响应。",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DoubaoSeedreamErrorResponse"
                },
                "examples": {
                  "requestError": {
                    "summary": "请求级错误",
                    "value": {
                      "error": {
                        "code": "error_code",
                        "message": "error_message"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key",
        "description": "使用 ModelVerse API key，通过 `Authorization: Bearer <API_KEY>` 请求头认证。\n"
      }
    },
    "schemas": {
      "DoubaoSeedreamGenerationRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model"
        ],
        "anyOf": [
          {
            "required": [
              "prompt"
            ]
          },
          {
            "required": [
              "layer_decomposition",
              "images"
            ],
            "properties": {
              "layer_decomposition": {
                "const": true
              },
              "images": {
                "type": "array",
                "minItems": 1,
                "maxItems": 1
              }
            }
          }
        ],
        "properties": {
          "model": {
            "$ref": "#/components/schemas/DoubaoSeedreamModel"
          },
          "prompt": {
            "$ref": "#/components/schemas/DoubaoSeedreamPrompt"
          },
          "images": {
            "type": "array",
            "description": "参考图片输入。每个项目可以是可访问的 URL 或 Base64 数据 URL，例如 `data:image/png;base64,<base64_image>`。\n- `doubao-seedream-4.5` 和 `doubao-seedream-5-0-260128`: 最多支持 14 张参考图\n- Seedream 5.0 Pro (`doubao-seedream-5-0-pro-260628`) 和 5.5 (`doubao-seedream-5-5-261028`): 最多支持 10 张参考图\n普通生成时每张参考图不超过 30MB，宽和高均大于 14 像素，总像素 196..36000000，宽高比 1/16..16；支持 jpeg/png/webp/bmp/tiff/gif/heic/heif。\n拆层时必须传入且仅传入 1 张 png/jpeg 图片，不超过 30MB，总像素 262144..36000000，宽高比 1/16..16。\n",
            "items": {
              "type": "string"
            }
          },
          "size": {
            "$ref": "#/components/schemas/DoubaoSeedreamSize"
          },
          "sequential_image_generation": {
            "$ref": "#/components/schemas/DoubaoSeedreamSequentialImageGeneration"
          },
          "sequential_image_generation_options": {
            "$ref": "#/components/schemas/DoubaoSeedreamSequentialImageGenerationOptions"
          },
          "stream": {
            "type": "boolean",
            "default": false,
            "description": "是否启用流式输出。`false` 在生成完成后返回所有图片结果；`true` 在每个图片结果可用时返回 SSE 事件。\n注意：Seedream 5.0 Pro (`doubao-seedream-5-0-pro-260628`) 和 5.5 (`doubao-seedream-5-5-261028`) 不支持此参数。\n"
          },
          "response_format": {
            "type": "string",
            "enum": [
              "url",
              "b64_json"
            ],
            "default": "url",
            "description": "图片返回格式。URL 链接在生成后 24 小时内有效；`b64_json` 返回 Base64 编码的图片数据。\n"
          },
          "watermark": {
            "type": "boolean",
            "default": true,
            "description": "是否在图片右下角添加文档所述的“AI 生成”水印。"
          },
          "optimize_prompt_options": {
            "type": "object",
            "additionalProperties": true,
            "description": "以对象形式传入提示词优化选项。"
          },
          "tools": {
            "type": "array",
            "description": "工具配置。仅 `doubao-seedream-5-0-260128` 支持此参数。\n注意：Seedream 5.0 Pro (`doubao-seedream-5-0-pro-260628`) 和 5.5 (`doubao-seedream-5-5-261028`) 不支持此参数。\n",
            "items": {
              "$ref": "#/components/schemas/DoubaoSeedreamTool"
            }
          },
          "output_format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg"
            ],
            "description": "5.x 模型支持 png/jpeg；5.5 默认 png，5.0 默认 jpeg。透明输出必须使用 png。\n拆层时仅控制底图格式，图层始终为带透明通道的 png。\n"
          },
          "background": {
            "type": "string",
            "enum": [
              "auto",
              "transparent",
              "opaque"
            ],
            "description": "背景透明度。5.5 默认 auto，由模型根据提示词决定是否透明；transparent 强制透明，opaque 强制不透明。\n5.0 Pro 默认 opaque；transparent 仅支持输入单张带 alpha 通道的参考图，不支持纯文生透明图。\n透明输出须将 output_format 设为 png。拆层时不得传入 background。\n"
          },
          "layer_decomposition": {
            "type": "boolean",
            "default": false,
            "description": "开启图层拆分，将单张输入拆成底图和独立的透明 PNG 图层。5.5 最多 1 张底图 + 99 个图层；5.0 Pro 最多 1 张底图 + 16 个图层。\n任一图层生成失败则整体请求失败，不支持部分成功。必须通过 images 传入单张 png/jpeg 图片，大小不超过 30MB，总像素 262144..36000000，宽高比 1/16..16。\n拆层时 prompt 可省略，不得传 background；size 仅支持 1K/1.5K/2K/auto，默认 auto，保持输入宽高比。\n"
          },
          "layer_decomposition_options": {
            "type": "object",
            "additionalProperties": false,
            "description": "仅 Seedream 5.5 在 layer_decomposition 为 true 时支持；ModelVerse 当前仅接入 max_images，不支持官方富文本 OCR 开关。",
            "properties": {
              "max_images": {
                "type": "integer",
                "minimum": 2,
                "maximum": 100,
                "default": 30,
                "description": "最大输出图片总数，包含底图和图层。"
              }
            }
          }
        }
      },
      "DoubaoSeedreamModel": {
        "type": "string",
        "enum": [
          "doubao-seedream-4.5",
          "doubao-seedream-5-0-260128",
          "doubao-seedream-5-0-pro-260628",
          "doubao-seedream-5-5-261028"
        ],
        "description": "模型名称。\n- `doubao-seedream-4.5`: 支持组图生成、流式输出\n- `doubao-seedream-5-0-260128`: 支持组图生成、联网搜索、流式输出\n- `doubao-seedream-5-0-pro-260628`: 支持普通单图生成、最多 10 张参考图及拆层（1 张底图 + 最多 16 层）；不支持组图、联网搜索、流式输出\n- `doubao-seedream-5-5-261028`: 支持文生单图、单/多参考图生成单图（最多 10 张参考图）、原生 RGBA 透明图及拆层（1 张底图 + 最多 99 层）；不支持 stream、tools、sequential_image_generation 及其选项\n"
      },
      "DoubaoSeedreamPrompt": {
        "type": "string",
        "minLength": 1,
        "description": "图片生成时必填；图层拆分时可省略，用于指定拆分要求。建议中文不超过 300 字、英文不超过 600 词。\n"
      },
      "DoubaoSeedreamSize": {
        "type": "string",
        "description": "按模型和模式选择尺寸，显式尺寸使用 `<宽>x<高>`，宽高比均为 1/16..16。\n- 5.5 和 5.0 Pro 普通生成：1K/1.5K/2K，默认 2K；显式尺寸总像素 921600..4624220。\n- 5.5 和 5.0 Pro 拆层：仅支持 1K/1.5K/2K/auto，默认 auto，按输入尺寸选择输出并保持输入宽高比，不支持显式宽高。\n- 4.5：2K/4K，默认 2048x2048；显式尺寸总像素 3686400..16777216。\n- 5.0 Lite (`doubao-seedream-5-0-260128`)：2K/3K/4K，默认 2048x2048；显式尺寸总像素 3686400..16777216。\n",
        "x-min-aspect-ratio": "1:16",
        "x-max-aspect-ratio": "16:1",
        "oneOf": [
          {
            "pattern": "^(1([.]5)?|[234])[Kk]$"
          },
          {
            "const": "auto"
          },
          {
            "pattern": "^[1-9][0-9]*x[1-9][0-9]*$"
          }
        ],
        "examples": [
          "2K",
          "4K",
          "2048x2048",
          "2304x1728",
          "1728x2304",
          "2560x1440",
          "1440x2560",
          "2496x1664",
          "1664x2496",
          "3024x1296"
        ]
      },
      "DoubaoSeedreamSequentialImageGeneration": {
        "type": "string",
        "enum": [
          "auto",
          "disabled"
        ],
        "default": "disabled",
        "description": "组图生成模式。`auto` 让模型决定是否返回组图以及包含多少张图片；`disabled` 生成单张图片。\n注意：Seedream 5.0 Pro (`doubao-seedream-5-0-pro-260628`) 和 5.5 (`doubao-seedream-5-5-261028`) 不支持此参数，只能生成单张图片。\n"
      },
      "DoubaoSeedreamSequentialImageGenerationOptions": {
        "type": "object",
        "additionalProperties": false,
        "description": "组图生成选项。仅在 `sequential_image_generation` 为 `auto` 时使用。\n注意：Seedream 5.0 Pro (`doubao-seedream-5-0-pro-260628`) 和 5.5 (`doubao-seedream-5-5-261028`) 不支持此参数。\n",
        "properties": {
          "max_images": {
            "type": "integer",
            "minimum": 1,
            "maximum": 15,
            "description": "本次请求最多生成的图片数量。"
          }
        }
      },
      "DoubaoSeedreamTool": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "const": "web_search",
            "default": "web_search",
            "description": "联网搜索工具。启用后，模型会根据提示词决定是否进行联网搜索。\n"
          }
        }
      },
      "DoubaoSeedreamGenerationResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "model",
          "created",
          "data"
        ],
        "properties": {
          "model": {
            "type": "string",
            "description": "此请求使用的模型 ID。"
          },
          "created": {
            "type": "integer",
            "format": "int64",
            "description": "请求创建时间的 Unix 秒级时间戳。"
          },
          "data": {
            "type": "array",
            "description": "输出图片条目。条目可以包含图片数据或单张图片的错误信息。",
            "items": {
              "$ref": "#/components/schemas/DoubaoSeedreamImageData"
            }
          },
          "usage": {
            "$ref": "#/components/schemas/DoubaoSeedreamUsage"
          },
          "error": {
            "$ref": "#/components/schemas/DoubaoSeedreamError"
          }
        }
      },
      "DoubaoSeedreamImageData": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "url": {
            "type": "string",
            "format": "uri",
            "description": "当 `response_format` 为 `url` 时返回的图片下载 URL，生成后 24 小时内有效。"
          },
          "b64_json": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "当 `response_format` 为 `b64_json` 时返回的 Base64 图片数据。"
          },
          "size": {
            "type": "string",
            "pattern": "^[1-9][0-9]*x[1-9][0-9]*$",
            "description": "以 `<宽>x<高>` 像素表示的图片尺寸。"
          },
          "output_format": {
            "type": "string",
            "enum": [
              "png",
              "jpeg"
            ],
            "description": "输出图片格式；拆层图层始终为 png。"
          },
          "background": {
            "type": "string",
            "enum": [
              "transparent",
              "opaque"
            ],
            "description": "实际输出背景类型，不返回 auto。"
          },
          "z_index": {
            "type": "integer",
            "minimum": 0,
            "description": "拆层叠放顺序；底图为 0，图层从 1 开始，按数值从小到大叠放。"
          },
          "name": {
            "type": "string",
            "description": "底图或图层名称。"
          },
          "description": {
            "type": "string",
            "description": "底图或图层的内容描述。"
          },
          "bounding_box": {
            "type": "object",
            "additionalProperties": false,
            "description": "图层在输出底图坐标系中的边界框；底图不返回此字段。使用 absolute 定位，缩放到 right-left、bottom-top 后按 z_index 叠放。",
            "properties": {
              "absolute": {
                "type": "array",
                "minItems": 4,
                "maxItems": 4,
                "items": {
                  "type": "integer"
                },
                "description": "输出底图像素坐标，四整数 [left, top, right, bottom]，原点为底图左上角。"
              },
              "normalized": {
                "type": "array",
                "minItems": 4,
                "maxItems": 4,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 1000
                },
                "description": "按输出底图宽高归一化至 0..1000 的四整数 [left, top, right, bottom]。"
              }
            }
          },
          "error": {
            "$ref": "#/components/schemas/DoubaoSeedreamError"
          }
        }
      },
      "DoubaoSeedreamUsage": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "input_images": {
            "type": "integer",
            "description": "输入图片数量；拆层请求为 1。"
          },
          "generated_images": {
            "type": "integer",
            "description": "成功生成的图片数量，不含失败图片；拆层时包含底图和所有图层。"
          },
          "output_tokens": {
            "type": "integer",
            "description": "用于生成图片的 Token 数量。根据官方文档，该值为\n`sum(image_width * image_height) / 256` 的四舍五入结果。\n"
          },
          "total_tokens": {
            "type": "integer",
            "description": "请求消耗的 Token 总数；当前与 `output_tokens` 相同。"
          }
        }
      },
      "DoubaoSeedreamErrorResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/DoubaoSeedreamError"
          }
        }
      },
      "DoubaoSeedreamError": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "code",
          "message"
        ],
        "properties": {
          "code": {
            "type": "string",
            "description": "错误码。"
          },
          "message": {
            "type": "string",
            "description": "错误信息。"
          }
        }
      },
      "DoubaoSeedreamStreamEvent": {
        "description": "流式事件数据。每个 SSE `data` 数据段的类型为\n`image_generation.partial_succeeded`、`image_generation.partial_failed` 或\n`image_generation.completed`。\n",
        "oneOf": [
          {
            "$ref": "#/components/schemas/DoubaoSeedreamPartialSucceededEvent"
          },
          {
            "$ref": "#/components/schemas/DoubaoSeedreamPartialFailedEvent"
          },
          {
            "$ref": "#/components/schemas/DoubaoSeedreamCompletedEvent"
          }
        ],
        "discriminator": {
          "propertyName": "type"
        }
      },
      "DoubaoSeedreamPartialSucceededEvent": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "model",
          "created",
          "image_index"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "image_generation.partial_succeeded"
          },
          "model": {
            "type": "string",
            "description": "此请求使用的模型 ID。"
          },
          "created": {
            "type": "integer",
            "format": "int64",
            "description": "请求创建时间的 Unix 秒级时间戳。"
          },
          "image_index": {
            "type": "integer",
            "minimum": 0,
            "description": "此请求中从 0 开始计数的图片索引。"
          },
          "url": {
            "type": "string",
            "format": "uri",
            "description": "当 `response_format` 为 `url` 时返回的图片下载 URL。"
          },
          "b64_json": {
            "type": "string",
            "contentEncoding": "base64",
            "description": "当 `response_format` 为 `b64_json` 时返回的 Base64 图片数据。"
          },
          "size": {
            "type": "string",
            "pattern": "^[1-9][0-9]*x[1-9][0-9]*$",
            "description": "以 `<宽>x<高>` 像素表示的图片尺寸。"
          }
        }
      },
      "DoubaoSeedreamPartialFailedEvent": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "model",
          "created",
          "image_index",
          "error"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "image_generation.partial_failed"
          },
          "model": {
            "type": "string",
            "description": "此请求使用的模型 ID。"
          },
          "created": {
            "type": "integer",
            "format": "int64",
            "description": "请求创建时间的 Unix 秒级时间戳。"
          },
          "image_index": {
            "type": "integer",
            "minimum": 0,
            "description": "此请求中从 0 开始计数的图片索引。"
          },
          "error": {
            "$ref": "#/components/schemas/DoubaoSeedreamError"
          }
        }
      },
      "DoubaoSeedreamCompletedEvent": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "type",
          "model",
          "created",
          "usage"
        ],
        "properties": {
          "type": {
            "type": "string",
            "const": "image_generation.completed"
          },
          "model": {
            "type": "string",
            "description": "此请求使用的模型 ID。"
          },
          "created": {
            "type": "integer",
            "format": "int64",
            "description": "请求创建时间的 Unix 秒级时间戳。"
          },
          "usage": {
            "$ref": "#/components/schemas/DoubaoSeedreamUsage"
          }
        }
      }
    }
  }
}
```
