curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happy-horse",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic tracking shot through a neon city street after rain, reflective pavement, soft ambient audio, realistic motion.",
"resolution": "1080p",
"duration": 5,
"aspect_ratio": "16:9",
"seed": 42,
"enable_safety_checker": true
}
}
'
{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-05-11T10:30:00"
}
}Alibaba
Happy Horse
Alibaba Happy Horse text-to-video, image-to-video, reference-to-video, and video-edit workflows
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "happy-horse",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic tracking shot through a neon city street after rain, reflective pavement, soft ambient audio, realistic motion.",
"resolution": "1080p",
"duration": 5,
"aspect_ratio": "16:9",
"seed": 42,
"enable_safety_checker": true
}
}
'
{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2026-05-11T10:30:00"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
happy-horse supports text-to-video, image-to-video, reference-to-video, and video-edit through one public model ID.
Models
- happy-horse - Alibaba Happy Horse 1.0 video generation and editing
Required parameters
- model:
happy-horse - input.prompt: Required for text-to-video, reference-to-video and video-edit (maximum 2,500 characters). Optional for image-to-video.
- input.video_url: Required for video-edit.
- input.reference_image_urls: Required for reference-to-video.
Optional parameters
- image_urls: Single-item first-frame image URL array for image-to-video
- reference_image_urls: 1-9 images for reference-to-video, or up to 5 optional images for video-edit
- aspect_ratio: Text-to-video and reference-to-video only.
16:9,9:16,1:1,4:3, or3:4. Default is16:9 - resolution:
720por1080p. Default is1080p - duration: Integer seconds from
3to15for text-to-video, image-to-video, and reference-to-video. Ignored for video-edit - audio_setting: Video-edit only.
autoororigin. Default isauto - seed: Optional integer from
0to2147483647 - enable_safety_checker: Optional boolean
Workflows
Text to Video
Send aprompt without image or video input fields. Use aspect_ratio, resolution, and duration to control the output.
Image to Video
Send a single-itemimage_urls array. The image is used as the first frame. prompt is optional; when supplied it must be nonblank and at most 2,500 characters.
Reference to Video
Sendreference_image_urls with 1-9 images and a required prompt. Describe the referenced subjects in the prompt; character1 and character2 markers are not required.
Do not combine reference_image_urls with image_urls.
Video Edit
Sendvideo_url with a required edit prompt. Optional reference_image_urls (up to 5) can guide the edit; describe the referenced subjects in the prompt, no special markers are required. audio_setting controls whether Happy Horse decides audio handling automatically or preserves the original audio.
The source video must be 3-60 seconds. Video-edit billing uses the probed source video duration according to the current workflow pricing configuration.
Pricing
Happy Horse billing depends on the selected workflow, output resolution, and billable video duration. Check the Vidgo pricing page or dashboard for the current rate before submitting production traffic. Text-to-video, image-to-video, and reference-to-video use the requestedduration. Video-edit uses the probed source video duration, capped at the maximum billable duration for this workflow.
Workflow IDs
Existing IDs remain available. New integrations can select a dedicated workflow:- alibaba/happyhorse-1.0/text-to-video
- alibaba/happyhorse-1.0/image-to-video
- alibaba/happyhorse-1.0/reference-to-video
- alibaba/happyhorse-1.0/video-edit
Notes
image_urlsmust resolve to exactly one image and is only for image-to-video.reference_image_urlsselects reference-to-video unlessvideo_urlis present, in which case it is treated as optional video-edit reference imagery.- For text-to-video and reference-to-video, omit
video_urland useaspect_ratio. - For video-edit, omit
duration; the source video duration is used for validation and duration-based billing.
Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer VIDGO_API_KEY
Body
application/json