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

# Seedream-4.5 Image Generation

> Asynchronous image generation (Seedream-4.5). Returns a task id for checking generation status.



## OpenAPI

````yaml post /v1/images/generations/seedream-4-5
openapi: 3.0.0
info:
  title: Image Generation APIs
  version: 1.0.0
  description: >-
    Converted from image-markdown/*.md — each file exposed as a dedicated POST
    path.
servers:
  - url: https://apiif.com
    description: Primary API server
security:
  - BearerAuth: []
paths:
  /v1/images/generations/seedream-4-5:
    post:
      summary: Seedream-4.5 Image Generation
      description: >-
        Asynchronous image generation (Seedream-4.5). Returns a task id for
        checking generation status.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageGenerationRequest'
            example:
              model: doubao-seedance-4-5
              prompt: A cute panda playing in a bamboo forest
              size: '1:1'
              resolution: 2K
              'n': 1
              image_urls:
                - https://cdn.apiif.com/doc/1761215838466614297_9852.png
      responses:
        '200':
          description: Task submitted
          content:
            application/json:
              example:
                code: 200
                data:
                  - status: submitted
                    task_id: task_01K8SGYNNNVBQTXNR4MM964S7K
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Authentication error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '402':
          description: Payment required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '429':
          description: Rate limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
components:
  schemas:
    ImageGenerationRequest:
      type: object
      required:
        - model
        - prompt
      properties:
        model:
          type: string
          description: Image generation model name
        prompt:
          type: string
          description: Text description for image generation
        size:
          type: string
          description: Aspect ratio (e.g., 1:1, 16:9)
        resolution:
          type: string
          description: Output resolution (1K/2K/4K)
        'n':
          type: integer
          minimum: 1
          maximum: 15
          description: Number of images to generate
        image_urls:
          type: array
          items:
            type: string
            format: uri
          description: Reference image URLs (for image-to-image / editing)
        mask_url:
          type: string
          description: Mask image URL (PNG) for editing
        watermark:
          type: boolean
          description: Whether to add a watermark
        sequential_image_generation:
          type: string
          description: Controls sequential generation (auto/disabled)
        sequential_image_generation_options:
          type: object
          properties:
            max_images:
              type: integer
        optimize_prompt_options:
          type: object
          properties:
            mode:
              type: string
    APIError:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            type:
              type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Token

````