Skip to main content

Overview

Wan 2.6 Video is an Alibaba video model for text-to-video, image-to-video, and reference-guided generation. Use this page when you are ready to call the API after trying the model in the APIXO playground.

Endpoint and authentication

Base URL:
All requests require your APIXO API key:
Submit requests also require:

Copy-paste async quickstart

This minimal request submits a text-to-video task and returns a taskId.
Successful response:
Save the taskId; you need it to poll for the final result.

Poll for result

Processing response:
Success response:
Failed response:
Parse resultJson after state becomes success:

Request body

Text-to-video

Image-to-video-flash

Reference-to-video

For non-flash modes, use image-to-video or reference-to-video and omit sound.

Parameters

string
default:"async"
required
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
string
Required when request_type is callback. Must be a public callback URL that can receive the final task payload. See Webhooks.
object
required
Wan 2.6 Video input parameters.

Response format

Submit task response

POST /generateTask/wan-2-6-video returns a task ID when the task is accepted:
integer
API status code. 200 means the task was accepted.
string
Human-readable status message.
string
Unique task identifier used with the status endpoint.

Status response fields

string
Unique task identifier.
string
Current task state: pending, processing, success, or failed.
string
JSON string containing generated video URLs in resultUrls. Present when state is success.
string
Machine-readable failure code. Present when state is failed.
string
Human-readable failure message. Present when state is failed.
integer
Task creation timestamp in Unix milliseconds.
integer
Task completion timestamp in Unix milliseconds. Present after completion.
integer
Processing duration in milliseconds. Present after completion when provider timing is available.

Webhook callback mode

Use callback mode when your backend should receive the final result automatically instead of polling.
See Webhooks for delivery requirements and retry behavior.

Billing

Wan 2.6 Video is billed per second. Total cost is duration * unitPrice. Standard (non-flash) modes: Flash modes: For current route and market comparison pricing, see Pricing.

Latency and polling

Wan 2.6 Video tasks are asynchronous. The backend does not provide a fixed public latency SLA; actual latency varies by mode, duration, resolution, prompt complexity, media fetch speed, and provider queue load.
For production workloads, use callback mode to avoid frequent polling on long-running video jobs.
Rate limits and concurrency can vary by account, API key, and route. If you receive 429, slow down requests and retry with backoff. For account-level details, see System APIs.

Errors and troubleshooting

HTTP errors

Task failure codes

failCode is route-dependent and may come from mapped third-party model failures. Common values include:

Parameter troubleshooting

  • prompt is required and must be non-empty for all modes.
  • image-to-video-flash and image-to-video require exactly one image_urls item.
  • reference-to-video-flash and reference-to-video require reference_urls with 1-5 items.
  • sound is valid only for flash modes.
  • duration defaults to 5, but reference modes only allow up to 10.
  • In flash modes, when sound=false, optional audio input is ignored.
See Error Codes for the full error reference.