> ## 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 Pro 1.5 视频生成

> 使用火山引擎 Seedance 1.5 Pro 模型生成视频，支持文生视频、图生视频（首帧/首尾帧）、有声视频、样片模式（异步）

使用[火山引擎](https://www.volcengine.com)的 Seedance 1.5 Pro 模型生成视频，支持多种生成模式。

**模型特点：**

* **多模式生成** - 支持文生视频、图生视频（首帧/首尾帧）、样片模式
* **原生音频生成** - 生成与视频同步的语音、音效和背景音乐（建议将对话部分用双引号包裹以优化音频效果）
* **草稿模式** - 快速生成预览视频，消耗更少的 Token
* **灵活时长** - 支持 4-12 秒，或设为 `-1` 让模型自动决定
* **高清分辨率** - 支持 480p、720p、1080p 输出


## OpenAPI

````yaml /cn/openapi.yaml POST /generate/vol/seedance-pro-1.5
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-pro-1.5:
    post:
      tags:
        - public
      summary: Seedance Pro 1.5 视频生成
      description: 使用火山引擎 Seedance 1.5 Pro 模型生成视频，支持文生视频、图生视频（首帧/首尾帧）、有声视频、样片模式（异步）
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/vol.CreateSeedancePro15TaskRequest'
        description: Task parameters
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.CreateTaskResponse'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/apierror.ErrorResponse'
      security:
        - AccessToken: []
components:
  schemas:
    vol.CreateSeedancePro15TaskRequest:
      properties:
        camera_fixed:
          default: false
          description: |-
            是否固定摄像头（可选，默认 false）
            注意：图生视频-参考图模式不支持此参数
          example: false
          type: boolean
        draft:
          default: false
          description: |-
            是否为样片模式（可选，默认 false）
            Seedance 1.5 特性：快速生成预览视频，消耗更少 token
            注意：Draft 模式必须使用 480p 分辨率，不支持返回尾帧功能
          example: false
          type: boolean
        duration:
          default: 5
          description: |-
            视频时长（可选，默认 5 秒）
            范围: 4-12 秒，或设置为 -1 让模型自动选择时长
          example: 5
          maximum: 12
          minimum: -1
          type: integer
        first_frame:
          description: |-
            首帧图片 URL（可选）
            传入后为图生视频-首帧模式
          example: https://example.com/first_frame.jpg
          type: string
        generate_audio:
          default: true
          description: |-
            是否生成音频（可选，默认 true）
            Seedance 1.5 特性：生成与画面同步的声音（人声、音效、背景音乐）
            建议将对话部分置于双引号内以优化音频生成效果
          example: true
          type: boolean
        last_frame:
          description: |-
            尾帧图片 URL（可选）
            需要配合 first_frame 使用，为图生视频-首尾帧模式
          example: https://example.com/last_frame.jpg
          type: string
        prompt:
          description: 提示词（必填，建议不超过500字）
          example: 女孩抱着狐狸，女孩睁开眼，温柔地看向镜头，狐狸友善地抱着，镜头缓缓拉出，女孩的头发被风吹动，可以听到风声
          maxLength: 2000
          minLength: 1
          type: string
        ratio:
          default: adaptive
          description: |-
            宽高比（可选）
            文生视频默认: adaptive（自适应）
            图生视频默认: adaptive（根据首帧图片自适应）
            可选值: 16:9, 4:3, 1:1, 3:4, 9:16, 21:9, adaptive
          enum:
            - '16:9'
            - '4:3'
            - '1:1'
            - '3:4'
            - '9:16'
            - '21:9'
            - adaptive
          example: adaptive
          type: string
        resolution:
          default: 720p
          description: |-
            分辨率（可选，默认 720p）
            可选值: 480p, 720p, 1080p
            注意：Draft 模式只能使用 480p
          enum:
            - 480p
            - 720p
            - 1080p
          example: 720p
          type: string
        watermark:
          default: false
          description: 是否添加水印（可选，默认 false）
          example: false
          type: boolean
      required:
        - prompt
      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 进行认证

````