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

# Seedream 5.0 Pro

> Text-to-image and reference-image editing.



## OpenAPI

````yaml en/openapi/images/seedream-5-0-pro.yaml POST /v1/images/generate
openapi: 3.1.0
info:
  title: Seedream 5.0 Pro
  version: '1.0'
  description: Text-to-image and reference-image editing.
servers:
  - url: https://openapi.imini.ai/imini/router
security:
  - ApiKeyAuth: []
paths:
  /v1/images/generate:
    post:
      summary: Seedream 5.0 Pro
      description: >
        After submission, [poll the task](/en/api-reference/images/task-query).
        See [pricing](/en/guide/pricing).
      operationId: generateSeedream50Pro
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - prompt
              properties:
                model:
                  type: string
                  const: seedream-5.0-pro
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 6000
                  description: Image generation or edit prompt.
                images:
                  type: array
                  maxItems: 10
                  description: >-
                    Reference images. Omit or pass an empty array for
                    text-to-image.
                  items:
                    type: object
                    required:
                      - url
                    properties:
                      url:
                        type: string
                        description: >-
                          Public image URL or Base64 data URI (up to 20 MiB
                          decoded).
                      reference_type:
                        type: string
                        enum:
                          - asset
                        default: asset
                        description: Reference image role.
                resolution:
                  type: string
                  enum:
                    - 1K
                    - 2K
                  default: 1K
                  description: Output resolution tier.
                aspect_ratio:
                  type: string
                  enum:
                    - '1:1'
                    - '4:3'
                    - '3:4'
                    - '16:9'
                    - '9:16'
                    - '3:2'
                    - '2:3'
                    - '21:9'
                  description: >-
                    Omit to adapt to references when auto aspect ratio is
                    supported.
                num:
                  type: integer
                  minimum: 1
                  maximum: 4
                  default: 1
                  description: Output count.
            examples:
              text:
                summary: Text to image
                value:
                  model: seedream-5.0-pro
                  prompt: A watercolor illustration of a seaside city at sunrise.
                  resolution: 1K
                  aspect_ratio: '1:1'
              edit:
                summary: Reference image edit
                value:
                  model: seedream-5.0-pro
                  prompt: Keep the composition and change the background to pale blue.
                  images:
                    - url: https://example.com/reference.png
                      reference_type: asset
                  resolution: 1K
                  aspect_ratio: '1:1'
      responses:
        '200':
          description: Task accepted.
          content:
            application/json:
              schema:
                type: object
                required:
                  - task_id
                  - model
                  - created_at
                  - request_id
                properties:
                  task_id:
                    type: string
                    description: Task ID to poll.
                  model:
                    type: string
                    description: Echoes the supplied model ID.
                  created_at:
                    type: string
                    format: date-time
                    description: Task creation time (UTC).
                  request_id:
                    type: string
                    description: Request ID.
              example:
                task_id: task_2041350318103396352
                model: seedream-5.0-pro
                created_at: '2026-11-16T07:00:00.000Z'
                request_id: task_2041350318103396352
        '400':
          description: Invalid model or request parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: INVALID_PARAMETER
                  message: Parameter value is out of range or has incorrect type
                  status: 400
                  request_id: req_example
        '402':
          description: Insufficient credits.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: INSUFFICIENT_CREDITS
                  message: >-
                    Insufficient credits. Upgrade your plan or purchase
                    additional credits.
                  status: 402
                  request_id: req_example
        '413':
          description: Request body or Base64 media exceeds a size limit.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
              example:
                error:
                  code: PAYLOAD_TOO_LARGE
                  message: Request payload exceeds the supported size
                  status: 413
                  request_id: req_example
components:
  schemas:
    ApiError:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - status
          properties:
            code:
              type: string
            message:
              type: string
            status:
              type: integer
            request_id:
              type: string
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        `Bearer YOUR_API_KEY`. Manage keys in [API
        Keys](https://imini.ai/api-keys).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.