Wan2.7
Wan2.7-VideoEdit Video Editing
- Alibaba Cloud Wanxiang 2.7 video editing model
- AI editing based on existing videos: style transfer, content replacement, element addition
- Optionally accepts reference images to specify target style or appearance
- Supports keeping the original video duration or customizing the output duration
POST
Documentation Index
Fetch the complete documentation index at: https://gccai.heqingsong.uk/llms.txt
Use this file to discover all available pages before exploring further.
Authorization
All API endpoints require Bearer Token authenticationGet your API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Request Parameters
Video generation model name, fixed as
wan2.7-videoeditSource video URL array for editing
Video constraints:
- Format: mp4, mov
- Duration: 2–10s
- Resolution: width and height in the range [240, 4096] pixels
- Aspect ratio: 1:8 – 8:1
- File size: up to 100MB
Editing instruction describing the desired changes, up to 5000 charactersExample:
If omitted, the model performs a default style transfer
"Change the character's outfit to a red gown", "Replace the background with a snowy mountain scene"Negative prompt describing unwanted content, up to 500 characters
Reference image URL array, up to 4 imagesUsed to specify the target style or appearance (e.g., reference style for style transfer)
Output video resolutionOptions:
720P- Standard1080P- High definition (default)
Output video duration (seconds)
0(default): keep the full original video duration- Integer between
2-10: take the specified duration from the start
When
duration=0, billing is based on the actual duration of the output videoThe specified duration cannot exceed the duration of the original video_urls videoOutput aspect ratioSupported formats:
16:9- Landscape widescreen9:16- Portrait1:1- Square4:3- Landscape3:4- Portrait
If omitted, the aspect ratio matches the input video
Whether to enable intelligent prompt rewritingSignificantly improves results for short prompts, but increases processing timeDefault:
trueWhether to add “AI Generated” watermark to the generated video
true: add watermarkfalse: no watermark (default)
Seed integer used to control the randomness of generated contentValue range: integer
≥0- For identical requests, the model generates different results when receiving different seed values (e.g., omitting seed)
- For identical requests, the model generates similar results when receiving the same seed value, but exact consistency is not guaranteed
Additional parameter object
Response
Response status code, 200 on success
Response data array
Use Cases
Case 1: Basic Video Editing (Simplest)
Case 2: Style Transfer (With Reference Image)
Case 3: Keep Original Video Audio
Suitable for videos with important background sound or dialogue:Case 4: Full Parameters
Audio Handling
| audio_setting | Description | Suitable Scenarios |
|---|---|---|
auto (default) | AI regenerates matching audio based on the edited video content | Major visual style changes where you want audio to update accordingly |
origin | Force keep the original video audio track | Videos with important background music or dialogue |
Query Task ResultsVideo generation is an async task that returns a
task_id upon submission. Use the Get Task Status endpoint to query generation progress and results.