alibaba/happy-horse/image-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...
PNG, JPEG, WebP, or GIF · 20 MiB maximum
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/image-to-videoInput Schema
6 parameters · 1 required · 5 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
image | string | Required | The URL of the source image to animate into a video. |
seed | integer | Optional | Random seed for reproducible results. Set to -1 for random seed. |
prompt | string | Optional | Optional text prompt to guide the video generation. · Max length: 50000 · Default: "Bring the scene in the image to life." |
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/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",
"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 Image to Video
Happy Horse Image to Video is a image-to-video workflow for turning supplied visual material and written direction into a new moving sequence. The source image establishes the subject, framing, and visual identity before the model introduces motion.
Use the route for rapid creative iteration when a key asset already exists and the goal is to extend, animate, or revise it. Describe subject action, camera behavior, timing, atmosphere, and the intended ending; local duration, resolution, aspect-ratio, and seed controls define the delivery envelope.
Highlights
- Still-to-motion creation. Animates an established image while retaining its visual foundation.
- Directed subject movement. Uses the prompt to define action, pace, staging, and interaction within the shot.
- Camera and atmosphere control. Lets the brief specify framing, camera movement, lighting, mood, and scene energy.
- Production-oriented delivery. Supports explicit duration, resolution, framing, and repeatability controls where exposed by the route.
Pricing
| Configuration | Billing unit | Price |
|---|---|---|
| 3 seconds | 720p | $0.42 |
| 3 seconds | 1080p | $0.84 |
| 4 seconds | 720p | $0.56 |
| 4 seconds | 1080p | $1.12 |
| 5 seconds | 720p | $0.70 |
| 5 seconds | 1080p | $1.40 |
| 6 seconds | 720p | $0.84 |
| 6 seconds | 1080p | $1.68 |
| 7 seconds | 720p | $0.98 |
| 7 seconds | 1080p | $1.96 |
| 8 seconds | 720p | $1.12 |
| 8 seconds | 1080p | $2.24 |
| 9 seconds | 720p | $1.26 |
| 9 seconds | 1080p | $2.52 |
| 10 seconds | 720p | $1.40 |
| 10 seconds | 1080p | $2.80 |
| 11 seconds | 720p | $1.54 |
| 11 seconds | 1080p | $3.08 |
| 12 seconds | 720p | $1.68 |
| 12 seconds | 1080p | $3.36 |
| 13 seconds | 720p | $1.82 |
| 13 seconds | 1080p | $3.64 |
| 14 seconds | 720p | $1.96 |
| 14 seconds | 1080p | $3.92 |
| 15 seconds | 720p | $2.10 |
| 15 seconds | 1080p | $4.20 |
When to Use
| ✅ Good fit | ❌ Consider alternatives |
|---|---|
| The project needs creating a directed video sequence | The goal is a different media task or endpoint |
| The available inputs match the required local schema | Required source media or permissions are unavailable |
| The brief can specify subject, composition, style, and delivery | The result must be deterministic at pixel or sample level |
| The supported formats and controls match final placement | Delivery requires unsupported dimensions, codecs, or duration |
| An asynchronous generated result fits the workflow | A live, frame-synchronous, or real-time response is mandatory |
Prompt Guide
Write the request as a production brief: identify the main subject or source material, state the intended transformation, describe composition or timing, and finish with style, atmosphere, and delivery constraints. Keep preservation requirements separate from requested changes, and use only fields exposed by this route.
{
"image": "https://example.com/reference.jpg",
"seed": 1,
"prompt": "Bring the scene in the image to life.",
"duration": 3
}
Technical Specs
| Spec | Value |
|---|---|
| Model ID | alibaba/happy-horse/image-to-video |
| Input fields | seed (integer)<br>image (string)<br>prompt (string)<br>duration (integer; 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)<br>resolution (string; 720p, 1080p)<br>aspect_ratio (string; 16:9, 9:16, 1:1, 4:3, 3:4) |
| Required input | image |
| Output fields | url, content_type |
| Execution | Asynchronous job |
Related Models
alibaba/qwen-image-3/editalibaba/happy-horse/video-editalibaba/wan/2.2/image-to-video/turbo

