Alibaba's Happy Horse 1.1 generates videos from text, animates a single image, or builds a video from multiple reference images. Supports 720p and 1080p, 3-15 second durations, and five aspect ratios.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "The animal prances across the branch",
"images": [
"https://example.com/animal.png"
],
"duration": 5,
"resolution": "1080p"
}
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | No | - | Text prompt (up to 2,500 chars). Optional with a single image; required for text-to-video and reference-to-video. Refer to reference images as [Image 1], [Image 2], etc. |
images | array | No | [] | No images for text-to-video, one image to animate it (image-to-video), or up to 9 for reference-to-video. jpg/png/bmp/webp, โค10MB each, each side โฅ300px |
resolution | string | No | 1080p | Output resolution. 720p bills 210 credits/sec, 1080p bills 270 credits/sec 720p1080p |
aspect_ratio | string | No | 16:9 | Aspect ratio for text-to-video and reference-to-video. Ignored with a single input image (its ratio is used) 16:99:161:14:33:4 |
duration | integer | No | 5 | Video duration in seconds (3-15). Billed per second of output 3456789101112131415 |
seed | integer | No | - | Random seed for reproducible generation (0-2147483647) |
There are 3 ways to provide files for the images parameter:
Attach files directly to POST /v1/predictions/upload. No separate upload step needed.
curl -X POST "https://api.core.today/v1/predictions/upload" \
-H "X-API-Key: cdt_your_api_key" \
-F "model=alibaba/happyhorse-1.1" \
-F 'input={"prompt":"your prompt here"}' \
-F "file:images=@your_file.png"Pass a publicly accessible URL directly. You can also use file_url from the Storage API.
{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "your prompt here",
"images": ["https://example.com/image.jpg"]
}
}Common parameters used when calling POST /v1/predictions.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model identifier |
input | object | Yes | - | Object containing the model-specific parameters from the table above |
output_folder | string | No | - | Folder path for output files (max 256 chars, '..' not allowed) |
webhook_url | string | No | - | Webhook URL to call on completion |
is_public | boolean | No | false | If true, output files are also available via permanent public URLs |
Animate a still image as the first frame of a video
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "The animal prances across the branch",
"images": [
"https://example.com/animal.png"
],
"duration": 5,
"resolution": "1080p"
}
}'Generate a video from a text description alone
curl -X POST "https://api.core.today/v1/predictions" \
-H "Content-Type: application/json" \
-H "X-API-Key: cdt_your_api_key" \
-d '{
"model": "alibaba/happyhorse-1.1",
"input": {
"prompt": "A majestic white horse gallops along a black-sand beach at golden hour, mane flowing in the wind, waves crashing in slow motion, cinematic tracking shot",
"resolution": "1080p",
"aspect_ratio": "16:9",
"duration": 5
}
}'POST /v1/predictions