alibaba/wan-2.7-video.
Model
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | No | "" | Text prompt describing the desired edit (max 5000 chars) |
negative_prompt | string | No | "" | What to avoid (max 500 chars) |
video_url | string | Yes | — | Video to edit (MP4/MOV, 2-10s, max 100MB) |
reference_image_urls | string[] | No | null | Up to 4 reference images for style/content transfer. Formats: JPEG, JPG, PNG, BMP, WEBP. Max 20MB each |
resolution | string | No | "1080P" | "720P" or "1080P" |
duration | integer | No | null | Output duration in seconds (2-10). Omit to keep input duration |
ratio | string | No | null | Force output aspect ratio: "16:9", "9:16", "1:1", "4:3", "3:4". Omit to match input video |
audio_setting | string | No | "auto" | "auto" (model decides based on prompt) or "origin" (keep original audio unchanged) |
prompt_extend | boolean | No | true | LLM-based prompt rewriting. Improves short prompts but adds latency |
watermark | boolean | No | false | Add “AI Generated” watermark in lower-right corner |
seed | integer | No | null | Random seed (0-2147483647) |
Example - Style Transfer
Example - With Reference Image
Input Limits
| Asset | Formats | Resolution | Duration | File Size |
|---|---|---|---|---|
| Input video | MP4, MOV | 240-4096px, ratio 1:8 to 8:1 | 2-10s | 100MB |
| Reference image | JPEG, JPG, PNG, BMP, WEBP | 240-8000px, ratio 1:8 to 8:1 | — | 20MB |
