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.0/reference-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5,
"reference_image_urls": [
"https://example.com/image.png"
]
}
}
'{
"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 参考生视频
Happy Horse 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.0/reference-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"aspect_ratio": "16:9",
"resolution": "1080p",
"duration": 5,
"reference_image_urls": [
"https://example.com/image.png"
]
}
}
'{
"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.0/reference-to-video - 在参考素材和提示词的引导下生成新视频。
功能
- 使用 1 到 9 张参考图片引导视频生成。
- 输出分辨率可选
720p、1080p。
时长选项
- 3-15 秒 - 以整数设置
duration。默认:5 秒。
高级参数
model 和可选的 callback_url 放在请求根级,下列参数放在 input 内。
只发送本工作流支持的 input 字段。不支持的 input 字段会在扣除积分前被拒绝。输入 URL 必须使用 HTTP(S),带主机名,且不含内嵌凭证。
提示词
prompt:必填。描述场景和期望的运动。- 提供时提示词不能为空。最大长度:2,500 个字符。
参考输入
reference_image_urls:必填;最多 9 张图片。- 在提示词中描述所引用的主体;无需使用
character1和character2标记。
分辨率
resolution:720p、1080p。默认:1080p。
宽高比
aspect_ratio:16:9、9:16、1:1、4:3、3:4。默认:16:9。
种子
seed可选。传入0到2147483647的整数。
安全检查
enable_safety_checker可选。设为true或false控制安全检查。
定价
价格取决于所选模型和适用的输出设置。当前价格请在 Vidgo 仪表盘查看。 提交时扣除积分,任务失败后退还。授权
使用 VIDGO_API_KEY。
请求体
application/json