seedinteger
Random seed for reproducible results. Set to -1 for random seed.
alibaba/happy-horse/image-to-videoAlibaba's #1-ranked Happy Horse 1.0 generates stunning 1080p videos with synchronized native audio and multilingual lip-sync, transforming text prompts or images into cinematic, true-to-life motion content for next-generation AIGC creation.
Coba model ini
PNG, JPEG, WebP, atau GIF · maksimum 20 MiB
Apa yang ingin Anda lakukan selanjutnya?
Pilih contoh untuk memuat input dan hasilnya ke playground.
{
"duration": 3,
"image": "https://static.sandbase.ai/examples/7c2cda62-fedf-4b96-85d4-46f905309272/input/10329729-dbe9-455b-8a28-d97fb57cb0c5.png",
"prompt": "The black cat slowly looks up",
"resolution": "720p"
}Preferensi manusia
Peringkat Elo dari voting buta berdampingan, dibandingkan dengan model gambar dan video lainnya.
Peringkat bersumber dari Artificial Analysis Arena
Arena gambar-ke-video (tanpa suara): pengguna memilih yang lebih baik dari dua klip yang dianimasikan dari gambar yang sama, tanpa melihat nama model; audio tidak dinilai.
Happy Horse 1.0 image-to-video: animate a picture over 3–15 seconds. prompt is optional; without it the model brings the scene to life on its own.
| Field | Type | Default | Notes |
|---|---|---|---|
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
prompt | string | Bring the scene in the image to life. | Optional direction for motion and camera. |
duration | 3–15 | 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.14 at 720p and $0.24 at 1080p, Alibaba's list price.
| Output | 720p | 1080p |
|---|---|---|
| 3s | $0.42 | $0.72 |
| 5s (default) | $0.70 | $1.20 |
| 10s | $1.40 | $2.40 |
| 15s | $2.10 | $3.60 |
Failed runs are not charged.
Other Happy Horse endpoints: alibaba/happy-horse/text-to-video, alibaba/happy-horse/reference-to-video, alibaba/happy-horse/video-edit, alibaba/happy-horse/1.1/image-to-video (newer).
Mulai membangun
Kirim model ini melalui SandBase Unified Run API.
# 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/happy-horse/image-to-video",
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
"prompt": "Bring the scene in the image to life.",
"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"Buat SandBase API key dan atur di environment server Anda. Semua permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key di server. Jangan tampilkan di kode browser atau commit ke repository.
POST ke /v1/run dengan ID model ini dan inputnya. Contoh permintaan di atas mencakup pengiriman dan polling.
Gunakan run ID yang dikembalikan untuk polling sampai status completed, failed, atau timeout. Baca output hanya setelah completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Kirim URL file yang dapat diakses publik di field image, video, atau audio model. Format dan batas yang didukung ditampilkan di samping setiap input Playground.
Gunakan kontrol upload atau replace pada field gambar yang didukung di Playground. Field URL video menerima video driving yang di-host; ini tidak berarti dukungan upload video.
seedintegerRandom seed for reproducible results. Set to -1 for random seed.
imagestringwajibThe URL of the source image to animate into a video.
promptstringOptional text prompt to guide the video generation.
Default: "Bring the scene in the image to life."
durationintegerThe duration of the generated video in seconds.
Default: 5
Nilai yang mungkin: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringThe resolution of the video to generate.
Default: "720p"
Nilai yang mungkin: "720p", "1080p"
{
"model": "alibaba/happy-horse/image-to-video",
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/wpimhv/rap.png",
"prompt": "Bring the scene in the image to life.",
"duration": 5,
"resolution": "720p"
}Run yang selesai menampilkan hasilnya di output. Berikut adalah contoh tersimpan model ini, bukan generasi baru.
[
{
"poster": "https://static.sandbase.ai/examples/posters/8bfe0ce48e7bfcdbd1e3.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/7c2cda62-fedf-4b96-85d4-46f905309272/output/a1e80424-3e01-4e8e-8175-0cac7651d468.mp4"
}
]