API Free WeekHundreds of APIs are free to call this week.Browse free APIs

Wan 2.7 Video Edit

alibaba/wan/2.7/video-edit

Alibaba Wan 2.7 video editing model.

Base price
$0.50USD / run
Execution
async
Model type
video
Input fields
6

Try the model

Playground

Open playground
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.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Specifications

Pricing

Base price
$0.50 / run
Billing formula
((params.duration ?? 0) > 0 ? params.duration : Math.ceil(usage.duration ?? 5.0)) * ((params.resolution ?? "720p") == "1080p" ? 0.15 : 0.10)

Context & modalities

Input
Schema-defined
Output
video

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
Alibaba
Model ID
alibaba/wan/2.7/video-edit
Execution
async
API
Unified Run API
Endpoint
/v1/run

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

ResolutionPrice
720p, per second of output$0.10
1080p, per second of output$0.15
duration=0 (match input)Billed on the output video length (rounded up); 5s if unavailable
Default (720p, 5s)$0.50

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/video-edit
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

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
alibaba/wan/2.7/video-edit
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "alibaba/wan/2.7/video-edit",
  "duration": 0,
  "resolution": "720p",
  "audio_setting": "auto"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
AlibabaVideo$0.50 / runOct 5, 2026
AlibabaVideo—Oct 5, 2026
AlibabaVideo—Oct 4, 2026
AlibabaVideo—Oct 4, 2026
AlibabaVideo—Oct 4, 2026
AlibabaVideo—Oct 4, 2026