# Alibaba Happy Horse 1.1 Text to Video API

> Happy Horse 1.1 is Alibaba's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.

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

## Facts

- Provider: Alibaba
- Type: Video model
- Model ID: `alibaba/happy-horse/1.1/text-to-video`
- Price: From $0.70 per run
- Capabilities: text 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/1.1/text-to-video",
  "prompt": "A little girl walking on the road at sunset, cinematic lighting, smooth camera movement.",
  "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 1.1 Text to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "alibaba/happy-horse/1.1/text-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 1.1 Text to Video and the other models in the catalog; you do not need to sign up with Alibaba separately.

## README

### Happy Horse 1.1 Text to Video

Happy Horse 1.1 turns a written script into a 3–15 second cinematic clip with realistic motion, lighting, and fine detail. Version 1.1 adds a 480p draft tier and lowers the 1080p rate compared with 1.0.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Text instruction. |
| `aspect_ratio` | `21:9` / `16:9` / `3:2` / `4:3` / `5:4` / `1:1` / `4:5` / `3:4` / `2:3` / `9:16` | `16:9` | Output frame shape. |
| `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. |

#### Billing

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.

#### Prompting

- Describe the shot in order: subject, action, setting, camera move, light, and sound.
- Give camera timing explicitly, e.g. “holds for two seconds, then pushes in slowly”.
- Put spoken lines in quotes and say who speaks them.

#### Limits

- Text only; to start from a picture use `alibaba/happy-horse/1.1/image-to-video`.

#### Also on SandBase

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