# Alibaba Happy Horse Reference to Video API

> 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-generation AIGC creation.

Source: https://www.sandbase.ai/models/alibaba/happy-horse/reference-to-video
API reference: https://www.sandbase.ai/models/alibaba/happy-horse/reference-to-video/docs

## Facts

- Provider: Alibaba
- Type: Video model
- Model ID: `alibaba/happy-horse/reference-to-video`
- Price: From $0.70 per run
- Capabilities: reference to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "alibaba/happy-horse/reference-to-video",
  "images": [
    "https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/9000146771/p1067182.webp",
    "https://help-static-aliyun-doc.aliyuncs.com/assets/img/zh-CN/9000146771/p1067183.webp"
  ],
  "prompt": "In the early morning, just as the sun begins to rise, a small pumpkin sits in the pumpkin patch with dewdrops glistening on its surface. Suddenly, with a crisp crack, a fissure appears on the little pumpkin, and golden light shines through the crack. The pumpkin splits open along with the golden glow, releasing a puff of white mist, and a little rabbit appears in the center of the cracked pumpkin.",
  "duration": 5,
  "resolution": "720p",
  "aspect_ratio": "16:9"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call Alibaba Happy Horse Reference to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/happy-horse/reference-to-video" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate Alibaba account?

No. One SandBase API key and balance gives you access to Alibaba Happy Horse Reference to Video and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Happy Horse Reference to Video

Happy Horse 1.0 reference-to-video: place subjects from reference images into a new scene described by the prompt.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `images` | image URL[], required | — | Reference images, Image 1, Image 2, … |
| `prompt` | string, required | — | Up to 50,000 characters. |
| `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. |

#### Billing

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.

#### Prompting

- Refer to each reference by number and give it a role.

#### Limits

- 720p and 1080p only.

#### Also on SandBase

Other Happy Horse endpoints: `alibaba/happy-horse/text-to-video`, `alibaba/happy-horse/image-to-video`, `alibaba/happy-horse/video-edit`, `alibaba/happy-horse/1.1/reference-to-video` (newer).
