video_urls); optionally upload up to 4 reference images (image_urls)video_urls + prompt (e.g. style change, replacing clothing)video_urls + image_urls + prompt (e.g. region replacement using elements from reference images)keep_original_sound (true keeps original audio; false lets the model handle audio intelligently)Documentation Index
Fetch the complete documentation index at: https://docs.evolink.ai/llms.txt
Use this file to discover all available pages before exploring further.
Get your API Key:
Visit the API Key management page to obtain your API Key
Add to request headers:
Authorization: Bearer YOUR_API_KEYModel name, must be wan2.7-video-edit
wan2.7-video-edit "wan2.7-video-edit"
Source video URL array. Exactly 1 video is required
Video limits:
2 ~ 10 seconds[240, 4096] pixels100MB1 element["https://example.com/source.mp4"]Text prompt describing the desired editing effect. Supports Chinese and English; each character/letter counts as 1, with overflow auto-truncated. Maximum length 5000 characters
5000"Dress the character in flashy clothes and put on the hat from the reference image"
Negative prompt describing what should not appear in the video. Supports both Chinese and English. Maximum length 500 characters; overflow is auto-truncated
500"Blurry, low quality"
Reference image URL array, up to 4 images. Used for the "instruction + reference image" pattern, e.g. replacing clothing or props with elements from a reference image
Image limits:
[240, 8000] pixels20MB4["https://example.com/ref.jpg"]Audio handling for the edited video. Default: false
false: Smart mode. The model decides based on prompt content — if the prompt mentions audio elements, it may regenerate audio; otherwise it may preserve the original audio of the input videotrue: Force-preserve the original audio of the input video; do not regeneratetrue
Video quality, defaults to 720p
Options:
720p: Standard definition, standard price, this is the default1080p: High definition, higher price720p, 1080p "720p"
Video aspect ratio (optional)
Behavior:
aspect_ratioOutput resolution per quality tier:
| Quality | 16:9 | 9:16 | 1:1 | 4:3 | 3:4 |
|---|---|---|---|---|---|
| 720p | 1280×720 | 720×1280 | 960×960 | 1104×832 | 832×1104 |
| 1080p | 1920×1080 | 1080×1920 | 1440×1440 | 1648×1248 | 1248×1648 |
16:9, 9:16, 1:1, 4:3, 3:4 "16:9"
Video duration in seconds
Rules:
0: keep the input video duration; no truncation (only set this field when you want to truncate the input video)2 ~ 10: the system truncates the input video starting at 0s up to the specified duration0 <= x <= 100
Random seed, defaults to random
Notes:
1 ~ 21474836471 <= x <= 214748364742
Whether to enable intelligent prompt rewriting. When enabled, a large model will optimize the prompt, which significantly improves results for simple or insufficiently descriptive prompts.
Note: Default is false. Omitting the field or sending false will not trigger rewriting; explicitly send true to enable.
false
HTTPS callback URL for task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries after failure (retries at 1/2/4 seconds after failure)"https://your-domain.com/webhooks/video-task-completed"
Video task created successfully
Task creation timestamp
1757169743
Task ID
"task-unified-1757169743-7cvnl5zw"
Actual model name used
"wan2.7-video-edit"
Specific task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Detailed video task information
Task output type
text, image, audio, video "video"
Usage and billing information