##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_KEYVideo generation model name
happyhorse-1.0-text-to-video "happyhorse-1.0-text-to-video"
Text prompt, required
Length limits:
2500 characters5000 charactersPrompt tips:
Shot 1 [0~3s] wide angle: ...; Shot 2 [3~6s] medium shot: ..."A miniature city built from cardboard and bottle caps comes to life at night. A cardboard train slowly passes through, dotted with tiny lights illuminating the path ahead."
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-h1t2vab8"
Actual model name used
"happyhorse-1.0-text-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