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

# Seedance 2.0 文生视频

> Seedance 2.0 文生视频模型，支持多模态生成和可选音频

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

## 模型

* **seedance-2.0/text-to-video** - Seedance 2.0 文生视频

## 功能

* **文生视频**：直接根据提示词文本生成视频。
* **可选音频**：可请求与视频一起生成音频。

## 版本说明

* 该公开 model ID 使用 `seedance-2` 服务商版本。
* 支持的分辨率为 `480p`、`720p`、`1080p` 和 `4k`。

## 积分参考

* 用量根据输出时长和所选分辨率计算。
* 提交生产流量前，请在 Vidgo 仪表盘查看该模型的当前费率。

## 注意事项

* `prompt` 为必填，最多 20,000 个字符。
* `duration` 支持 `4` 到 `15` 的整数。
* `aspect_ratio` 接受 `auto`、`21:9`、`16:9`、`4:3`、`1:1`、`3:4` 或 `9:16`。
* 所有远程 URL 必须可公开访问且可直接下载。


## OpenAPI

````yaml zh/api-manual/video-series/seedance-2-0-text-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Seedance 2.0 文生视频
  description: 通过 Vidgo 统一生成 API 调用 Seedance 2.0 文生视频。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Seedance 2.0 Text to Video
      summary: 提交 Seedance 2.0 文生视频任务
      operationId: submitSeedance20TextToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              default:
                summary: Seedance 2.0 文生视频
                value:
                  model: seedance-2.0/text-to-video
                  callback_url: https://your-domain.com/callback
                  input:
                    prompt: >-
                      A cinematic scene with natural lighting and coherent
                      motion
                    duration: 5
                    resolution: 480p
      responses:
        '200':
          description: 任务提交成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
        '401':
          description: 未授权
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: seedance-2.0/text-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook 回调 URL。
        input:
          type: object
          required:
            - prompt
            - duration
            - resolution
          additionalProperties: false
          properties:
            prompt:
              type: string
              description: 描述目标视频的提示词。
              minLength: 1
              maxLength: 20000
            duration:
              type: integer
              description: 输出时长（秒）。
              minimum: 4
              maximum: 15
            resolution:
              type: string
              description: 输出分辨率。
              enum:
                - 480p
                - 720p
                - 1080p
                - 4k
            aspect_ratio:
              type: string
              description: 输出宽高比。图生视频传入时仅接受 auto。
              enum:
                - auto
                - '21:9'
                - '16:9'
                - '4:3'
                - '1:1'
                - '3:4'
                - '9:16'
            generate_audio:
              type: boolean
              description: 是否生成音轨。
            return_last_frame:
              type: boolean
              description: 是否返回最后生成的一帧。
            web_search:
              type: boolean
              description: 在支持时是否启用联网辅助生成。
            seed:
              type: integer
              description: 可选的确定性种子。
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
            status:
              type: string
              enum:
                - not_started
                - running
                - failed
            created_time:
              type: string
              format: date-time
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.