seedinteger
Random seed (0-2147483647) for reproducible results. Omit for a random seed.
alibaba/wan/2.6/image-to-videoAlibaba Wan 2.6 image-to-video model transforming still images into video. Supports first-frame-to-video only.
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.
{
"audio": "https://static.sandbase.ai/examples/5b422d5a-e1be-4e4b-95cb-8f7b4e17e17b/input/cb1853ea-67d2-4a97-b2b4-1b93b5f24d73.mp3",
"image": "https://static.sandbase.ai/examples/5b422d5a-e1be-4e4b-95cb-8f7b4e17e17b/input/80632427-d7b9-441c-b64d-6cc247f55788.webp",
"prompt": "An urban fantasy art scene. A dynamic graffiti art character. A boy made of spray paint comes to life from a concrete wall. He raps an English song at a very fast pace, striking a classic, energetic rapper pose. The scene is set at night under an urban railway bridge. The lighting comes from a single street lamp, creating a cinematic atmosphere, full of high energy and amazing detail. The audio part of the video consists entirely of rap, with no other dialogue or background noise."
}{
"image": "https://static.sandbase.ai/examples/68cb3b57-8548-4e28-9213-bb44cb1d84ec/input/21ea14f1-7538-4956-ac9e-b501fb81b424.webp",
"prompt": "The camera slowly moves up from below the turtle, which swims gracefully, its belly details clearly visible."
}Animate a picture into a 5 or 10 second clip. image becomes the first frame and the prompt says what moves; an optional audio track can drive speech or rhythm.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
audio | audio URL | — | Optional WAV/MP3 URL that drives speech or rhythm. |
duration | 5 / 10 | 5 | Output length in seconds. |
resolution | 720p / 1080p | 720p | Sets the per-second rate. |
seed | integer | random | Fix it to compare prompt changes. |
You pay for output seconds: $0.10 at 720p and $0.15 at 1080p, Alibaba's list price. Input images and audio are not metered.
| Output | 720p | 1080p |
|---|---|---|
| 5s (default) | $0.50 | $0.75 |
| 10s | $1.00 | $1.50 |
Failed runs are not charged.
Other Wan 2.6 endpoints: alibaba/wan/2.6/text-to-video, alibaba/wan/2.6/reference-to-video, alibaba/wan/2.6/flash/image-to-video, alibaba/wan/2.6/flash/reference-to-video, alibaba/wan/2.6/text-to-image, alibaba/wan/2.6/image-to-image, alibaba/wan/2.7/text-to-video (newer).
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.6/image-to-video",
"image": "https://static.sandbase.ai/samples/image-to-video/i2v-black-cat-sky-img0.png",
"prompt": "Realistic style, a small black cat curiously gazes up at the sky. The camera gradually rises from eye level, ending with an overhead angle capturing its curious eyes.",
"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.
audiostringThe URL of an audio file to guide video generation.
imagestringzorunluThe URL of the starting image for video generation (first-frame-to-video only).
promptstringzorunluThe text prompt to generate a video from.
Varsayılan: "Realistic style, a small black cat curiously gazes up at the sky. The camera gradually rises from eye level, ending with an overhead angle capturing its curious eyes."
durationintegerThe duration of the generated video in seconds. Valid values are 5 and 10.
Varsayılan: 5
Olası değerler: 5, 10
resolutionstringThe resolution of the video to generate.
Varsayılan: "720p"
Olası değerler: "720p", "1080p"
{
"model": "alibaba/wan/2.6/image-to-video",
"image": "https://static.sandbase.ai/samples/image-to-video/i2v-black-cat-sky-img0.png",
"prompt": "Realistic style, a small black cat curiously gazes up at the sky. The camera gradually rises from eye level, ending with an overhead angle capturing its curious eyes.",
"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/f831541111ef147b7384.jpg",
"source": "Alibaba Cloud",
"source_url": "https://www.alibabacloud.com/help/en/model-studio/image-to-video-guide",
"url": "https://static.sandbase.ai/examples/5b422d5a-e1be-4e4b-95cb-8f7b4e17e17b/output/a8d0a003-63d1-4360-927e-b7c5270ce37c.mp4"
}
]