curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo-3.1-reference-to-video",
"prompt": "A woman walking through a garden",
"reference_image_urls": [
"https://example.com/ref1.jpg"
],
"duration": 8,
"resolution": "1080p",
"reference_type": "STYLE"
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "请求格式错误",
"type": "invalid_request_error"
}
}{
"error": {
"message": "API密钥无效",
"type": "authentication_error"
}
}{
"error": {
"message": "账户余额不足",
"type": "insufficient_quota"
}
}{
"error": {
"message": "参数校验失败",
"type": "validation_error"
}
}{
"error": {
"message": "请求频率超限",
"type": "rate_limit_error"
}
}{
"error": {
"message": "服务器内部错误",
"type": "server_error"
}
}{
"error": {
"message": "服务暂不可用,请稍后重试",
"type": "service_unavailable"
}
}Veo3.1
Veo3.1 参考视频生成
- VEO 3.1 参考图生视频模型(按模式拆分入口)
- 输入 1-3 张参考图
reference_image_urls,固定8秒 - 仅标准版与 Fast 可用,Lite 不支持参考图
- 异步处理模式,使用返回的任务ID 进行查询
- 生成的视频链接,有效期为24小时,请尽快保存
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo-3.1-reference-to-video",
"prompt": "A woman walking through a garden",
"reference_image_urls": [
"https://example.com/ref1.jpg"
],
"duration": 8,
"resolution": "1080p",
"reference_type": "STYLE"
}
'{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "请求格式错误",
"type": "invalid_request_error"
}
}{
"error": {
"message": "API密钥无效",
"type": "authentication_error"
}
}{
"error": {
"message": "账户余额不足",
"type": "insufficient_quota"
}
}{
"error": {
"message": "参数校验失败",
"type": "validation_error"
}
}{
"error": {
"message": "请求频率超限",
"type": "rate_limit_error"
}
}{
"error": {
"message": "服务器内部错误",
"type": "server_error"
}
}{
"error": {
"message": "服务暂不可用,请稍后重试",
"type": "service_unavailable"
}
}授权
所有接口均需要使用Bearer Token进行认证
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
veo-3.1-reference-to-video:标准版参考图生视频
veo-3.1-fast-reference-to-video:快速版
示例:
"veo-3.1-reference-to-video"
"veo-3.1-fast-reference-to-video"
文本提示词,描述想要生成的视频内容
说明:
- 支持中英文
示例:
"A woman walking through a garden"
参考图片 URL 列表
说明:
- 数量:
1-3张 - 多张参考图用于角色 / 风格一致性
Required array length:
1 - 3 elements示例:
["https://example.com/ref1.jpg"]
输出视频宽高比
可选值:
16:9— 横屏(默认)9:16— 竖屏
示例:
"16:9"
输出视频时长(秒)
说明:
- 参考图生视频固定为
8秒
示例:
8
输出视频分辨率
可选值:
720p— 标清1080p— 高清(默认)4k— 4K 超高清
示例:
"720p"
是否生成配套音频
说明:
- 默认关闭
示例:
true
自动修复提示词;两个模型变体都可传该字段。
非必须不要传这个参数。
示例:
true
内容安全等级,1 最严格,6 最宽松。
非必须不要传这个参数。
必填范围:
1 <= x <= 6示例:
3
自动优化提示词
模型差异:
- 仅
veo-3.1-reference-to-video可用 veo-3.1-fast-reference-to-video不适用
非必须不要传这个参数。
示例:
true
人物生成控制
可选值: dont_allow / allow_adult
模型差异:
- 仅
veo-3.1-reference-to-video可用 veo-3.1-fast-reference-to-video不适用
非必须不要传这个参数。
示例:
"allow_adult"
参考图类型
可选值: ASSET / STYLE
模型差异:
- 仅
veo-3.1-reference-to-video可用 veo-3.1-fast-reference-to-video不适用
非必须不要传这个参数。
示例:
"STYLE"
响应
任务创建成功
任务创建时间戳
示例:
1757165031
任务ID
示例:
"task-unified-1757165031-uyujaw3d"
实际使用的模型名称
任务的具体类型
可用选项:
video.generation.task 任务进度百分比 (0-100)
必填范围:
0 <= x <= 100示例:
0
任务状态
可用选项:
pending, processing, completed, failed 示例:
"pending"
异步任务信息
Show child attributes
Show child attributes
任务的输出类型
可用选项:
video 示例:
"video"