curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "alibaba/happyhorse-1.1/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Alibaba
Happy Horse 1.1 文生视频
Happy Horse 1.1 API 根据文本生成短视频场景,最高 1080p 输出,画幅从宽银幕横屏到竖屏视频均可选择。
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": "alibaba/happyhorse-1.1/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- alibaba/happyhorse-1.1/text-to-video - 根据文本提示词生成视频场景。
功能
- 根据文本提示词生成视频场景。
- 输出分辨率可选
720p、1080p。
时长选项
- 3-15 秒 - 以整数设置
duration。可选。默认:5 秒。
高级参数
model 和可选的 callback_url 放在请求根级。所有工作流参数(包括输出选项)都放在 input 内。
只发送本工作流支持的 input 字段。不支持的 input 字段会在扣除积分前被拒绝。
duration 和 seed 也接受整数字符串,如 "5";小数(如 5.0)和小数字符串(如 "5.0")会被拒绝。null 或空值会使用默认时长或省略种子。支持的布尔字段也接受 0/1,以及不区分大小写的字符串 true/false、1/0、yes/no、y/n 和 on/off;null 表示省略该字段。首尾空白会被去除,分辨率取值不区分大小写。
提示词
prompt:必填。描述场景和期望的运动。最多:2,500 个 Unicode 字符。- 首尾空白会被去除。必须提供非空提示词。
宽高比
aspect_ratio:可选。可选值:21:9、16:9、4:3、1:1、3:4、4:5、5:4、9:16、9:21。默认:16:9。
分辨率
resolution:可选。可选值:720p、1080p。默认:1080p。
种子
seed:可选。设置生成种子。0到2147483647的整数。
安全检查
enable_safety_checker:可选。控制安全检查。使用true或false。
定价
用量等于输出秒数乘以所选分辨率的费率。当前价格见定价。 提交时扣除积分,任务失败后退还。授权
使用 VIDGO_API_KEY。
请求体
application/json