Available now

Wan 2.7: video editing

By Alibaba

Wan 2.7 makes 2 to 15 second clips at 720p or 1080p from a prompt, a first and last frame, reference images or a clip to continue, and edits clips you upload.

Model ID
Maker
Alibaba

Model id

Use this in every request
wan/v2.7/edit-video

This model has other modes with their own ids: wan/v2.7/text-to-video, wan/v2.7/image-to-video, wan/v2.7/reference-to-video.

Run it

Quote the input, start the generation with the quote, then poll the job. Set RAYWAKE_API_KEY first; see Authentication.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/v2.7/edit-video",
  "input": {
    "prompt": "Restyle the clip as a hand-drawn watercolor animation. Keep the camera move and the dancer'\''s steps exactly as they are.",
    "video_url": "https://example.com/input.mp4"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "wan/v2.7/edit-video", "quote_id": "QUOTE_ID", "input": {"prompt":"Restyle the clip as a hand-drawn watercolor animation. Keep the camera move and the dancer'\''s steps exactly as they are.","video_url":"https://example.com/input.mp4"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Input

Input fields for wan/v2.7/edit-video
NameTypeDescription
promptrequiredstring
Editing instruction or style transfer description.
video_urlrequiredstring (URL)
URL of the input video to edit. Format: MP4, MOV. Duration: 2-10s. Max 100 MB. Max file size: 100.0MB, Min duration: 2s, Max duration: 10s, Timeout: 30.0s
reference_image_urlstring (image URL)
Reference image URL for reference-based editing.
resolutionstring (enum)
Output video resolution tier.

Default: 1080p

One of: 720p, 1080p

aspect_ratiostring (enum)
Aspect ratio of the generated video. If not provided, uses the aspect ratio of the input video.

One of: 16:9, 9:16, 1:1, 4:3, 3:4

durationnumber (enum)
Output video duration in seconds. Default 0 means match input video duration. When set (2-10), truncates from the start.

Default: 5

One of: 2, 3, 4, 5, 6, 7, 8, 9, 10

audio_settingstring (enum)
Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve original audio from input video.

Default: auto

One of: auto, origin

seedinteger
Random seed for reproducibility (0-2147483647).

Output

A succeeded job lists its results under outputs, stored on our side. See Jobs for every field.

Job excerpt
"outputs": [
  { "type": "video", "url": "https://…", "mime_type": "video/mp4", "thumbnail_url": "https://…" }
]

Pricing

  • 720p$0.1585/ second
  • 1080p$0.2377/ second

The exact charge for your input comes from a quote. How charges settle

API docs

About this model

Overview

Wan 2.7 renders 2 to 15 seconds in 16:9, 9:16, 1:1, 4:3 or 3:4. Upload a WAV or MP3 to drive the clip; without one, text clips get background music made to match.

The image mode starts from a first frame, can end on a last frame, or continues a video clip of 2 to 10 seconds instead. The reference mode builds a 2 to 10 second scene around the people and objects in your images; the edit mode restyles or changes a clip of 2 to 10 seconds and can keep its sound. A negative prompt keeps things out.

What you can build

  • Clips cut to your own song or voice-over
  • A second part for a clip you already have
  • A move from a first frame to a last frame you choose
  • Short scenes with matching background music
  • A clip you already have, restyled or changed by a written instruction

Prompting tips

  • Upload your audio when the motion should follow its beat or speech; keep it within 30 seconds.
  • To continue a clip, describe what happens next, not the scene you already have.
  • Turn prompt rewriting off when the model must follow your exact words.
  • In the edit mode, add a reference image to show the look or object you want, and choose whether the clip keeps its own sound.

What to check

Check motion continuity, the ending transition and sound alignment across the clip.

Inputs

  • Prompt (required): Editing instruction or style transfer description.
  • Video (required): URL of the input video to edit. Format: MP4, MOV. Duration: 2-10s. Max 100 MB. Max file size: 100.0MB, Min duration: 2s, Max duration: 10s, Timeout: 30.0s.
  • Reference Image (optional): Reference image URL for reference-based editing.
  • Resolution (optional): Output video resolution tier. Options: 720p, 1080p.
  • Aspect Ratio (optional): Aspect ratio of the generated video. If not provided, uses the aspect ratio of the input video. Options: 16:9, 9:16, 1:1, 4:3, 3:4.
  • Duration (optional): Output video duration in seconds. Default 0 means match input video duration. When set (2-10), truncates from the start. Options: 2, 3, 4, 5, 6, 7, 8, 9, 10.
  • Audio Setting (optional): Audio handling. 'auto': model decides whether to regenerate audio. 'origin': preserve original audio from input video. Options: auto, origin.
  • Seed (optional): Random seed for reproducibility (0-2147483647).

Output and limits

  • Length: 2 seconds to 10 seconds.
  • Resolutions: 720p, 1080p.
  • Aspect ratios: 16:9, 9:16, 1:1, 4:3, 3:4.
  • Readable text inside the video, especially small text, is unreliable.
  • Scenes with several interacting characters can lose consistency.
  • Longer clips can show more motion drift or scene changes.
  • Low-quality inputs cause glitches: heavy compression, collages, screenshots and text overlays.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • 720p: $0.1585 / second
  • 1080p: $0.2377 / second
  • The total for your settings is rounded up to the next cent.