> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anyfast.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# seedream-5.0-pro

> 使用 doubao-seedream-5-0-pro 生成或编辑单张图片。该模型支持文生图、单图图生图，以及最多 10 张参考图。不支持组图生成、联网搜索和流式输出。



## OpenAPI

````yaml zh/api-reference/model-api/bytedance/openapi/doubao-seedream-5-0-pro/openapi.yaml POST /v1/images/generations
openapi: 3.1.0
info:
  title: Seedream 5.0 Pro
  description: 通过 AnyFast API 调用 ByteDance Seedream 5.0 Pro 进行高精度图片生成与编辑
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/images/generations:
    post:
      summary: Generate or edit an image
      description: >-
        使用 doubao-seedream-5-0-pro 生成或编辑单张图片。该模型支持文生图、单图图生图，以及最多 10
        张参考图。不支持组图生成、联网搜索和流式输出。
      operationId: createSeedream50Pro
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  enum:
                    - doubao-seedream-5-0-pro
                  description: 模型 ID。
                  example: doubao-seedream-5-0-pro
                prompt:
                  type: string
                  description: 图片生成或编辑提示词。如需坐标编辑，可在提示词中加入 <point> 或 <bbox> 标签。
                  example: 在标记区域添加一个带杯碟的陶瓷咖啡杯，并保持原始构图。
                image:
                  anyOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                      maxItems: 10
                  description: >-
                    参考图 URL/Base64 data URI，或参考图数组。图生图编辑时必填。Seedream 5.0 Pro
                    最多支持 10 张参考图。官方输入限制：格式支持
                    jpeg/png/webp/bmp/tiff/gif/heic/heif；单张图片不超过 30 MB；宽高比范围
                    [1/16, 16]；宽和高均至少 14px；总像素不超过 36,000,000。
                  example:
                    - https://example.com/source.png
                    - https://example.com/target.png
                size:
                  type: string
                  description: 输出图片尺寸。可使用 1K、2K，或 2048x1024 这类像素尺寸。显式像素尺寸需要满足官方总像素和宽高比限制。
                  examples:
                    tier:
                      value: 2K
                    pixels:
                      value: 2048x1024
                response_format:
                  type: string
                  enum:
                    - url
                    - b64_json
                  default: url
                  description: 生成图片返回格式。URL 为临时链接，请及时保存。
                output_format:
                  type: string
                  enum:
                    - png
                    - jpeg
                  default: jpeg
                  description: 生成图片文件格式。
                watermark:
                  type: boolean
                  default: true
                  description: 是否添加 AI 生成水印。
                optimize_prompt_options:
                  type: object
                  description: 提示词优化配置。使用标准模式。官方文档说明 Seedream 5.0 Pro 不支持快速模式。
                  properties:
                    mode:
                      type: string
                      enum:
                        - standard
                      default: standard
                      description: 提示词优化模式。
              additionalProperties: true
      responses:
        '200':
          description: Image generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  model:
                    type: string
                    description: 本次请求使用的模型 ID。上游响应可能返回供应商侧模型名称。
                    example: doubao-seedream-5-0-pro
                  created:
                    type: integer
                    description: 请求创建时间，Unix 秒级时间戳。
                    example: 1775029815
                  data:
                    type: array
                    description: 生成图片列表。
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                          description: 当 response_format 为 url 时返回的图片 URL。该链接为临时链接。
                          example: >-
                            https://ark-content-generation-v2-cn-beijing.example.com/image.png
                        b64_json:
                          type: string
                          description: 当 response_format 为 b64_json 时返回的图片 Base64 数据。
                        output_format:
                          type: string
                          description: 生成图片格式。Seedream 5.0 Pro 会返回该字段。
                          example: png
                        size:
                          type: string
                          description: 生成图片尺寸。
                          example: 2048x2048
                        error:
                          type: object
                          description: 单张图片生成失败时的错误信息。
                          properties:
                            code:
                              type: string
                            message:
                              type: string
                  usage:
                    type: object
                    description: 用量信息。
                    properties:
                      generated_images:
                        type: integer
                        description: 成功生成的图片数量。
                        example: 1
                      input_images:
                        type: integer
                        description: 输入模型的图片张数。Seedream 5.0 Pro 返回该字段。
                        example: 2
                      output_tokens:
                        type: integer
                        description: 生成图片消耗的输出 token。
                        example: 16384
                      total_tokens:
                        type: integer
                        description: 总 token 消耗。
                        example: 16384
                  error:
                    type: object
                    description: 请求级错误信息。
                    properties:
                      code:
                        type: string
                      message:
                        type: string
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '429':
          description: Rate limit exceeded
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````