1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const axios = require('axios');
const fs = require('fs');
const path = require('path');
async function toB64(imgPath) {
const data = fs.readFileSync(path.resolve(imgPath));
return Buffer.from(data).toString('base64');
}
const api_key = "YOUR API-KEY";
const url = "https://api.segmind.com/v1/happyhorse-1.1";
const data = {
"prompt": "A majestic white horse galloping through golden wheat fields at sunset, cinematic slow motion, warm golden hour lighting, dust particles catching sunlight, shallow depth of field, professional nature documentary style",
"image": "toB64('undefined')",
"negative_prompt": "blurry, low quality, distorted, watermark, text",
"resolution": "720P",
"duration": 5,
"aspect_ratio": "16:9",
"prompt_extend": true,
"watermark": false
};
(async function() {
try {
const response = await axios.post(url, data, { headers: { 'x-api-key': api_key } });
console.log(response.data);
} catch (error) {
console.error('Error:', error.response.data);
}
})();Describes the scene, subjects, motion, camera, and audio cues. Use cinematic detail (lighting, lens, dialogue) for richer video and synced native audio.
Optional first frame that triggers image-to-video mode. Provide a URL or base64 image to animate it; leave empty for text-to-video.
Lists elements to suppress in the output. Use it to avoid blur, artifacts, watermarks, or text; tune per scene as needed.
Output resolution. Pick 720P for fast drafts and previews; choose 1080P for final, delivery-ready cinematic video.
Allowed values:
Video length in seconds, from 3 to 15. Use 3-5s for quick social clips; 8-15s for fuller scenes and narratives.
Frame shape for text-to-video (ignored when an image is supplied). Use 16:9 for landscape, 9:16 for vertical, 1:1 for social.
Allowed values:
Reproducibility seed (0-2147483647). Fix a seed to reproduce the same output; leave empty for fresh random variations.
LLM-rewrites short prompts into richer cinematic instructions. Keep on for brief prompts; turn off when you need exact prompt control.
Adds an AI-generated watermark to the output. Disable for clean, production-ready video; enable to label generated content.
Up to 9 reference image URLs or uploads that anchor characters, scenes, style, or products. Use for reference-to-video and multi-scene consistency.
To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.
HappyHorse 1.1 is Alibaba's unified video-and-audio generation model, built by the Taotian Future Life Lab as the successor to HappyHorse 1.0 — the model that topped the Artificial Analysis Video Arena. Unlike pipelines that bolt dubbing on in post, HappyHorse generates video and synchronized native audio together in a single pass, so dialogue, ambience, and on-screen action line up from the first frame. It also delivers multilingual lip-sync, matching mouth movements to speech across languages like English, Mandarin, Japanese, Korean, German, and French.
On Segmind, happyhorse-1.1 auto-detects three modes from your payload. Send a prompt alone for text-to-video, add an image first frame for image-to-video, or pass reference_images (up to nine) for reference-to-video. Outputs render at 720P or 1080P, in durations from 3 to 15 seconds, across 16:9, 9:16, 1:1, 4:3, and 3:4 aspect ratios.
HappyHorse 1.1 shines for short-form ads and social clips that need character consistency across scenes, global marketing where a single prompt yields multilingual, lip-synced footage, and product or brand series anchored by reference images. Its 1.1 upgrades — improved semantic understanding, cinematic shot control, dynamic motion rendering, stronger subject and visual consistency, richer detail, and more natural character actions and physics — make it well suited to narrative shorts, explainers, music-driven scenes, and storyboard-to-video workflows.
Write cinematic prompts: name the subject, the action, the camera move, the lighting, and any audio or dialogue cues. Keep prompt_extend on for short prompts to let the model add filmic detail, and turn it off when you need precise control. Use negative_prompt to suppress blur, artifacts, and text. For image-to-video, supply a clean first frame; for consistent characters across shots, pass reference images. Fix a seed to reproduce a result, and prefer 1080P for final delivery.
Can I upload my own audio for lip-sync? No. HappyHorse 1.1 generates its own native audio; it does not accept an external MP3 or WAV to drive lip-sync.
How does it pick text-, image-, or reference-to-video? The mode is auto-detected: prompt only is text-to-video, an image makes it image-to-video, and reference_images makes it reference-to-video.
How many reference images can I use? Up to nine, to anchor characters, environments, style, and products across scenes.
What resolutions and durations are supported? 720P or 1080P output, with durations from 3 to 15 seconds.
Which aspect ratios are available? 16:9, 9:16, 1:1, 4:3, and 3:4 (aspect ratio applies to text-to-video; it is ignored when an image is supplied).
How is HappyHorse 1.1 different from 1.0? It adds production native audio, multilingual lip-sync, up to nine reference images, 1080P, and improved motion, consistency, and detail.