WAN 2.7 - Edit video
Edit an existing video using WAN 2.7. Transform video content with text instructions, apply visual references, or transfer artistic styles.
Three editing modes:
- Instruction-based editing: Provide
promptwith editing instructions (e.g., “change the sky to sunset”) - Reference-image editing: Provide
promptandimage_urlsto apply visual references to the video - Style transfer: Provide
promptandimage_urlswith style reference images to transfer artistic styles
Key features:
- 720P and 1080P resolution support
- Up to 3 reference images for editing or style transfer
- Set
durationto0to preserve the full input video duration - Configurable audio handling: auto-generate or preserve original
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
Edit an existing video using WAN 2.7. Supports three modes:
- Instruction-based editing: provide
promptwith editing instructions (e.g., "change the sky to sunset") - Reference-image editing: provide
promptandimage_urlsto apply visual references to the video - Style transfer: provide
promptandimage_urlswith style reference images to transfer artistic styles
URL of the input video to edit. Must be publicly accessible.
Supported formats: MP4, MOV Duration: 2-10 seconds Dimensions: 240-4096px per side, aspect ratio between 1:8 and 8:1 Maximum file size: 100MB
"https://example.com/input-video.mp4"
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Editing instructions describing the desired changes. For reference-image or style-transfer modes, describe how the reference images should be applied.
5000"Change the background to a futuristic cityscape with neon lights"
Elements to avoid in the edited video.
500"watermark, text, distortion, blurry"
Reference images for editing or style transfer. Up to 3 images.
Supported formats: JPEG, PNG, BMP, WEBP Dimensions: 240-8000px per side Maximum file size: 20MB each
3Output video aspect ratio for editing. If not specified, the aspect ratio of the input video is preserved.
16:9: Landscape (widescreen)9:16: Portrait (vertical, mobile-optimized)1:1: Square4:3: Standard landscape3:4: Standard portrait
16:9, 9:16, 1:1, 4:3, 3:4 Output video resolution:
720P: 720p HD (1280x720)1080P: 1080p Full HD (1920x1080)
720P, 1080P Duration of the output video in seconds. Set to 0 to preserve the full duration of the input video.
0 <= x <= 100
Random seed for reproducible generation. Use the same seed with identical parameters to reproduce results. Leave unset for random seed.
0 <= x <= 214748364712345
Additional settings for video editing.
Response
OK - The task exists and the status is returned