WAN 2.7 Video Edit performs prompt-driven video editing with multi-image reference support, supporting 720p/1080p output. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.
Idle
$0.5per run·~20 / $10
Change the motorcycle's color to blue.
replace the main subject with a blonde woman
Wan 2.7 Video Edit performs prompt-driven editing on existing videos with optional multi-image reference support. Upload a source video, describe the desired edits in natural language, and optionally provide reference images to guide the target style or element appearance — the model applies precise, context-aware edits while preserving motion and temporal consistency throughout the clip.
Natural-language video editing Describe your edit in plain text — swap colors, change objects, alter styles — without manual masking or keyframing.
Multi-image reference support Upload 1 to 9 reference images to guide the target element, style, or appearance in the edited output.
Audio control Choose between auto mode (model decides) or origin to preserve the original audio track.
Negative prompt support Specify what to avoid in the edit for more precise control over the output.
Prompt expansion Enable enable_prompt_expansion to let the model automatically enrich and optimize your prompt before generation.
Resolution options Generate at 720p or 1080p to match your delivery requirements.
| Parameter | Required | Description |
|---|---|---|
| video | Yes | Source video to edit (URL or file upload). |
| prompt | Yes | Text description of the desired edits. |
| images | No | Reference images to guide editing (1–9 images). Click Add Item for more. |
| negative_prompt | No | Elements to exclude from the edited video. |
| resolution | No | Output resolution: 720p (default) or 1080p. |
| duration | No | Output duration in seconds. Default 0 = same as input video. Set 2–10 to trim from the start to the specified length. |
| audio_setting | No | Audio mode: auto (default, model decides) or origin (keep original audio). |
| enable_prompt_expansion | No | Enable automatic prompt optimization before generation. Default: off. |
| seed | No | Random seed for reproducible results. Use -1 for a random seed. |
| Duration | 720p | 1080p |
|---|---|---|
| 5s | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
Grab a WaveSpeedAI API key, then call POST https://api.wavespeed.ai/api/v3/alibaba/wan-2.7/video-edit with your input as JSON. The endpoint returns a prediction id; poll the prediction endpoint until status flips to completed, then read the output URL from data.outputs[0]. Examples for Wan 2.7 Video Edit below.
# Submit the prediction
curl -X POST "https://api.wavespeed.ai/api/v3/alibaba/wan-2.7/video-edit" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $WAVESPEED_API_KEY" \
-d '{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"video": "https://example.com/your-input.mp4",
"negative_prompt": "blurry, low quality, distorted",
"resolution": "720p",
"duration": 0,
"audio_setting": "auto",
"enable_prompt_expansion": false,
"seed": -1
}'
# Response includes a prediction id. Poll for the result:
curl -X GET "https://api.wavespeed.ai/api/v3/predictions/{request_id}/result" \
-H "Authorization: Bearer $WAVESPEED_API_KEY"
# When status is "completed", read the output from data.outputs[0].// npm install wavespeed
const WaveSpeed = require('wavespeed');
const client = new WaveSpeed(); // reads WAVESPEED_API_KEY from env
const result = await client.run("alibaba/wan-2.7/video-edit", {
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"video": "https://example.com/your-input.mp4",
"negative_prompt": "blurry, low quality, distorted",
"resolution": "720p",
"duration": 0,
"audio_setting": "auto",
"enable_prompt_expansion": false,
"seed": -1
});
console.log(result.outputs[0]); // → URL of the generated output# pip install wavespeed
import wavespeed
output = wavespeed.run(
"alibaba/wan-2.7/video-edit",
{
"prompt": "A cinematic shot of a city at sunset, soft golden light",
"video": "https://example.com/your-input.mp4",
"negative_prompt": "blurry, low quality, distorted",
"resolution": "720p",
"duration": 0,
"audio_setting": "auto",
"enable_prompt_expansion": false,
"seed": -1
}
)
print(output["outputs"][0]) # → URL of the generated outputWan 2.7 Video Edit is a Alibaba model for video editing, exposed as a REST API on WaveSpeedAI. WAN 2.7 Video Edit performs prompt-driven video editing with multi-image reference support, supporting 720p/1080p output. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing. You can call it programmatically or try it from the playground above.
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your WaveSpeedAI API key in the Authorization header. Submission returns a prediction ID; poll the prediction endpoint until status flips to "completed", then read the output URL from the result. The playground generates a ready-to-paste code sample in Python, JavaScript, or cURL for whatever inputs you've set. Full request/response shape is documented at https://wavespeed.ai/docs/docs-api/alibaba/alibaba-wan-2.7-video-edit.
Wan 2.7 Video Edit starts at $0.50 per run. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
Key inputs: `prompt`, `images`, `video`, `resolution`, `duration`, `seed`. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at https://wavespeed.ai/docs/docs-api/alibaba/alibaba-wan-2.7-video-edit.
Sign up for a free WaveSpeedAI account to claim starter credits, copy your API key from /accesskey, then call the endpoint shown in the API tab of the playground. The playground also auto-generates a code sample in Python, JavaScript, or cURL for the parameters you've set.
Commercial usage rights depend on the model's license, set by its provider (Alibaba). The license summary appears on the model card above; see WaveSpeedAI's Terms of Service for platform-level conditions.