prompt, use character1, character2, character3 … keywords to reference the images in image_urls array in order##All endpoints require Bearer Token authentication##
Get API Key:
Visit the API Key Management Page to obtain your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Video generation model name
happyhorse-1.0-reference-to-video "happyhorse-1.0-reference-to-video"
Text prompt, required
Length limits:
2500 characters5000 charactersCharacter reference convention (important):
character1, character2, character3 ... keywords to reference images in image_urls in ordercharacter1, the 2nd to character2, and so on"A woman in a red qipao character1, the camera first frames the slim cut of the qipao from a side medium shot, then switches to a low-angle upward shot capturing details as she gracefully lifts her hand to open a folding fan character2, with tasseled earrings character3 swaying lightly as she turns her head."
Reference image URL array, required, 1 ~ 9 images
Image requirements:
400 px; 720P or higher quality images are recommended (avoid extremely small, blurry, or heavily compressed images)0.4, with consistent proportions across images (close to the target video ratio)10MB per imageOrder: Array order corresponds to character1, character2 ... references in the prompt
1 - 9 elements[
"https://cdn.example.com/girl.jpg",
"https://cdn.example.com/folding-fan.jpg",
"https://cdn.example.com/earrings.jpg"
]
Video resolution tier, defaults to 720p
Options:
720p: Standard clarity, this is the default1080p: HD clarityBilling note: Resolution tier directly affects billing
720p, 1080p "720p"
Video aspect ratio, defaults to 16:9
Options:
16:9 (landscape)9:16 (portrait)1:1 (square)4:33:416:9, 9:16, 1:1, 4:3, 3:4 "16:9"
Video duration (seconds), defaults to 5 seconds
Range:
3 ~ 153 <= x <= 155
Random seed, default is random
Details:
1 ~ 21474836471 <= x <= 214748364742
HTTPS callback URL for task completion
Callback timing:
Security restrictions:
2048 charactersCallback mechanism:
10 seconds3 retries after failure (at 1/2/4 seconds after failure respectively)"https://your-domain.com/webhooks/video-task-completed"
Video generation task created successfully
Task creation timestamp
1761313744
Task ID
"task-unified-1761313744-h1r2vef0"
Actual model name used
"happyhorse-1.0-reference-to-video"
Specific type of the task
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed, cancelled "pending"
Video task details
Output type of the task
text, image, audio, video "video"
Usage and billing information