alibaba/happy-horse/text-to-video
Alibaba'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-gener...
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runalibaba/happy-horse/text-to-videoInput Schema
5 parameters · 1 required · 4 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | The text prompt to generate a video from. · Min length: 3 · Max length: 50000 · 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." |
seed | integer | Optional | Random seed for reproducible results. Set to -1 for random seed. |
duration | integer | Optional | The duration of the generated video in seconds. · Options: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 · Default: 5 3456789101112131415 |
resolution | string | Optional | The resolution of the video to generate. · Options: 720p, 1080p · Default: "720p" 720p1080p |
aspect_ratio | string | Optional | The aspect ratio of the generated video. · Options: 16:9, 9:16, 1:1, 4:3, 3:4 · Default: "16:9" 16:99:161:14:33:4 |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"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"
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Happy Horse Text to Video
Happy Horse Text to Video builds a motion sequence directly from a written scene description. Its family description emphasizes cinematic, true-to-life movement together with synchronized native audio and multilingual lip-sync.
The request offers three-to-fifteen-second duration, five aspect ratios, and 720p or 1080p resolution. Seed control supports repeatable reruns while a team refines the prompt or compares framing choices.
Highlights
Scenes begin with language. The required prompt can describe composition, camera movement, subject action, lighting, and pacing.
Picture and sound are generated together. Happy Horse is documented with synchronized native audio rather than video alone.
Multilingual lip-sync. The family explicitly includes lip synchronization across languages for speech-oriented scenes.
One brief, several placements. Five ratios, thirteen durations, and two resolution tiers adapt a concept for different screens.
Pricing
| Duration | 720p | 1080p |
|---|---|---|
| 3 seconds | $0.420 | $0.840 |
| 4 seconds | $0.560 | $1.120 |
| 5 seconds | $0.700 | $1.400 |
| 6 seconds | $0.840 | $1.680 |
| 7 seconds | $0.980 | $1.960 |
| 8 seconds | $1.120 | $2.240 |
| 9 seconds | $1.260 | $2.520 |
| 10 seconds | $1.400 | $2.800 |
| 11 seconds | $1.540 | $3.080 |
| 12 seconds | $1.680 | $3.360 |
| 13 seconds | $1.820 | $3.640 |
| 14 seconds | $1.960 | $3.920 |
| 15 seconds | $2.100 | $4.200 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The scene should be created entirely from written direction | A source image must anchor the opening frame |
| A managed asynchronous result is suitable for the production pipeline | A synchronous, interactive editor is essential |
| The documented controls cover the required duration, framing, or format | The project needs controls outside this endpoint's schema |
| Creative iteration benefits from a repeatable request structure | Exact deterministic pixels, frames, geometry, or samples are mandatory |
| A finished downloadable media asset is the desired deliverable | Editable source layers or a native project file are required |
Prompt Guide
For generation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.
{
"aspect_ratio": "16:9",
"duration": 5,
"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.",
"resolution": "720p"
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | alibaba/happy-horse/text-to-video |
| Inputs | aspect_ratio, duration, prompt, resolution, seed |
| Required inputs | prompt |
| Output fields | content_type, url |
| Execution | Async (submit, then poll for result) |
| Duration | 3 / 4 / 5 / 6 / 7 / 8 / 9 / 10 / 11 / 12 / 13 / 14 / 15 |
| Resolution | 720p / 1080p |
| Aspect Ratio | 16:9 / 9:16 / 1:1 / 4:3 / 3:4 |
Related Models
alibaba/happy-horse/1.1/image-to-video— Compare a nearby route in the same local model family.alibaba/happy-horse/1.1/reference-to-video— Compare a nearby route in the same local model family.alibaba/happy-horse/1.1/text-to-video— Compare a nearby route in the same local model family.

