Wan 2.5 T2V Preview API

Wan 2.5 text-to-video preview supports 480p, 720p, and 1080p.

POST /v1/videos/generations

wan2.5-t2v-preview: Submit a video task, required fields, nested response schema and a fictional example.

Basic request

Required parameters: model, duration, resolution, input, parameters

Available parameters: model, duration, resolution, input, parameters, wait

Request parameters

ParameterTypeRequiredDescription
modelstringYesExact model identifier shown on this page. Options: wan2.5-t2v-preview
durationintegerYesOutput duration; keep it consistent with the top-level duration.
resolutionstringYesOutput resolution tier, for example 720p.
inputobjectYesInputs for this generation mode.
parametersobjectYesVideo generation settings.
waitbooleanNoFalse returns a task immediately; use the task-query endpoint.
## Usage and response conventions - Follow required fields and the nested schema. Optional settings without a documented numeric default use the current model default. - Context, output budgets and media constraints differ by model. Unverified limits are not universal guarantees. - An absent value differs from a reported zero. Read status, content and usage as actually returned. - Replace example.invalid addresses with readable media you are authorized to use. - Save generated files promptly; result links need not remain available indefinitely. ### Query the submitted task Use its returned id with GET /v1/videos/generations/{id}. Do not resubmit generation to check progress. pending, submitted and processing are nonterminal; succeeded, failed, timeout and canceled are terminal. Read the result URL actually present in content, output or video. ## Reference Terminology: [Wan Video](https://www.alibabacloud.com/help/en/model-studio/use-video-generation/). Use this page's platform base URL and exact model identifier for requests. Reviewed: 2026-11-07. ## Complete nested field reference Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero. ### Request headers | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `Content-Type` | string | Yes | JSON request-body content type. | ### Request body | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `model` | string | Yes | Exact model identifier shown on this page. Values: wan2.5-t2v-preview | | `duration` | integer | Yes | Output duration; keep it consistent with the top-level duration. Minimum: 1 | | `resolution` | string | Yes | Output resolution tier, for example 720p. | | `input` | object | Yes | Inputs for this generation mode. | | `input.prompt` | string | Yes | Video prompt or motion description. | | `parameters` | object | Yes | Video generation settings. | | `parameters.duration` | integer | No | Output duration; keep it consistent with the top-level duration. Minimum: 1 | | `parameters.size` | string | No | Width*height, for example 1280*720. | | `wait` | boolean | No | False returns a task immediately; use the task-query endpoint. Default: false | ### Response 200 | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `id` | string | No | Opaque task identifier returned by submission; preserve it unchanged. | | `model` | string | No | Exact model identifier shown on this page. | | `status` | string | No | Task status; stop polling only at a terminal state. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown | | `created_at` | integer | No | Creation time in Unix seconds. | | `content` | object | No | Result object returned by some video models. | | `content.video_url` | string | No | Video URL after success. | | `content.last_frame_url` | string | No | Last-frame URL when provided. | | `output` | object | No | Output object returned by some video models. | | `output.video_url` | string | No | Video URL after success. | | `output.task_status` | string | No | Task-status value when provided. | | `video` | object | No | Video result returned by some video models. | | `video.url` | string | No | Video URL after success. | | `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. | | `error.code` | string | No | Error code. | | `error.message` | string | No | Readable error message. | ### Response 202 | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `id` | string | No | Opaque task identifier returned by submission; preserve it unchanged. | | `model` | string | No | Exact model identifier shown on this page. | | `status` | string | No | Task status; stop polling only at a terminal state. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown | | `created_at` | integer | No | Creation time in Unix seconds. | | `content` | object | No | Result object returned by some video models. | | `content.video_url` | string | No | Video URL after success. | | `content.last_frame_url` | string | No | Last-frame URL when provided. | | `output` | object | No | Output object returned by some video models. | | `output.video_url` | string | No | Video URL after success. | | `output.task_status` | string | No | Task-status value when provided. | | `video` | object | No | Video result returned by some video models. | | `video.url` | string | No | Video URL after success. | | `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. | | `error.code` | string | No | Error code. | | `error.message` | string | No | Readable error message. | ### Error response structure | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. | | `error.message` | string | No | Readable error message. | | `error.type` | string | No | Type discriminator; use the values documented for the enclosing object. | | `error.code` | string | No | Error code. |

Request example

curl --request POST https://api.router.ai/v1/videos/generations \
  --header "Authorization: Bearer $API_KEY" \
  --header "Content-Type: application/json" \
  --data-raw '{
  "model": "wan2.5-t2v-preview",
  "duration": 5,
  "resolution": "720p",
  "input": {
    "prompt": "A fictional blue paper boat on a plain white background."
  },
  "parameters": {
    "duration": 5,
    "size": "1280*720"
  },
  "wait": false
}'

Endpoint reference: Aliyun Wan video generation

GET /v1/videos/generations/{id}

Query a previously submitted task without generating another video.

## Usage and response conventions - Follow required fields and the nested schema. Optional settings without a documented numeric default use the current model default. - Context, output budgets and media constraints differ by model. Unverified limits are not universal guarantees. - An absent value differs from a reported zero. Read status, content and usage as actually returned. - Replace example.invalid addresses with readable media you are authorized to use. - Save generated files promptly; result links need not remain available indefinitely. ### Query the submitted task Use its returned id with GET /v1/videos/generations/{id}. Do not resubmit generation to check progress. pending, submitted and processing are nonterminal; succeeded, failed, timeout and canceled are terminal. Read the result URL actually present in content, output or video. ## Reference Terminology: [Wan Video](https://www.alibabacloud.com/help/en/model-studio/use-video-generation/). Use this page's platform base URL and exact model identifier for requests. Reviewed: 2026-11-07. ## Complete nested field reference Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero. ### Path parameters | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `id` | string | Yes | Opaque task identifier returned to the same account. | ### Response 200 | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `id` | string | No | Opaque task identifier returned to the same account. | | `model` | string | No | Exact model identifier shown on this page. | | `status` | string | No | Task status; stop polling only at a terminal state. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown | | `created_at` | integer | No | Creation time in Unix seconds. | | `content` | object | No | Result object returned by some video models. | | `content.video_url` | string | No | Video URL after success. | | `content.last_frame_url` | string | No | Last-frame URL when provided. | | `output` | object | No | Output object returned by some video models. | | `output.video_url` | string | No | Video URL after success. | | `output.task_status` | string | No | Task-status value when provided. | | `video` | object | No | Video result returned by some video models. | | `video.url` | string | No | Video URL after success. | | `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. | | `error.code` | string | No | Error code. | | `error.message` | string | No | Readable error message. | ### Error response structure | Field path | Type | Required in its object | Meaning | |---|---|---|---| | `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. | | `error.message` | string | No | Readable error message. | | `error.type` | string | No | Type discriminator; use the values documented for the enclosing object. | | `error.code` | string | No | Error code. |

Request example

curl --request GET "https://api.router.ai/v1/videos/generations/$TASK_ID" \
  --header "Authorization: Bearer $API_KEY"

Endpoint reference: Get a video task