Wan 2.7 Video API
Wan 2.7 Video API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.
Wan 2.7 Video API documentation
Integrate Wan 2.7 Video 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.7 - Image to Video
/api/v1/jobs/createTaskModel IDs: wan/2-7-image-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name used for generation. This field is required. This endpoint must use the `wan/2-7-image-to-video` model. Values: Default: |
callBackUrloptional | string | Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent. |
inputrequired | object | Input parameters for the image-to-video task. |
input.promptrequired | string | Positive prompt. Maximum length: 5000 characters.
|
input.negative_promptoptional | string | Negative prompt. Maximum length: 500 characters.
|
input.first_frame_urloptional | string | First frame image URL. |
input.last_frame_urloptional | string | Last frame image URL. |
input.first_clip_urloptional | string | First clip video URL, used for video continuation. |
input.driving_audio_urloptional | string | Driving audio URL. |
input.resolutionoptional | string | Video resolution. - `720p`: 720p - `1080p`: 1080p Values: Default: |
input.durationoptional | integer | Total output video duration in seconds. - Minimum: `2` - Maximum: `15` - Default: `5` Default:
|
input.prompt_extendoptional | boolean | Whether to enable intelligent prompt rewriting. Default value: `true`. Default: |
input.watermarkoptional | boolean | Whether to add an AI-generated watermark. Default value: `false`. Default: |
input.seedoptional | integer | Random seed. - Minimum: `0` - Maximum: `2147483647`
|
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-7-image-to-video",
"input": {
"prompt": "Your prompt",
"resolution": "1080p",
"duration": 5
}
}'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. |
Wan 2.7 - Reference to Video
/api/v1/jobs/createTaskModel IDs: wan/2-7-r2v
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name used for generation. This field is required. This endpoint must use the `wan/2-7-r2v` model. Values: Default: |
callBackUrloptional | string | Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent. |
inputrequired | object | Input parameters for the reference-to-video task. |
input.promptrequired | string | Text prompt. Required. Describes the desired elements and visual features in the generated video. Supports Chinese and English. Maximum length: 5000 characters.
|
input.negative_promptoptional | string | Optional negative prompt describing what should not appear in the video. Supports Chinese and English. Maximum length: 500 characters.
|
input.reference_imageoptional | array | Array of reference image URLs. At least one of `reference_image` or `reference_video` must be provided. The total number of images and videos cannot exceed 5.
|
input.reference_videooptional | array | Array of reference video URLs. At least one of `reference_image` or `reference_video` must be provided. The total number of images and videos cannot exceed 5.
|
input.first_frameoptional | string | First frame image URL. At most one image can be provided. If supplied, `aspect_ratio` is ignored and the output uses a ratio close to the first frame image. |
input.reference_voiceoptional | string | Audio URL used to specify the voice timbre of the subject in the reference material. Rules: - If `reference_video` contains audio and `reference_voice` is not provided, the original video audio is used by default - If both `reference_video` and `reference_voice` are provided, `reference_voice` takes priority Audio limits: - Formats: `wav`, `mp3` - Duration: `1` to `10` seconds - File size: up to `30MB` |
input.resolutionoptional | string | Output video resolution tier. Available values: `720p`, `1080p`. Default value: `1080p`. Values: Default: |
input.aspect_ratiooptional | string | Output video aspect ratio. Effective logic: - If `first_frame` is not provided: the video is generated using the specified `aspect_ratio` - If `first_frame` is provided: `aspect_ratio` is ignored and the output uses a ratio close to the first frame image Values: Default: |
input.durationoptional | integer | Output video duration in seconds. Valid range is an integer from `2` to `10`. Default value: `5`. Default:
|
input.prompt_extendoptional | boolean | Whether to enable prompt rewriting. When enabled, the model expands the input prompt. This usually works better for short prompts but increases processing time. Default: |
input.watermarkoptional | boolean | Whether to add a watermark. The watermark is placed in the lower-right corner of the video with the fixed text "AI generated". Default: |
input.seedoptional | integer | Random seed. Range: `0-2147483647`. If omitted, the system generates one automatically.
|
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-7-r2v",
"input": {
"prompt": "Image 1 is eating, while video 1 and image 2 are singing beside it.",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5
}
}'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. |
Wan 2.7 - Text to Video
/api/v1/jobs/createTaskModel IDs: wan/2-7-text-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name used for generation. This field is required. - This endpoint must use the `wan/2-7-text-to-video` model Values: Default: |
inputrequired | object | Input parameters for the text-to-video task. |
input.promptrequired | string | Positive prompt. Minimum length: 1 character. Maximum length: 5000 characters.
|
input.negative_promptoptional | string | Negative prompt. Maximum length: 500 characters.
|
input.audio_urloptional | string | Optional custom audio URL. |
input.resolutionoptional | string | Video resolution. - `720p`: 720p - `1080p`: 1080p Values: Default: |
input.ratiooptional | string | Video aspect ratio. - `16:9`: Landscape - `9:16`: Portrait - `1:1`: Square - `4:3`: Landscape 4:3 - `3:4`: Portrait 3:4 Values: Default: |
input.durationoptional | integer | Video duration in seconds. - Minimum: `2` - Maximum: `15` - Default: `5` Default:
|
input.prompt_extendoptional | boolean | Whether to enable intelligent prompt rewriting. Default value: `true`. Default: |
input.watermarkoptional | boolean | Whether to add an AI-generated watermark. Default value: `false`. Default: |
input.seedoptional | integer | Random seed. - Minimum: `0` - Maximum: `2147483647`
|
input.nsfw_checkeroptional | boolean | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
callBackUrloptional | string | Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent. |
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-7-text-to-video",
"input": {
"prompt": "Your prompt",
"resolution": "1080p",
"duration": 5
}
}'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. |
Wan 2.7 - Video Edit
/api/v1/jobs/createTaskModel IDs: wan/2-7-videoedit
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The model name used for generation. This field is required. This endpoint must use the `wan/2-7-videoedit` model. Values: Default: |
callBackUrloptional | string | Callback URL for task completion notifications. Optional parameter. If provided, the system will send a POST request to this URL when the task completes, whether it succeeds or fails. If omitted, no callback notification will be sent. |
inputrequired | object | Input parameters for the video editing task. |
input.promptoptional | string | Optional text prompt describing the expected elements and visual features in the generated video. Supports Chinese and English. Maximum length: 5000 characters.
|
input.negative_promptoptional | string | Optional negative prompt describing content that should not appear in the video. Supports Chinese and English. Maximum length: 500 characters.
|
input.video_urlrequired | string | URL of the source video to edit. Required. Only one video is supported. - Formats: `mp4`, `mov` - Duration: `2` to `10` seconds - Resolution: width and height range `[240,4096]` pixels - Aspect ratio: `1:8` to `8:1` - File size: up to `100MB` - Supports public `http/https` URLs or temporary `oss` URLs |
input.reference_imageoptional | string | Optional reference image URL for character, clothing, or style guidance. - Formats: `JPEG`, `JPG`, `PNG` (no alpha channel), `WEBP` - Resolution: width and height range `[240,8000]` pixels - Aspect ratio: `1:8` to `8:1` - Supports public `http/https` URLs or temporary `oss` URLs |
input.resolutionoptional | string | Output video resolution tier. `1080p` costs more than `720p`. Default value: `1080p`. - `720p`: 720p - `1080p`: 1080p Values: Default: |
input.aspect_ratiooptional | string | Output video aspect ratio. - If omitted: the output uses an aspect ratio close to the input video - If provided: the output uses the specified aspect ratio - Available values: `16:9`, `9:16`, `1:1`, `4:3`, `3:4` Values: |
input.durationoptional | integer | Output video duration in seconds. - Default `0` means using the full input video duration without truncation - If a value is provided, the output is clipped from second `0` to the specified length - Valid values are `0` or any integer in `[2,10]` Default:
|
input.audio_settingoptional | string | Video audio setting. - `auto`: default, the model decides whether to regenerate audio based on the `prompt` - `origin`: force keeping the original input video audio Values: Default: |
input.prompt_extendoptional | boolean | Whether to enable prompt rewriting. When enabled, the model expands the input prompt. This usually works better for short prompts but increases processing time. Default: |
input.watermarkoptional | boolean | Whether to add a watermark. The watermark is placed in the lower-right corner of the video with the fixed text "AI generated". Default: |
input.seedoptional | integer | Random seed. Range: `0-2147483647`. If omitted, the system generates one automatically.
|
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-7-videoedit",
"input": {
"prompt": "Change the character'\''s outfit and add the hat shown in the reference image.",
"video_url": "https://example.com/input.png",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 0
}
}'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. |
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.7 Video 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.7 video, videoedit, 1080p | 24 | per second | $0.24 |
| wan 2.7 video, videoedit, 720p | 16 | per second | $0.16 |
| wan 2.7 video, r2v, 1080p | 24 | per second | $0.24 |
| wan 2.7 video, r2v, 720p | 16 | per second | $0.16 |
| wan 2.7 video, image-to-video, 1080p | 24 | per second | $0.24 |
| wan 2.7 video, image-to-video, 720p | 16 | per second | $0.16 |
| wan 2.7 video, text-to-video, 1080p | 24 | per second | $0.24 |
| wan 2.7 video, text-to-video, 720p | 16 | per second | $0.16 |