SandBase is live — $1 in free credits on signupStart free ›

Alibaba modelsvideo generation api

alibaba/wan/2.7/edit-video

Alibaba Wan 2.7 video editing model.

Input
The editing instruction describing what changes to make.
The URL of the input video to edit.

PNG, JPEG, WebP, or GIF · 20 MiB maximum each

Reference images to guide the video editing.
Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve original audio from input video. Allowed values: auto, origin.
Output video duration in seconds. 0 means match input video duration. When set (2-10), truncates from the start. Allowed values: 0, 2, 3, 4, 5, 6, 7, 8, 9, 10.
The resolution of the output video. Allowed values: 720p, 1080p.
Idle

Example output — click Run to generate your own

API README

Wan 2.7 Edit Video

Wan 2.7 Edit Video revises an existing video according to natural-language direction while accounting for motion and scene continuity. Instead of treating frames independently, it carries the requested transformation through the clip so style, objects, environment, and subject appearance remain connected over time.

Use it for cinematic restyling, wardrobe or object changes, background transformation, atmosphere shifts, and other revisions that would be difficult to reproduce manually across every frame. State what changes, what remains original, and how the new treatment should behave during movement and camera changes.

Highlights

  • Instruction-based video editing. Applies a written semantic or stylistic transformation to existing footage.
  • Cross-frame edit consistency. Keeps the revised appearance stable through motion, cuts, and changing viewpoints.
  • Source-motion preservation. Retains useful action and timing from the input while changing visual presentation.
  • Cinematic style transfer. Reinterprets a clip’s color, material, lighting, or artistic language as a coherent sequence.

Pricing

ConfigurationBilling unitPrice
0 seconds720p$0.000
0 seconds1080p$0.000
2 seconds720p$0.200
2 seconds1080p$0.300
3 seconds720p$0.300
3 seconds1080p$0.450
4 seconds720p$0.400
4 seconds1080p$0.600
5 seconds720p$0.500
5 seconds1080p$0.750
6 seconds720p$0.600
6 seconds1080p$0.900
7 seconds720p$0.700
7 seconds1080p$1.050
8 seconds720p$0.800
8 seconds1080p$1.200
9 seconds720p$0.900
9 seconds1080p$1.350
10 seconds720p$1.000
10 seconds1080p$1.500

When to Use

✅ Good fit❌ Consider alternatives
The project needs this exact video editing workflowThe intended task belongs to a different media route
Available source media matches every required fieldRequired assets or usage rights are unavailable
The brief can define subject, action, camera, and styleOutput must be deterministic at frame or pixel level
Supported duration, resolution, and framing fit deliveryFinal placement requires unsupported specifications
An asynchronous generation job fits productionA live or frame-synchronous response is mandatory

Prompt Guide

Describe the result as a shot or design brief: identify subjects and references, state the action or transformation, specify environment and composition, then add camera behavior, lighting, pacing, style, sound, and preservation constraints where relevant. Use exact reference identifiers exposed by the local schema.

{
  "duration": 5,
  "images": [
    "https://example.com/reference-1.png",
    "https://example.com/reference-2.png"
  ],
  "prompt": "",
  "resolution": "720p",
  "video": "https://example.com/source.mp4"
}

Technical Specs

SpecValue
Model IDalibaba/wan/2.7/edit-video
Input fieldsvideo (string)<br>images (array)<br>prompt (string)<br>duration (integer; 0, 2, 3, 4, 5, 6, 7, 8, 9, 10)<br>resolution (string; 720p, 1080p)<br>audio_setting (string; auto, origin)
Required inputprompt, video
Output fieldsurl, content_type
ExecutionAsynchronous job

Related Models

Related Models