seedinteger
Random seed for reproducible results. Set to -1 for random seed.
alibaba/happy-horse/text-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.
Try the model
Customize your input with more control.
What would you like to do next?
Select an example to load its inputs and result into the playground.
{
"duration": 3,
"prompt": "A red paper boat floating on a calm lake",
"resolution": "720p"
}Human preference
Elo ratings from blind side-by-side votes, compared with other image and video models.
Rankings sourced from Artificial Analysis Arena
Text-to-video arena (silent): people pick the better of two clips from the same prompt, without seeing the model names; audio is not judged.
Happy Horse 1.0 text-to-video: a 3–15 second cinematic clip from a written script. Version 1.1 is newer and cheaper at 1080p.
| Field | Type | Default | Notes |
|---|---|---|---|
prompt | string, required | — | Up to 50,000 characters. Shot-by-shot scripts with timings work well. |
duration | 3–15 | 5 | Output length in seconds. |
aspect_ratio | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 | 16:9 | Output frame shape. |
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/image-to-video, alibaba/happy-horse/reference-to-video, alibaba/happy-horse/video-edit, alibaba/happy-horse/1.1/text-to-video (newer).
Start building
Submit this model through the 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/text-to-video",
"prompt": "Shot 3 (over the shoulder, 3.5-5s): The camera glides slowly over his shoulder down onto the open book, his thumb gently turning a single page, soft window light falling across the paper, shallow depth of field on his hand.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}
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"Create a SandBase API key and set it in your server environment. All requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep the key on your server. Do not expose it in browser code or commit it to a repository.
POST to /v1/run with this model ID and its inputs. The request example above includes submission and polling.
Use the returned run ID to poll until the status is completed, failed or timeout. Read output only after completed.
curl "https://api.sandbase.ai/v1/run/$RUN_ID" \
-H "Authorization: Bearer $SANDBASE_API_KEY"Pass a publicly accessible file URL in the model’s image, video or audio field. Supported formats and limits are shown beside each Playground input.
Use the upload or replace control on supported image fields in the Playground. Video URL fields accept a hosted driving video; they do not imply video-upload support.
seedintegerRandom seed for reproducible results. Set to -1 for random seed.
promptstringrequiredThe text prompt to generate a video from.
Default: "Shot 3 (over the shoulder, 3.5-5s): The camera glides slowly over his shoulder down onto the open book, his thumb gently turning a single page, soft window light falling across the paper, shallow depth of field on his hand."
durationintegerThe duration of the generated video in seconds.
Default: 5
Possible values: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
resolutionstringThe resolution of the video to generate.
Default: "720p"
Possible values: "720p", "1080p"
aspect_ratiostringThe aspect ratio of the generated video.
Default: "16:9"
Possible values: "16:9", "9:16", "1:1", "4:3", "3:4"
{
"model": "alibaba/happy-horse/text-to-video",
"prompt": "Shot 3 (over the shoulder, 3.5-5s): The camera glides slowly over his shoulder down onto the open book, his thumb gently turning a single page, soft window light falling across the paper, shallow depth of field on his hand.",
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}A completed run exposes its result in output. The following is the model’s saved example, not a new generation.
[
{
"poster": "https://static.sandbase.ai/examples/posters/5398ad03bb8ea1c27ebd.jpg",
"source": "Self organization completed prediction",
"source_url": "https://www.sandbase.ai",
"url": "https://static.sandbase.ai/examples/6955e411-584a-488a-ad74-43105ae8e39d/output/45f6a073-616b-4e1c-b1b7-f2cfe721c4ae.mp4"
}
]