v1
latestOpenAPI 3.1.0MIT2026-07-2614271305.9 KBVideo Generation
wan2.7-video-edit API
- WAN2.7 (wan2.7-video-edit) model supports video editing for instruction-based editing and video transfer tasks
- Required: upload exactly 1 video (video_urls); optionally upload up to 4 reference images (image_urls)
- Two usage patterns:
- Instruction-only editing: provide video_urls + prompt (e.g. style change, replacing clothing)
- Instruction + reference images: provide video_urls + image_urls + prompt (e.g. region replacement using elements from reference images)
- Audio handling: controlled via keep_original_sound (true keeps original audio; false lets the model handle audio intelligently)
- Asynchronous processing mode, use the returned task ID to query status
- Generated video links are valid for 24 hours, please save them promptly
- Billing: charged based on "input video duration + output video duration"; only successful generations are billed, failed tasks are free
post/v1/videos/generations
Request body
Example request
{
"model": "wan2.7-video-edit",
"prompt": "Dress the character in flashy clothes and put on the hat from the reference image",
"negative_prompt": "Blurry, low quality",
"video_urls": [
"https://example.com/source.mp4"
],
"image_urls": [
"https://example.com/ref.jpg"
],
"keep_original_sound": true,
"quality": "720p",
"aspect_ratio": "16:9",
"seed": 42,
"callback_url": "https://your-domain.com/webhooks/video-task-completed"
}Response
Video task created successfully
Example response
{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "wan2.7-video-edit",
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 120
},
"type": "video",
"usage": {
"billing_rule": "per_call",
"credits_reserved": 5,
"user_group": "default"
}
}