Alibaba's Wan 2.7 Video Edit is a powerful multi-modal model designed for prompt-driven video modifications. By processing text prompts, a single source video, and up to three reference images, it effortlessly executes instruction-based editing, reference-guided modifications, and video transitions. The model outputs 30fps MP4 videos at either 720P or 1080P resolution, with customizable durations ranging from 2 to 10 seconds. Additionally, users can leverage negative prompts for precise control and choose to retain the original audio track or allow the model to auto-generate it.
Request
Authorization
Header Params
Body Params application/jsonRequired
Example
{"prompt":"Replace the characters in the video with the people in the images.","videoUrl":"https://www.runninghub.cn/view?filename=45a28fa9898ddf466d7c48eb49084fb6730a2e7649895901a348e06077a17cdb.mp4&type=input&subfolder=&Rh-Comfy-Auth=eyJ1c2VySWQiOiIzZjY1MTNlNWEwNjY1N2I4OGYyNjU5NTEzYmU3ZDM0YyIsInNpZ25FeHBpcmUiOjE3NzU4NDU4MzU5MTQsInRzIjoxNzc1MjQxMDM1OTE0LCJzaWduIjoiNWY1Yzc0ZjhiZDJhYTBhY2ZhNTQwYWZiMjlkOGNmZGEifQ==&Rh-Identify=3f6513e5a06657b88f2659513be7d34c&rand=0.6172405591285107","imageUrls":["https://www.runninghub.cn/view?filename=4cae116c2c03b14e3ac2122706c0216e4dfa31e98535437dfb750816120a1d5a.png&type=input&subfolder=&Rh-Comfy-Auth=eyJ1c2VySWQiOiIzZjY1MTNlNWEwNjY1N2I4OGYyNjU5NTEzYmU3ZDM0YyIsInNpZ25FeHBpcmUiOjE3NzU4NDE5NjY3NzMsInRzIjoxNzc1MjM3MTY2NzczLCJzaWduIjoiZGI2ZGRiYjY5YTFiNjkzMTE4NWQ5OGFjNDg1YTIwZjUifQ==&Rh-Identify=3f6513e5a06657b88f2659513be7d34c&rand=0.04397266787037413"],"resolution":"720P","duration":"0","aspectRatio":"16:9","promptExtend":true}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location'https://www.runninghub.ai/openapi/v2/alibaba/wan-2.7/video-edit' \
--header'Authorization: Bearer [Your API KEY]' \
--header'Content-Type: application/json' \
--data'{
"prompt": "Replace the characters in the video with the people in the images.",
"videoUrl": "https://www.runninghub.cn/view?filename=45a28fa9898ddf466d7c48eb49084fb6730a2e7649895901a348e06077a17cdb.mp4&type=input&subfolder=&Rh-Comfy-Auth=eyJ1c2VySWQiOiIzZjY1MTNlNWEwNjY1N2I4OGYyNjU5NTEzYmU3ZDM0YyIsInNpZ25FeHBpcmUiOjE3NzU4NDU4MzU5MTQsInRzIjoxNzc1MjQxMDM1OTE0LCJzaWduIjoiNWY1Yzc0ZjhiZDJhYTBhY2ZhNTQwYWZiMjlkOGNmZGEifQ==&Rh-Identify=3f6513e5a06657b88f2659513be7d34c&rand=0.6172405591285107",
"imageUrls": [
"https://www.runninghub.cn/view?filename=4cae116c2c03b14e3ac2122706c0216e4dfa31e98535437dfb750816120a1d5a.png&type=input&subfolder=&Rh-Comfy-Auth=eyJ1c2VySWQiOiIzZjY1MTNlNWEwNjY1N2I4OGYyNjU5NTEzYmU3ZDM0YyIsInNpZ25FeHBpcmUiOjE3NzU4NDE5NjY3NzMsInRzIjoxNzc1MjM3MTY2NzczLCJzaWduIjoiZGI2ZGRiYjY5YTFiNjkzMTE4NWQ5OGFjNDg1YTIwZjUifQ==&Rh-Identify=3f6513e5a06657b88f2659513be7d34c&rand=0.04397266787037413"
],
"resolution": "720P",
"duration": "0",
"aspectRatio": "16:9",
"promptExtend": true
}'