seedinteger
Random seed for reproducibility (0-2147483647).
alibaba/happy-horse/1.1/image-to-videoHappy Horse 1.1 by Alibaba - animate still images into dynamic videos with AI. Transform photos into cinematic clips with natural motion, camera movement, and optional audio generation.
Probar el modelo
PNG, JPEG, WebP o GIF · máximo 20 MiB
¿Qué le gustaría hacer después?
Seleccione un ejemplo para cargar sus entradas y el resultado en el playground.
{
"duration": 3,
"image": "https://static.sandbase.ai/examples/a73ed7f8-ca7d-4049-9722-d0434d557702/input/4b94aaa6-51ab-4e29-9068-274920cea45e.png",
"prompt": "The black cat slowly looks up",
"resolution": "720p"
}Preferencia humana
Puntuaciones Elo a partir de votos ciegos comparativos, en comparación con otros modelos de imagen y video.
Clasificaciones obtenidas de Artificial Analysis Arena
Arena de imagen a video (sin audio): las personas eligen el mejor de dos clips animados a partir de la misma imagen, sin ver los nombres de los modelos; no se evalúa el audio.
Animate a picture with Happy Horse 1.1. image becomes the first frame and the prompt directs the action and camera over 3–15 seconds.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Text instruction. |
image | image URL, required | — | First frame. JPEG, PNG, or WebP URL. |
resolution | 480p / 720p / 1080p | 720p | Sets the per-second rate. |
duration | 3–15 | 5 | Output length in seconds. |
seed | integer | random | Fix it to compare prompt changes. |
You pay for output seconds: $0.07 at 480p, $0.14 at 720p, and $0.18 at 1080p, Alibaba's list price.
| Output | 480p | 720p | 1080p |
|---|---|---|---|
| 3s | $0.21 | $0.42 | $0.54 |
| 5s (default) | $0.35 | $0.70 | $0.90 |
| 10s | $0.70 | $1.40 | $1.80 |
| 15s | $1.05 | $2.10 | $2.70 |
Failed runs are not charged.
Other Happy Horse endpoints: alibaba/happy-horse/1.1/text-to-video, alibaba/happy-horse/1.1/reference-to-video, alibaba/happy-horse/video-edit (edit an existing clip).
Empiece a construir
Envíe este modelo a través de la API de ejecución unificada de SandBase.
# 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/1.1/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"Cree una clave de API de SandBase y configúrela en el entorno de su servidor. Todas las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve la clave en el servidor. No la exponga en código del navegador ni la confirme en un repositorio.
Haga un POST a /v1/run con este ID de modelo y sus entradas. El ejemplo de solicitud anterior incluye el envío y el sondeo.
Use el ID de ejecución devuelto para sondear hasta que el estado sea completed, failed o timeout. Lea la salida solo después de completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Proporcione una URL de archivo accesible públicamente en el campo de imagen, video o audio del modelo. Los formatos y límites admitidos se muestran junto a cada entrada de Playground.
Use el control de subir o reemplazar en los campos de imagen admitidos en Playground. Los campos de URL de video aceptan un video de conducción alojado; no implican compatibilidad con la subida de video.
seedintegerRandom seed for reproducibility (0-2147483647).
imagestringrequeridoURL of the first frame image. Formats: JPEG, JPG, PNG, BMP, WEBP. Dimensions must be at least 300px. Aspect ratio must be between 1:2.5 and 2.5:1. Max 20 MB.
promptstringrequeridoOptional text prompt guiding the animation. Max 2500 characters.
durationintegerOutput video duration in seconds (3-15).
Valor predeterminado: 5
Valores posibles: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringOutput video resolution tier.
Valor predeterminado: "720p"
Valores posibles: "480p", "720p", "1080p"
{
"model": "alibaba/happy-horse/1.1/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"
}Una ejecución completada expone su resultado en la salida. Lo siguiente es el ejemplo guardado del modelo, no una nueva generación.
[
{
"poster": "https://static.sandbase.ai/examples/posters/7c8c853059539b5df645.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/a73ed7f8-ca7d-4049-9722-d0434d557702/output/a504361d-7843-47d6-89c6-ad2b5e369e5d.mp4"
}
]