Wan 2.7 Video Extend
alibaba/wan/2.7/video-extendAlibaba 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
PNG, JPEG, WebP, or GIF · 20 MiB maximum
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
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | What happens next. Up to 5,000 characters. |
video | video URL, required | — | Source clip. MP4/MOV, 2–10s, 240–4096px per side, ≤100MB. |
end_image | image URL | — | Optional last frame for the continuation. |
duration | 2–15 | 5 | Total output length including the source clip. Must be longer than the source. |
resolution | 720p / 1080p | 720p | Output tier; the aspect ratio follows the source clip. |
seed | integer 0–2147483647 | random | Fix 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 output | 720p | 1080p |
|---|---|---|
| 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_imageto land on a specific final composition.
Limits
- The source clip must be 2–10 seconds;
durationcaps 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.
# 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
| Model | Type | Default price | Released |
|---|---|---|---|
Wan 2.7 Video ExtendThis model Alibaba | Video | $0.50 / run | Oct 5, 2026 |
Alibaba | Video | — | Oct 5, 2026 |
Alibaba | Video | — | Oct 4, 2026 |
Alibaba | Video | — | Oct 4, 2026 |
Alibaba | Video | — | Oct 4, 2026 |
Alibaba | Video | — | Oct 4, 2026 |
