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

Wan 2.7 Video Extend

alibaba/wan/2.7/video-extend

Alibaba Wan 2.7 Video Extend continues an input clip from a text instruction, optionally ending on a chosen last frame, for a total length of up to 15 seconds.

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

Try the model

Playground

Open playground
Input
What happens after the source clip ends: action, camera movement, scene progression, and sound. Up to 5,000 characters.
URL of the source clip to continue (MP4 or MOV, 2-10 seconds, 240-4096px per side, up to 100MB).

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

Optional last frame the continuation should end on (JPEG, PNG, BMP, or WebP; 240-8000px per side, up to 20MB).
Total length of the output in seconds, including the source clip (2-15). For a 3-second source and duration 10, the model adds 7 seconds. Must be longer than the source clip. Allowed values: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15.
The resolution of the video to generate. Allowed values: 720p, 1080p.
Random seed (0-2147483647) for reproducible results. Omit for a random seed. Range: 0 to 2147483647.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Specifications

Pricing

Base price
$0.50 / run
Billing formula
(params.duration ?? 5) * ((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-extend
Execution
async
API
Unified Run API
Endpoint
/v1/run

API README

Wan 2.7 Video Extend

Continue a short clip past its last frame. Wan 2.7 keeps the subject, look, and camera language of the source and generates what you describe next; add a last frame to steer where the shot ends. The result is one video that contains the source clip followed by the continuation.

Fields

FieldTypeDefaultNotes
promptstring, required—What happens next. Up to 5,000 characters.
videovideo URL, required—Source clip. MP4/MOV, 2–10s, 240–4096px per side, ≤100MB.
end_imageimage URL—Optional last frame for the continuation.
duration2–155Total output length including the source clip. Must be longer than the source.
resolution720p / 1080p720pOutput tier; the aspect ratio follows the source clip.
seedinteger 0–2147483647randomFix it to compare prompt changes.

Billing

Billed on the total output length (duration), which includes the source clip: $0.10 per second at 720p and $0.15 at 1080p. A 3-second source with duration: 10 returns 10 seconds of video (3 source + 7 new) and bills 10 seconds.

Total output720p1080p
5s$0.50$0.75
10s$1.00$1.50
15s$1.50$2.25

Failed runs are not charged. Output files are copied to SandBase storage and the returned URL stays valid for 7 days; download anything you need to keep.

Prompting

  • Describe the next beat rather than the source: “she picks up her backpack and walks out of frame”.
  • Mention the subject and direction of movement again when continuity matters.
  • Use end_image to land on a specific final composition.

Limits

  • The source clip must be 2–10 seconds; duration caps the whole output at 15 seconds.
  • Audio cannot be supplied for continuation; use image-to-video for audio-driven generation.
  • To change existing footage instead of continuing it, use alibaba/wan/2.7/video-edit.

Also on SandBase

Other Wan 2.7 endpoints: alibaba/wan/2.7/text-to-video, alibaba/wan/2.7/image-to-video, alibaba/wan/2.7/reference-to-video, alibaba/wan/2.7/video-edit. Newer: alibaba/wan/3.0/video-extend.

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-extend
# 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-extend",
  "video": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20260129/hfugmr/wan-r2v-role1.mp4",
  "prompt": "A girl takes a selfie in the mirror, then picks up her backpack and walks out of the room.",
  "duration": 5,
  "resolution": "720p"
}
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