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

# seedream-4.0

> ByteDance's multimodal image creation engine unifying text-to-image generation and editing in one architecture, supporting up to 4K output, 30+ art style switching, and multi-reference batch generation with 10x faster inference.

|   |   |
| --- | --- |
| **Provider** | Bytedance |
| **Tasks** | text-to-image · image-to-image |
| **Starting from** | 0.0232 USD / images · <a href="https://linkmodel.ai/en/models/seedream-4.0" target="_blank" rel="noopener">Pricing details</a> |




## OpenAPI

````yaml /openapi/image/seedream-4-0.yaml post /image-generation
openapi: 3.0.3
info:
  title: seedream-4.0
  version: 1.0.0
  description: >-
    ByteDance's multimodal image creation engine unifying text-to-image
    generation and editing in one architecture, supporting up to 4K output, 30+
    art style switching, and multi-reference batch generation with 10x faster
    inference.
servers:
  - url: https://api.linkmodel.ai/api/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Bytedance
  - name: image
paths:
  /image-generation:
    post:
      tags:
        - Bytedance
        - image
      summary: seedream-4.0
      description: >
        ByteDance's multimodal image creation engine unifying text-to-image
        generation and editing in one architecture, supporting up to 4K output,
        30+ art style switching, and multi-reference batch generation with 10x
        faster inference.


        |   |   |

        | --- | --- |

        | **Provider** | Bytedance |

        | **Tasks** | text-to-image · image-to-image |

        | **Starting from** | 0.0232 USD / images · <a
        href="https://linkmodel.ai/en/models/seedream-4.0" target="_blank"
        rel="noopener">Pricing details</a> |
      operationId: seedream-4-0
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - seedream-4.0
                  description: 'Must be one of: seedream-4.0.'
                prompt:
                  type: string
                  minLength: 1
                  description: Length must be at least 1.
                images:
                  type: array
                  maxItems: 10
                  items:
                    type: string
                    format: url
                  description: Maximum 10 items.
                size:
                  type: string
                  enum:
                    - 16x9
                    - 1x1
                    - 21x9
                    - 2x3
                    - 3x2
                    - 3x4
                    - 4x3
                    - 9x16
                  description: 'Must be one of: 16x9, 1x1, 21x9, 2x3, 3x2, 3x4, 4x3, 9x16.'
                quality:
                  type: string
                  enum:
                    - 1K
                    - 2K
                    - 4K
                  description: 'Must be one of: 1K, 2K, 4K.'
                max_images:
                  type: integer
                  enum:
                    - 1
                    - 2
                    - 3
                    - 4
                    - 5
                    - 6
                    - 7
                    - 8
                    - 9
                    - 10
                    - 11
                    - 12
                    - 13
                    - 14
                    - 15
                  default: 1
                  description: >-
                    Must be one of: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
                    14, 15. Defaults to `1`.
              required:
                - model
                - prompt
      responses:
        '200':
          description: Task accepted and queued for generation.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 0
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                        format: uuid
                        description: Use this id to poll task status.
                        example: cb6111cf-e89f-4978-b8e3-aa59c21cceff
                      order_id:
                        type: string
                        format: uuid
                        description: Billing order id.
                        example: 019da9cf-d1db-78e1-ac23-526774d01193
                      status:
                        type: string
                        enum:
                          - processing
                          - succeeded
                          - failed
                        example: processing
                      price:
                        type: number
                        description: Charged amount in the model's pricing currency.
                        example: 0.074
                  msg:
                    type: string
                    example: success
                  request_id:
                    type: string
                    format: uuid
                    example: 250b66dd-e1fb-4bb6-b5f6-c668efadc35d
        '400':
          description: Bad request — invalid or missing parameter.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 400
                  msg:
                    type: string
                    example: task_id is required
                  request_id:
                    type: string
                    format: uuid
                    example: 96be7a7d-3e81-4916-a6b8-19b32773a693
        '401':
          description: Unauthorized — missing or invalid API key.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 401
                  data:
                    type: object
                    example: {}
                  msg:
                    type: string
                    example: invalid api key
                  request_id:
                    type: string
                    format: uuid
                    example: bff4c295-c7da-4507-9708-4627cb6373ba
        '500':
          description: Internal error — task creation failed (e.g. insufficient balance).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    example: 500
                  msg:
                    type: string
                    example: >-
                      create task failed: billing: code=100601: insufficient
                      balance
                  request_id:
                    type: string
                    format: uuid
                    example: 3409f6fb-fa9a-4534-b530-195b5f6f4e32
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````