Skip to main content
POST
HappyHorse 1.1 Video Generation
  • Public model name: happyhorse-1.1
  • Use action to choose text-to-video, first-frame image-to-video, reference-to-video, or video editing
  • If action is omitted, requests with a first-frame image are treated as image-to-video; otherwise they are text-to-video
  • Async task management through the standard video task status endpoint

Authorizations

string
required
All requests require Bearer Token authentication.

Body

string
default:"happyhorse-1.1"
required
Video generation model name. Fixed value: happyhorse-1.1.
string
default:"text-to-video"
Generation mode.Options:
  • text-to-video
  • image-to-video
  • reference-to-video
  • video-edit
If omitted, the server detects the mode from whether a first-frame image is present.
string
Text prompt for the video.Required for text-to-video, reference-to-video, and video editing. Optional for image-to-video, but recommended for motion and style control.
string[]
First-frame image URL for image-to-video. Only the first image is used.Compatible fields are also accepted: input_reference, images, image, or image_with_roles[{ role: "first_frame" }].Image requirements:
  • Format: JPEG, JPG, PNG, BMP, WEBP
  • File size: up to 10MB
  • Dimensions: at least 300px
  • Aspect ratio: 1:2.5 to 2.5:1
string[]
Reference image URLs.Required for reference-to-video, with 1 to 9 images. Optional for video-edit, with up to 5 images.
string
Input video URL for video editing. Required when action=video-edit.
string
default:"auto"
Audio control for video editing. Only applies when action=video-edit.Options:
  • auto
  • origin
integer
default:5
Video duration in seconds. Valid range: 3 to 15.
string
default:"1080P"
Video resolution.Options:
  • 720P
  • 1080P
string
default:"16:9"
Aspect ratio for text-to-video. Image-to-video uses the first-frame image dimensions.Options:
  • 16:9
  • 9:16
  • 1:1
  • 4:3
  • 3:4
The compatible size field is also accepted.
integer
Random seed for reproducible generation.
boolean
default:true
Whether to add a watermark.

Text-to-Video Example

Image-to-Video Example

Reference-to-Video Example

Video Edit Example

Query Task

The submit endpoint returns a task ID. Use the standard video task status endpoint to retrieve the result:

Channel Configuration

HappyHorse uses a DashScope API key. The default upstream base URL is https://dashscope.aliyuncs.com. For the international endpoint, override the channel Base URL in the admin dashboard: