> ## 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.

# Wan 2.6 参考生视频

> Wan 2.6 API 以参考视频引导新场景生成，支持多镜头，视频输出最高 1080p。

> [!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)接口获取结果。

使用 Wan 2.6 参考生视频，以参考视频引导新场景生成，支持多镜头，视频输出最高 1080p。

## 模型

* **alibaba/wan-2.6/reference-to-video** - 在参考素材和提示词的引导下生成视频。

## 功能

* 在参考素材和提示词的引导下生成视频。
* 使用 1-10 个参考视频引导生成的场景。
* 输出分辨率可选 `720p`、`1080p`。

## 时长选项

* **5、10 秒** - 以整数设置 `duration`。可选。默认：**5 秒**。

## 高级参数

`model` 和可选的 `callback_url` 放在请求根级。所有工作流参数（包括输出选项）都放在 `input` 内。

只发送本工作流支持的 input 字段。不支持的 `input` 字段会在扣除积分前被拒绝。输入 URL 必须使用 HTTP(S)，带主机名，且不含内嵌凭证。

### 提示词

* `prompt`：必填。描述场景和期望的运动。长度：**1-5,000 个字符**。
* 提供时该值不能为空。

### 参考视频

* `video_urls`：必填。提供参考视频 URL。提供 1-10 项，每项必须是 HTTP(S) URL。
* 参考视频支持 MP4、MOV 和 MKV 文件，每个最大 10 MiB。

### 分辨率

* `resolution`：可选。可选值：`720p`、`1080p`。默认：`720p`。

### 多镜头生成

* `multi_shots`：可选。启用多镜头生成。使用 `true` 或 `false`。

## 定价

价格取决于所选模型和适用的输出设置。当前价格请在 Vidgo 仪表盘查看。

提交时扣除积分，任务失败后退还。


## OpenAPI

````yaml zh/api-manual/video-series/alibaba-wan-2-6-reference-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Wan 2.6 参考生视频
  description: 使用 Wan 2.6 以参考视频引导新场景，支持多镜头，视频输出最高 1080p。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Video Series
      summary: Wan 2.6 参考生视频
      description: |-
        只发送本工作流列出的字段。包含其他工作流参数的请求会在扣除积分前被拒绝。

        如果提供 prompt，则不能为空。输入 URL 字段必须是带主机名、不含内嵌凭证的 HTTP(S) URL。
      operationId: submit_alibaba_wan_2_6_reference_to_video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              properties:
                model:
                  type: string
                  example: alibaba/wan-2.6/reference-to-video
                input:
                  type: object
                  required:
                    - prompt
                    - video_urls
                  description: 生成参数
                  properties:
                    prompt:
                      type: string
                      description: 视频生成的文本提示词
                      maxLength: 5000
                      minLength: 1
                    video_urls:
                      type: array
                      items:
                        type: string
                        format: uri
                      minItems: 1
                      maxItems: 10
                      description: 必填的参考视频 URL。提供 1–10 个 MP4、MOV 或 MKV 视频，每个最大 10 MiB。
                    duration:
                      type: integer
                      description: 输出时长（秒）：5 或 10。
                      enum:
                        - 5
                        - 10
                      default: 5
                    resolution:
                      type: string
                      description: 输出视频分辨率
                      enum:
                        - 720p
                        - 1080p
                      default: 720p
                    multi_shots:
                      type: boolean
                      description: 启用多镜头构图（为 false 时为单个连续镜头）
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: >-
                    可选的公开 HTTP(S) 地址，用于接收任务完成通知。建议使用 HTTPS。省略、设为 null
                    或空字符串即不发送回调。
              description: model 和 callback_url 放在根级。未知的根级字段会被忽略；不支持的 input 字段会被拒绝。
            examples:
              basic:
                summary: 基础工作流
                value:
                  model: alibaba/wan-2.6/reference-to-video
                  input:
                    duration: 5
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    resolution: 720p
                    video_urls:
                      - https://example.com/video.mp4
              callback:
                summary: 接收完成回调
                value:
                  model: alibaba/wan-2.6/reference-to-video
                  input:
                    duration: 5
                    prompt: >-
                      A quiet forest under soft morning light, with natural
                      detail.
                    resolution: 720p
                    video_urls:
                      - https://example.com/video.mp4
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: 任务已提交
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - data
                properties:
                  code:
                    type: integer
                    enum:
                      - 200
                  data:
                    type: object
                    required:
                      - task_id
                      - status
                      - created_time
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - not_started
                          - running
                          - finished
                          - failed
                      created_time:
                        type: string
                        format: date-time
              example:
                code: 200
                data:
                  task_id: task-unified-example
                  status: running
                  created_time: '2026-09-10T08:00:00'
        '400':
          description: 输入无效、不支持的档位、媒体无法访问或积分不足
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: 凭证无效
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: 拒绝访问
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: 模型不存在或已停用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: 请求超时
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: JSON 无效或请求体不是对象
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: 超出频率限制或 API Key 积分限额
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: 内部错误
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: 无法创建上游生成任务
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: 所请求的模型暂时不可用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 使用 VIDGO_API_KEY。

````

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