Documentation Index
Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Wan 2.6 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.| Capability | Value |
|---|---|
| Model ID | wan-2-6-video |
| Modes | text-to-video, image-to-video-flash, image-to-video, reference-to-video-flash, reference-to-video |
| Prompt | Required and must be non-empty for all modes |
| Resolution tiers | 720p, 1080p |
| Explicit size presets (text/reference) | 1280*720, 720*1280, 960*960, 1088*832, 832*1088, 1920*1080, 1080*1920, 1440*1440, 1632*1248, 1248*1632 |
| Duration | text/image: 2-15 seconds (default 5); reference: 2-10 seconds (default 5) |
| Image inputs | Exactly 1 URL for image-to-video-flash and image-to-video |
| Reference inputs | 1-5 URLs for reference-to-video-flash and reference-to-video |
| Flash audio switch | sound is flash-only and defaults to true |
Public input contract
- Public audio input field is
audio_urls. - Use
audio_urls(notaudio_url) when sending audio with requests.
Endpoint and authentication
Base URL:| Method | Endpoint | Purpose |
|---|---|---|
POST | /generateTask/wan-2-6-video | Submit a generation task |
GET | /statusTask/wan-2-6-video?taskId={taskId} | Poll task status and retrieve results |
Copy-paste async quickstart
This minimal request submits a text-to-video task and returns ataskId.
taskId; you need it to poll for the final result.
Poll for result
resultJson after state becomes success:
Request body
Text-to-video
Image-to-video-flash
Reference-to-video
image-to-video or reference-to-video and omit sound.
Parameters
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a public callback URL that can receive the final task payload. See Webhooks.Wan 2.6 input parameters.
Response format
Submit task response
POST /generateTask/wan-2-6-video returns a task ID when the task is accepted:
API status code.
200 means the task was accepted.Human-readable status message.
Unique task identifier used with the status endpoint.
Status response fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing generated video URLs in
resultUrls. Present when state is success.Machine-readable failure code. Present when
state is failed.Human-readable failure message. Present when
state is failed.Task creation timestamp in Unix milliseconds.
Task completion timestamp in Unix milliseconds. Present after completion.
Processing duration in milliseconds. Present after completion when upstream timing is available.
Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.Billing
Wan 2.6 is billed per second. Total cost isduration * unitPrice.
Standard (non-flash) modes:
| Mode | Resolution | APIXO official price |
|---|---|---|
text-to-video, image-to-video, reference-to-video | 720p | $0.10 / second |
text-to-video, image-to-video, reference-to-video | 1080p | $0.15 / second |
| Mode | Resolution | sound=false | sound=true |
|---|---|---|---|
image-to-video-flash, reference-to-video-flash | 720p | $0.025 / second | $0.05 / second |
image-to-video-flash, reference-to-video-flash | 1080p | $0.0375 / second | $0.075 / second |
Latency and polling
Wan 2.6 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.| Workflow | Recommended first poll | Poll interval |
|---|---|---|
text-to-video | 30s after task creation | 10s |
image-to-video / image-to-video-flash | 30s after task creation | 10s |
reference-to-video / reference-to-video-flash | 45s after task creation | 10s-15s |
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
| Code | Meaning | What to do |
|---|---|---|
400 | Invalid request body, mode, parameter, or media URL shape | Fix the request before retrying |
401 | Missing or invalid API key | Check the Authorization header |
402 | Insufficient balance or quota | Add balance or switch account/key |
403 | Key or route cannot access the model | Check permissions and route strategy |
429 | Rate limit or concurrency limit reached | Retry with exponential backoff |
500 | Server error | Retry with backoff |
502 | Upstream provider error | Retry with backoff |
504 | Upstream timeout | Retry or use callback mode |
Task failure codes
failCode is route-dependent and may come from mapped upstream failures. Common values include:
| Fail code | Meaning | What to do |
|---|---|---|
PromptInvalid | Prompt is invalid or rejected by provider | Rewrite the prompt and retry |
MissingParameter / BadRequest | Required fields are missing or malformed | Check mode-specific required fields |
SensitiveContent / SensitiveContentDetected | Prompt or media failed safety checks | Change prompt or media |
RateLimitExceeded | Provider or route rate limit was reached | Retry with exponential backoff |
Task TimeOut / Timeout | Upstream generation timed out | Retry or use callback mode |
UnmappedUpstreamError | Upstream error could not be mapped to a known category | Retry with backoff or contact support with the taskId |
Parameter troubleshooting
promptis required and must be non-empty for all modes.image-to-video-flashandimage-to-videorequire exactly oneimage_urlsitem.reference-to-video-flashandreference-to-videorequirereference_urlswith1-5items.soundis valid only for flash modes.durationdefaults to5, butreferencemodes only allow up to10.- In flash modes, when
sound=false, optional audio input is ignored.