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

# Seedance 2.0 视频生成

> 字节跳动 Seedance 2.0 视频生成模型，支持文生视频、图生视频（首帧/首尾帧）、多模态参考生视频，支持有声视频（异步）

使用[火山引擎](https://www.volcengine.com) Seedance 2.0 模型生成视频。

**模型特点：**

* **多种生成模式** - 支持文生视频、图生视频（首帧/首尾帧）、多模态参考生视频
* **有声视频** - 内置音频生成支持
* **Fast 与 Standard 模式** - 可选 2.0 Fast（更快更便宜）和 2.0 标准版
* **灵活时长** - 4-15 秒，或设置为 -1 让模型自动选择


## OpenAPI

````yaml /cn/openapi.yaml POST /generate/vol/seedance-2.0
openapi: 3.0.0
info:
  contact:
    email: support@sinancode.com
    name: API Support
    url: https://sinancode.com/support
  description: AI 模型任务调度平台 API
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
  termsOfService: https://sinancode.com/terms-of-service
  title: TikTomato API
  version: '1.0'
servers:
  - url: https://api.sinancode.com/v1
    description: Production server
security: []
paths:
  /generate/vol/seedance-2.0:
    post:
      tags:
        - public
      summary: Seedance 2.0 视频生成
      description: 字节跳动 Seedance 2.0 视频生成模型，支持文生视频、图生视频（首帧/首尾帧）、多模态参考生视频，支持有声视频（异步）
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/vol.CreateSeedance20TaskRequest'
        description: 任务参数
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: 参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: 服务器错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    vol.CreateSeedance20TaskRequest:
      properties:
        duration:
          default: 5
          description: |-
            视频时长（可选，默认 5 秒）
            范围: 4-15 秒，或设置为 -1 让模型自动选择
          example: 5
          maximum: 15
          minimum: -1
          type: integer
        first_frame:
          description: 首帧图片 URL（可选，用于图生视频-首帧模式）
          example: https://example.com/first_frame.jpg
          type: string
        generate_audio:
          default: true
          description: 是否生成音频（可选，默认 true）
          example: true
          type: boolean
        last_frame:
          description: 尾帧图片 URL（可选，需配合 first_frame 使用）
          example: https://example.com/last_frame.jpg
          type: string
        model:
          default: fast
          description: |-
            模型版本（可选，默认 fast）
            可选值: fast（2.0 Fast，更快更便宜）, standard（2.0 标准版）
          enum:
            - fast
            - standard
          example: fast
          type: string
        prompt:
          description: 提示词（可选，多模态参考时可不传）
          example: 女孩抱着狐狸，女孩睁开眼，温柔地看向镜头
          maxLength: 2000
          type: string
        ratio:
          default: adaptive
          description: 宽高比（可选，默认 adaptive）
          enum:
            - '16:9'
            - '4:3'
            - '1:1'
            - '3:4'
            - '9:16'
            - '21:9'
            - adaptive
          example: adaptive
          type: string
        reference_images:
          description: |-
            参考图片 URL 列表（可选，1-9 张，用于多模态参考生视频）
            注意：参考图与首帧/首尾帧为互斥模式，不可混用
          items:
            type: string
          maxItems: 9
          type: array
        resolution:
          default: 720p
          description: |-
            分辨率（可选，默认 720p）
            Seedance 2.0 不支持 1080p
          enum:
            - 480p
            - 720p
          example: 720p
          type: string
        watermark:
          default: false
          description: 是否添加水印（可选，默认 false）
          example: false
          type: boolean
      required:
        - reference_images
      type: object
    dto.CreateTaskResponse:
      properties:
        task_id:
          description: Task ID
          example: 01234567-89ab-cdef-0123-456789abcdef
          type: string
      required:
        - task_id
      type: object
    apierror.ErrorResponse:
      properties:
        error_code:
          description: Machine-readable error code (e.g. TASK.INVALID_PARAMS)
          type: string
        message:
          description: User-friendly error message
          type: string
      type: object
  securitySchemes:
    AccessToken:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 请使用您的 API Token 进行认证

````