Video Generation
HappyHorse Series
Alibaba Cloud Bailian HappyHorse Video — single model, unified entry, intelligent routing across T2V/I2V/R2V/EDIT
POST
HappyHorse Series
Video generation model on Alibaba Cloud Bailian.
Single model, unified entry — just one
After submission, poll status with
happyhorse-1.0. The backend automatically routes to T2V / I2V / R2V / EDIT based on the fields you pass, no model id switching needed.
Billed by resolution × duration, any integer between 3-15 seconds.
Pricing
| Resolution | Unit Price | 5-second video |
|---|---|---|
| 720P | $0.138 / sec | $0.69 |
| 1080P | $0.244 / sec | $1.22 |
Mode Routing
| Fields Passed | Routed Mode | Notes |
|---|---|---|
prompt only | T2V (text-to-video) | Frame ratio controlled by aspect_ratio |
+ first_frame_image (single frame) | I2V (image-to-video) | aspect_ratio is ignored, follows the first frame’s ratio |
+ image_urls (1-9 images) | R2V (reference-to-video) | Multi-image style / character consistency |
+ video_urls (single-element array) | EDIT (video editing) | Can layer image_urls ≤5 as style references |
Examples
GET /v1/tasks/{task_id}. See Task System for details.
Available Models
| Model ID | Description |
|---|---|
happyhorse-1.0 | Unified entry, T2V/I2V/R2V/EDIT auto-routing, 720P/1080P, 3-15 seconds |
Common Parameters
Fixed value
happyhorse-1.0Operation type. Usually no need to pass explicitly — the backend auto-routes based on media fields. Allowed values:
generate— text-to-video (T2V)image2video— image-to-video (I2V), used withfirst_frame_imagereference— reference-to-video (R2V), used withimage_urlsedit— video editing, used withvideo_urlreference_audio— used withaudio_urlsfor audio-driven generation
Video description, up to 5000 characters. Required for T2V; optional as guidance for other modes
Video duration in seconds, any integer in 3-15. In EDIT mode,
0 means follow the source video’s durationOutput resolution. Allowed values:
720p1080p
Frame aspect ratio. Only effective in T2V; in I2V / R2V / EDIT it follows the source media. Allowed values:
16:9— landscape widescreen9:16— portrait tall4:3— landscape3:4— portrait1:1— square
Reference image URL array, 1-9 images:
- Triggers R2V mode (multi-image style / character consistency)
- In EDIT mode, layered as style references (≤5 images)
First-frame image URL, triggers I2V mode
Source video URL array (single element), triggers EDIT mode:
- base64 not currently supported
- Must be a publicly downloadable URL
Reference audio URL array (
reference_audio mode)Webhook callback URL, invoked when the task reaches a terminal state. See Callbacks
Model-Specific Parameters
Audio setting, only effective in EDIT mode. Allowed values:
auto— automatically generate audio matching the edited videoorigin— keep the source video’s original audio track
Resource Limits
| Item | Limit |
|---|---|
| Reference images | Up to 9, each ≤ 30MB, JPG/PNG/WEBP |
| Source video (EDIT) | MP4/MOV, ≤ 100MB, 2-30 seconds |
| Reference audio | WAV/MP3, ≤ 15MB, 3-30 seconds |
| Output | MP4, link valid for 24 hours |
Related Docs
- Task System — task state machine / polling cadence / async push
- Request & Response Format — common error codes / Headers / rate limits
- Authentication — API Key issuance and usage
HappyHorse Series