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-extend",
"prompt": "The camera continues to pan across the landscape",
"video_url": "https://example.com/input-video.mp4",
"aspect_ratio": "16:9",
"generate_audio": true
}
'{
"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 视频延长模型,基于已有视频生成延续片段
- 固定延长 7 秒,支持生成配套音频
- 异步处理模式,使用返回的任务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-extend",
"prompt": "The camera continues to pan across the landscape",
"video_url": "https://example.com/input-video.mp4",
"aspect_ratio": "16:9",
"generate_audio": true
}
'{
"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-extend:标准版
veo-3.1-extend-fast:快速版
示例:
"veo-3.1-extend"
"veo-3.1-extend-fast"
文本提示词,描述视频延展后的内容走向
说明:
- 支持中英文
- 描述延续的动作、场景变化等
示例:
"The camera continues to pan across the landscape"
输入视频的公开 URL
说明:
- 必须为公开可访问的 URL
- 输入视频需为
720p或1080p - 输入视频宽高比需为
16:9或9:16 - 系统将从该视频末尾继续生成 7 秒内容
示例:
"https://example.com/input-video.mp4"
输出视频宽高比
可选值:
16:9— 横屏(默认)9:16— 竖屏
示例:
"16:9"
是否生成配套音频
说明:
- 默认开启
示例:
true
自动修复提示词(默认 true)
非必须不要传这个参数。
示例:
true
内容安全等级,1 最严格
非必须不要传这个参数。
必填范围:
1 <= x <= 6示例:
3
负面提示词,描述不希望出现的元素
说明:
- 用逗号分隔多个关键词
非必须不要传这个参数。
示例:
"blurry, low quality, watermark"
随机种子
说明:
- 设置固定值可复现生成结果
- 不传则随机
非必须不要传这个参数。
示例:
42
响应
任务创建成功
任务创建时间戳
示例:
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"