Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer YOUR_API_KEY. Manage keys in API Keys.

Body

application/json
model
string
required

Also accepts the legacy alias dashscope/happyhorse-1.0.

Allowed value: "happyhorse-1.0"
prompt
string

Required for generation; optional for edits.

Required string length: 1 - 5000
resolution
enum<string>
default:720P

Output resolution.

Available options:
720P,
1080P
duration
integer
default:4

Output seconds. Edits follow the source.

Required range: 3 <= x <= 15
aspect_ratio
enum<string>
default:16:9

Output aspect ratio.

Available options:
16:9,
9:16,
1:1,
4:3,
3:4
reference_images
object[]

References or keyframes.

Maximum array length: 9
reference_videos
object[]

Video editing only.

Maximum array length: 1
extra_params
object

Video editing only.

Response

Task accepted.

task_id
string
required

Task ID to poll.

model
string
required

Echoes the supplied model ID or legacy alias.

created_at
string<date-time>
required

Task creation time (UTC).

request_id
string
required

Request ID.