Wan 2.6 API
Wan 2.6 API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.
Wan 2.6 API documentation
Integrate Wan 2.6 with your VezAPI key. The operations below share the same authentication and account balance.
https://api.vezapi.comSend Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.
Wan 2.6 - Image to Video
/api/v1/jobs/createTaskModel IDs: wan/2-6-image-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name to use for generation. Required field. - Must be `wan/2-6-image-to-video` for this endpoint Values: Default: |
callBackUrloptional | string | The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, use the Get Task Details endpoint to poll task status - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation |
inputoptional | object | Input parameters for the generation task |
input.promptrequired | string | Text prompts for video generation. Supports both Chinese and English, with a minimum of 2 characters and a maximum of 5,000 characters. (Max length: 5000 characters)
|
input.image_urlsrequired | array | Upload an image file to use as input for the API (File URL after upload, not file content; Accepted types: image/jpeg, image/png, image/webp; Max size: 10.0MB),All images must be at least 256x256px.
|
input.durationoptional | string | The duration of the generated video in seconds Values: Default: |
input.resolutionoptional | string | Video resolution tier Values: Default: |
input.multi_shotsoptional | boolean | The multi shots parameter controls the shot composition style during AI video generation, determining whether the generated video is a single continuous shot or multiple shots with transitions. Default: |
input.nsfw_checkeroptional | boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan/2-6-image-to-video",
"input": {
"prompt": "Anthopmopric fox singing a Christmas song at the rubbish dump in the rain.",
"image_urls": [
"https://example.com/input.png"
],
"duration": "5",
"resolution": "1080p"
}
}'Responses and errors
HTTP 200
Request successful
| Parameter | Type | Description & constraints |
|---|---|---|
codeoptional | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). Values: |
msgoptional | string | Response message, error description upon failure |
datarequired | object | |
data.taskIdrequired | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
HTTP 500
Server error.
| Parameter | Type | Description & constraints |
|---|---|---|
coderequired | integer | Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled |
msgrequired | string | Response message, error description when failed |
datarequired | object |
Wan 2.6 - Text to Video
/api/v1/jobs/createTaskModel IDs: wan/2-6-text-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name to use for generation. Required field. - Must be `wan/2-6-text-to-video` for this endpoint Values: Default: |
callBackUrloptional | string | The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, use the Get Task Details endpoint to poll task status - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation |
inputoptional | object | Input parameters for the generation task |
input.promptrequired | string | Text prompts for video generation. Supports both Chinese and English, with a minimum of 1 characters and a maximum of 5,000 characters. (Max length: 5000 characters)
|
input.durationoptional | string | The duration of the generated video in seconds Values: Default: |
input.resolutionoptional | string | Output resolution: 720p or 1080p. Set this field explicitly. Values: |
input.multi_shotsoptional | boolean | The multi shots parameter controls the shot composition style during AI video generation, determining whether the generated video is a single continuous shot or multiple shots with transitions. Default: |
input.nsfw_checkeroptional | boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan/2-6-text-to-video",
"input": {
"prompt": "In a hyperrealistic ASMR video, a hand uses a knitted knife to slowly slice a burger made entirely of knitted wool. The satisfyingly crisp cut reveals a detailed cross-section of knitted meat, lettuce, and tomato slices. Captured in a close-up with a shallow depth of field, the scene is set against a stark, matte black surface. Cinematic lighting makes the surreal yarn textures shine with clear reflections. The focus is on the deliberate, satisfying motion and the unique, tactile materials.",
"duration": "5",
"resolution": "1080p"
}
}'Responses and errors
HTTP 200
Request successful
| Parameter | Type | Description & constraints |
|---|---|---|
codeoptional | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). Values: |
msgoptional | string | Response message, error description upon failure |
datarequired | object | |
data.taskIdrequired | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
HTTP 500
Server error.
| Parameter | Type | Description & constraints |
|---|---|---|
coderequired | integer | Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled |
msgrequired | string | Response message, error description when failed |
datarequired | object |
Wan 2.6 - Video to Video
/api/v1/jobs/createTaskModel IDs: wan/2-6-video-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name to use for generation. Required field. - Must be `wan/2-6-video-to-video` for this endpoint Values: Default: |
callBackUrloptional | string | The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, use the Get Task Details endpoint to poll task status - To ensure callback security, see [Webhook Verification Guide](/common-api/webhook-verification) for signature verification implementation |
inputoptional | object | Input parameters for the generation task |
input.promptrequired | string | Text prompts for video generation. Supports both Chinese and English, with a minimum of 2 characters and a maximum of 5,000 characters. (Max length: 5000 characters)
|
input.video_urlsrequired | array | Reference video URLs. (File URL after upload, not file content; Accepted types: video/mp4, video/quicktime, video/x-matroska; Max size: 10.0MB)
|
input.durationoptional | string | The duration of the generated video in seconds Values: Default: |
input.resolutionoptional | string | Output resolution: 720p or 1080p. Set this field explicitly. Values: |
input.multi_shotsoptional | boolean | The multi shots parameter controls the shot composition style during AI video generation, determining whether the generated video is a single continuous shot or multiple shots with transitions. Default: |
input.nsfw_checkeroptional | boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan/2-6-video-to-video",
"input": {
"prompt": "The video drinks milk tea while doing some improvised dance moves to the music.",
"video_urls": [
"https://example.com/input.png"
],
"duration": "5",
"resolution": "1080p"
}
}'Responses and errors
HTTP 200
Request successful
| Parameter | Type | Description & constraints |
|---|---|---|
codeoptional | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). Values: |
msgoptional | string | Response message, error description upon failure |
datarequired | object | |
data.taskIdrequired | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
HTTP 500
Server error.
| Parameter | Type | Description & constraints |
|---|---|---|
coderequired | integer | Response status code - **200**: Success - Request has been processed successfully - **401**: Unauthorized - Authentication credentials are missing or invalid - **402**: Insufficient Credits - Account does not have enough credits to perform the operation - **404**: Not Found - The requested resource or endpoint does not exist - **408**: Timeout - No result has been returned for over 10 minutes. - **422**: Validation Error - The request parameters failed validation checks - **429**: Rate Limited - Request limit has been exceeded for this resource - **455**: Service Unavailable - System is currently undergoing maintenance - **500**: Server Error - An unexpected error occurred while processing the request - **501**: Generation Failed - Content generation task failed - **505**: Feature Disabled - The requested feature is currently disabled |
msgrequired | string | Response message, error description when failed |
datarequired | object |
Task status and callbacks
For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.
A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.
Files, logs and billing
Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.
Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.
Send a request using your VezAPI key. Successful generations use your account credits.
/api/v1/jobs/createTaskYour response will appear here.
Wan 2.6 API pricing
Rates below are reference estimates; final deductions equal actual discounted consumption, one for one. At the standard pack rate, 1,000 credits ≈ $10. Larger packs reduce the effective credit price.
| Specification | Credits | Unit | USD reference |
|---|---|---|---|
| wan 2.6, video-to-video, 5.0s-1080p | 105 | per video | $1.05 |
| wan 2.6, video-to-video, 10.0s-1080p | 210 | per video | $2.1 |
| wan 2.6, video-to-video, 10.0s-720p | 140.0 | per video | $1.4 |
| wan 2.6, image-to-video, 10.0s-1080p | 210 | per video | $2.1 |
| wan 2.6, image-to-video, 15.0s-1080p | 315.0 | per video | $3.15 |
| wan 2.6, video-to-video, 5.0s-720p | 70.0 | per video | $0.7 |
| wan 2.6, image-to-video, 5.0s-1080p | 105 | per video | $1.05 |
| wan 2.6, image-to-video, 5.0s-720p | 70.0 | per video | $0.7 |
| wan 2.6, image-to-video, 10.0s-720p | 140.0 | per video | $1.4 |
| wan 2.6, image-to-video, 15.0s-720p | 210.0 | per video | $2.1 |
| wan 2.6, text to video, 5.0s-1080p | 105 | per video | $1.05 |
| wan 2.6, text to video, 10.0s-1080p | 210 | per video | $2.1 |
| wan 2.6, text to video, 15.0s-1080p | 315.0 | per video | $3.15 |
| wan 2.6, text to video, 15.0s-720p | 210.0 | per video | $2.1 |
| wan 2.6, text to video, 10.0s-720p | 140.0 | per video | $1.4 |
| wan 2.6, text to video, 5.0s-720p | 70.0 | per video | $0.7 |