> ## 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

> Generate or edit one image using the doubao-seedream-5-0-pro model. This model supports text-to-image, single-image editing, and up to 10 reference images. Grouped image generation, web search, and streaming output are not supported.



## OpenAPI

````yaml 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: >-
    ByteDance Seedream 5.0 Pro — high-precision image generation and editing via
    AnyFast API
  version: 1.0.0
servers:
  - url: https://www.anyfast.ai
security:
  - bearerAuth: []
paths:
  /v1/images/generations:
    post:
      summary: Generate or edit an image
      description: >-
        Generate or edit one image using the doubao-seedream-5-0-pro model. This
        model supports text-to-image, single-image editing, and up to 10
        reference images. Grouped image generation, web search, and streaming
        output are not supported.
      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: Model ID.
                  example: doubao-seedream-5-0-pro
                prompt:
                  type: string
                  description: >-
                    Text prompt for image generation or editing. For coordinate
                    edits, include tags such as <point> or <bbox> in the prompt.
                  example: >-
                    Add a ceramic coffee cup to the marked area and keep the
                    original composition.
                image:
                  anyOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                      maxItems: 10
                  description: >-
                    Reference image URL/Base64 data URI, or an array of
                    reference images. Required for image-to-image editing.
                    Seedream 5.0 Pro supports up to 10 reference images.
                    Official input limits: formats
                    jpeg/png/webp/bmp/tiff/gif/heic/heif; each image up to 30
                    MB; aspect ratio between 1/16 and 16; width and height at
                    least 14px; total pixels up to 36,000,000.
                  example:
                    - https://example.com/source.png
                    - https://example.com/target.png
                size:
                  type: string
                  description: >-
                    Output image size. Use 1K, 2K, or explicit pixels such as
                    2048x1024. Explicit pixel sizes must satisfy the official
                    total-pixel and aspect-ratio limits.
                  examples:
                    tier:
                      value: 2K
                    pixels:
                      value: 2048x1024
                response_format:
                  type: string
                  enum:
                    - url
                    - b64_json
                  default: url
                  description: >-
                    Generated image return format. URL links are temporary and
                    should be saved promptly.
                output_format:
                  type: string
                  enum:
                    - png
                    - jpeg
                  default: jpeg
                  description: Generated image file format.
                watermark:
                  type: boolean
                  default: true
                  description: Whether to add the AI-generated watermark.
                optimize_prompt_options:
                  type: object
                  description: >-
                    Prompt optimization options. Use standard mode. Official
                    documentation says fast mode is not supported for Seedream
                    5.0 Pro.
                  properties:
                    mode:
                      type: string
                      enum:
                        - standard
                      default: standard
                      description: Prompt optimization mode.
              additionalProperties: true
      responses:
        '200':
          description: Image generated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  model:
                    type: string
                  description: >-
                    Model used for generation. The upstream response may return
                    the provider-side model name.
                  example: doubao-seedream-5-0-pro
                  created:
                    type: integer
                    description: Creation timestamp in Unix seconds.
                    example: 1775029815
                  data:
                    type: array
                    description: Generated image list.
                    items:
                      type: object
                      properties:
                        url:
                          type: string
                          description: >-
                            Generated image URL when response_format is url. The
                            URL is temporary.
                          example: >-
                            https://ark-content-generation-v2-cn-beijing.example.com/image.png
                        b64_json:
                          type: string
                          description: Base64 image data when response_format is b64_json.
                        output_format:
                          type: string
                          description: >-
                            Generated image format. Returned by Seedream 5.0
                            Pro.
                          example: png
                        size:
                          type: string
                          description: Generated image dimensions.
                          example: 2048x2048
                        error:
                          type: object
                          description: Per-image error information when generation fails.
                          properties:
                            code:
                              type: string
                            message:
                              type: string
                  usage:
                    type: object
                    description: Usage information.
                    properties:
                      generated_images:
                        type: integer
                        description: Number of successfully generated images.
                        example: 1
                      input_images:
                        type: integer
                        description: Number of input images. Returned by Seedream 5.0 Pro.
                        example: 2
                      output_tokens:
                        type: integer
                        description: Output tokens consumed.
                        example: 16384
                      total_tokens:
                        type: integer
                        description: Total tokens consumed.
                        example: 16384
                  error:
                    type: object
                    description: Request-level error information.
                    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

````