seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed.
Minimum: 0
Maksimum: 2147483647
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.
Modeli deneyin
PNG, JPEG, WebP veya GIF · en fazla 20 MiB
Sırada ne yapmak istersiniz?
Bir örnek seçerek girdilerini ve sonucunu playground'a yükleyin.
{
"prompt": "The baker brings over the glazed bread, sets the brush aside, and the camera follows him to the oven at the back to bake it. The baker closes the oven door, stands beside it watching the bread, smells the aroma, and says, \"so good\".",
"video": "https://static.sandbase.ai/examples/e1e1d989-70de-4368-b8d6-3a0919be90be/input/3627aff0-af0f-4067-813d-02de847a28b4.mp4"
}{
"duration": 10,
"end_image": "https://static.sandbase.ai/examples/6f0aa006-092a-4928-81a6-8dcc540a5f94/input/e647b006-fde3-461d-a97d-a712a7795369.webp",
"prompt": "The man looks down at the wooden box on the ground. He bends over, carefully opens the lid, and stares at the contents. His lips tremble and part slightly, his brow furrows, and his eyes widen with a horrified expression.",
"video": "https://static.sandbase.ai/examples/6f0aa006-092a-4928-81a6-8dcc540a5f94/input/7e501c4f-2478-49c6-8697-64d8c44400a7.mp4"
}Continue an existing clip. Wan 2.7 picks up from the last frame of video and generates new footage that follows your prompt; add end_image to say where the continuation should land.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 5,000 characters. |
video | video URL, required | — | Clip to continue. |
end_image | image URL | — | Optional frame the new footage should end on. |
duration | 2–15 | 5 | Length of the new footage in seconds. |
resolution | 720p / 1080p | 720p | Sets the per-second rate. |
seed | integer 0–2147483647 | random | Fix it to compare prompt changes. |
You pay for output seconds: $0.10 at 720p and $0.15 at 1080p, the same as Alibaba's list price. Only the new footage is billed.
| New footage | 720p | 1080p |
|---|---|---|
| 2s | $0.20 | $0.30 |
| 5s (default) | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
| 15s | $1.50 | $2.25 |
Failed runs are not charged.
end_image when the shot must finish on a specific composition.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, alibaba/wan/3.0/video (newer, up to 30s).
Geliştirmeye başlayın
Bu modeli SandBase Unified Run API üzerinden gönderin.
# 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"Bir SandBase API anahtarı oluşturun ve sunucu ortamınıza ayarlayın. Tüm istekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın veya bir depoya commit etmeyin.
Bu model kimliği ve girdileriyle /v1/run adresine POST gönderin. Yukarıdaki istek örneği gönderme ve yoklamayı içerir.
Durum completed, failed veya timeout olana kadar verilen run ID ile yoklama yapın. Çıktıyı yalnızca completed olduktan sonra okuyun.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Modelin image, video veya audio alanına herkese açık erişilebilir bir dosya URL'si verin. Desteklenen formatlar ve sınırlar her Playground girişinin yanında gösterilir.
Playground'daki desteklenen image alanlarında yükleme veya değiştirme kontrolünü kullanın. Video URL alanları barındırılan bir sürüş videosu kabul eder; video yükleme desteği anlamına gelmez.
seedintegerRandom seed (0-2147483647) for reproducible results. Omit for a random seed.
Minimum: 0
Maksimum: 2147483647
videostringzorunluURL of the source clip to continue (MP4 or MOV, 2-10 seconds, 240-4096px per side, up to 100MB).
promptstringzorunluWhat happens after the source clip ends: action, camera movement, scene progression, and sound. Up to 5,000 characters.
durationintegerTotal 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.
Varsayılan: 5
Olası değerler: 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
end_imagestringOptional last frame the continuation should end on (JPEG, PNG, BMP, or WebP; 240-8000px per side, up to 20MB).
resolutionstringThe resolution of the video to generate.
Varsayılan: "720p"
Olası değerler: "720p", "1080p"
{
"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"
}Tamamlanan bir run, sonucunu output içinde gösterir. Aşağıdaki, modelin kaydedilmiş örneğidir; yeni bir üretim değildir.
[
{
"poster": "https://static.sandbase.ai/examples/posters/7dd835e57bac8c025b9d.jpg",
"source": "Alibaba Cloud",
"source_url": "https://www.alibabacloud.com/help/en/model-studio/wan-image-to-video-guide",
"url": "https://static.sandbase.ai/examples/e1e1d989-70de-4368-b8d6-3a0919be90be/output/99a0b1f2-d458-425e-8666-39b03bf9cc58.mp4"
}
]