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

# SeeDance-2.0

> 使用 SeeDance-2.0 模型生成视频



## OpenAPI

````yaml /zh/api-reference/video/openapi.json post /v1/video/seedancev2
openapi: 3.0.3
info:
  title: 视频服务 API
  description: 视频生成服务 API - 提供多种AI视频生成、任务查询和历史记录功能
  version: 1.0.0
  contact:
    name: API Support
servers:
  - url: https://api.tensorslab.com
    description: 开发环境
security: []
tags:
  - name: 视频生成
    description: 视频生成相关接口
  - name: 任务管理
    description: 任务管理相关接口
paths:
  /v1/video/seedancev2:
    post:
      tags:
        - 视频生成
      summary: SeeDance-2.0
      description: 使用 SeeDance-2.0 模型生成视频
      operationId: seeDanceV2
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                prompt:
                  type: string
                  description: 提示词描述
                  maxLength: 8192
                sourceImage:
                  type: array
                  items:
                    type: string
                    format: binary
                  description: 源图片文件（1-2张）
                ratio:
                  type: string
                  description: 视频宽高比
                  default: '9:16'
                  enum:
                    - '16:9'
                    - '4:3'
                    - '1:1'
                    - '3:4'
                    - '9:16'
                    - '21:9'
                    - adaptive
                duration:
                  type: integer
                  description: 视频时长（秒）
                  default: 5
                  enum:
                    - 5
                    - 10
                    - 15
                seed:
                  type: integer
                  description: 随机种子
                resolution:
                  type: string
                  description: 视频分辨率
                  enum:
                    - 480p
                    - 720p
                  default: 720p
                fps:
                  type: string
                  description: 帧率
                  default: '24'
                generate_audio:
                  type: string
                  description: 是否生成音频，1 为启用
                  enum:
                    - '0'
                    - '1'
                return_last_frame:
                  type: string
                  description: 是否返回最后一帧，1 为启用
                  enum:
                    - '0'
                    - '1'
                execution_expires_after:
                  type: integer
                  description: 执行超时时间（秒）
                  minimum: 3600
                  maximum: 259200
                websearch:
                  type: string
                  description: 开启联网搜索，1 为启用
                  enum:
                    - '0'
                    - '1'
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GeneralResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    GeneralResponse:
      type: object
      description: 通用响应
      allOf:
        - $ref: '#/components/schemas/BaseResponse'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/GeneralData'
          required:
            - data
    BaseResponse:
      type: object
      description: 基础响应结构
      properties:
        code:
          type: integer
          description: 响应状态码：1000=成功，9999=失败，9000=积分不足
        msg:
          type: string
          description: 响应消息
      required:
        - code
        - msg
    GeneralData:
      type: object
      description: 通用数据响应
      properties:
        taskid:
          type: string
          description: 任务ID，用于后续查询任务状态
      required:
        - taskid
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: API密钥认证，请在请求头中包含Authorization字段

````