Skip to main content
POST
HappyHorse Series
Video generation model on Alibaba Cloud Bailian. Single model, unified entry — just one 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

Mode Routing

Mutually exclusive fieldsfirst_frame_image / image_urls / video_urls are pairwise mutually exclusive. Only video_urls + image_urls may be passed together (EDIT mode with style references layered on).

Examples

After submission, poll status with GET /v1/tasks/{task_id}. See Task System for details.

Available Models

Common Parameters

string
required
Fixed value happyhorse-1.0
string
default:"generate"
Operation 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 with first_frame_image
  • reference — reference-to-video (R2V), used with image_urls
  • edit — video editing, used with video_url
  • reference_audio — used with audio_urls for audio-driven generation
string
Video description, up to 5000 characters. Required for T2V; optional as guidance for other modes
integer
default:"5"
Video duration in seconds, any integer in 3-15. In EDIT mode, 0 means follow the source video’s duration
string
default:"720p"
Output resolution. Allowed values:
  • 720p
  • 1080p
string
default:"16:9"
Frame aspect ratio. Only effective in T2V; in I2V / R2V / EDIT it follows the source media. Allowed values:
  • 16:9 — landscape widescreen
  • 9:16 — portrait tall
  • 4:3 — landscape
  • 3:4 — portrait
  • 1:1 — square
string[]
Reference image URL array, 1-9 images:
  • Triggers R2V mode (multi-image style / character consistency)
  • In EDIT mode, layered as style references (≤5 images)
string
First-frame image URL, triggers I2V mode
string[]
Source video URL array (single element), triggers EDIT mode:
  • base64 not currently supported
  • Must be a publicly downloadable URL
string[]
Reference audio URL array (reference_audio mode)
string
Webhook callback URL, invoked when the task reaches a terminal state. See Callbacks

Model-Specific Parameters

string
default:"auto"
Audio setting, only effective in EDIT mode. Allowed values:
  • auto — automatically generate audio matching the edited video
  • origin — keep the source video’s original audio track

Resource Limits