> ## 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 Reference to Video

> Use reference videos to guide new scenes with Wan 2.6, with support for multiple shots and video output up to 1080p.

<Tip>
  1. Submit the request with `VIDGO_API_KEY`. A `task_id` is returned immediately. Keep it until the task reaches `finished` or `failed`.
  2. Use [Query Task Status](/api-manual/task-management/status) to retrieve the result. If you provide a `callback_url`, Vidgo sends the result to your [webhook](/api-manual/task-management/webhooks) when the task finishes or fails.
</Tip>

# Wan 2.6 Reference to Video

Use reference videos to guide new scenes with Wan 2.6, with support for multiple shots and video output up to 1080p.

## Available Models

* **alibaba/wan-2.6/reference-to-video** - Generate video guided by reference material and a prompt.

## Duration Options

* **5, 10 seconds** - Set `duration` as an integer. Optional. Default: **5 seconds**.

## Key Features

* Generate video guided by reference material and a prompt.
* Use 1-10 video references to guide the generated scene.
* Choose from `720p`, `1080p` output resolutions.

## Advanced Parameters

Set `model` and optional `callback_url` at the request root. Place all workflow parameters, including output options, inside `input`.

Send only the input fields supported by this workflow. Unsupported `input` fields are rejected before credits are deducted. Input URLs must use HTTP(S), include a hostname, and contain no embedded credentials.

### Prompt

* `prompt`: Required. Describe the scene and desired motion. Length: **1-5,000 characters**.
* The value must not be blank when supplied.

### Reference Videos

* `video_urls`: Required. Provide reference video URLs. Supply 1-10 items. Each item must be an HTTP(S) URL.
* PoYo accepts MP4, MOV, and MKV files up to 10 MiB each.

### Resolution

* `resolution`: Optional. Accepted values: `720p`, `1080p`. Default: `720p`.

### Multi-Shot Generation

* `multi_shots`: Optional. Enable multi-shot generation. Use `true` or `false`.

## Pricing

Pricing depends on the selected model and applicable output settings. Check the Vidgo dashboard for the current rate.

Credits are deducted on submission and refunded if the task fails.


## OpenAPI

````yaml 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 Reference to Video
  description: >-
    Use reference videos to guide new scenes with Wan 2.6, with support for
    multiple shots and video output up to 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 Reference to Video
      description: >-
        Send only the fields shown for this workflow. Parameters from other
        workflows are rejected before credits are deducted.


        When supplied, prompt and text must not be blank. Input URL fields
        require HTTP(S) URLs with a hostname and no embedded credentials.
      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
                  enum:
                    - alibaba/wan-2.6/reference-to-video
                  example: alibaba/wan-2.6/reference-to-video
                  description: >-
                    Vidgo public model ID. Must be
                    `alibaba/wan-2.6/reference-to-video`.
                input:
                  type: object
                  required:
                    - prompt
                    - video_urls
                  description: Input parameters for generation
                  properties:
                    prompt:
                      type: string
                      description: Text prompt for video generation
                      maxLength: 5000
                      minLength: 1
                    video_urls:
                      type: array
                      items:
                        type: string
                        format: uri
                      minItems: 1
                      maxItems: 10
                      description: >-
                        Required reference video URLs. Supply 1–10 MP4, MOV, or
                        MKV videos, each up to 10 MiB. PoYo validates remote
                        files.
                    duration:
                      type: integer
                      description: 'Output duration in seconds: 5 or 10.'
                      enum:
                        - 5
                        - 10
                      default: 5
                    resolution:
                      type: string
                      description: Output video resolution
                      enum:
                        - 720p
                        - 1080p
                      default: 720p
                    multi_shots:
                      type: boolean
                      description: >-
                        Enable multi-shot composition (single continuous shot
                        when false)
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: >-
                    Optional public HTTP(S) endpoint for task completion
                    notifications. HTTPS is recommended. Omit, use null, or use
                    an empty string to disable callbacks.
              description: >-
                Keep model and callback_url at the root. Unknown root fields are
                ignored; unsupported input fields are rejected.
            examples:
              basic:
                summary: Basic workflow
                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: Receive a completion callback
                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: Task submitted
          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: >-
            Invalid input, unsupported tier, inaccessible media, or insufficient
            credits
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: Access denied
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: Unknown or disabled model
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: Request timed out
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: Invalid JSON or non-object request body
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: Rate or API key credit limit exceeded
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: Internal error
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: Unable to create the upstream generation task
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: Model configuration or capability is not approved
          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: Use VIDGO_API_KEY.

````