Veo 统一参考创建 - QuickRouter API 中转接口
▼
Authorization
在 Header 添加参数 Authorization,其值为 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
概述
请求参数
Header 参数
Content-Type
string
必需
示例: application/json
Accept
string
必需
示例: application/json
Authorization
string
可选
示例: Bearer {{YOUR_API_KEY}}
Body 参数 application/json
model
string
必需
枚举值:
veo2
可选
veo2-fast veo2-fast-frames veo2-fast-components veo2-pro
veo3
可选
veo3-fast veo3-pro veo3-pro-frames veo3-fast-frames veo3-frames
prompt
string
可选
提示词 必需
images
array[string]
可选
当模型是带 veo2-fast-frames 最多支持两个,分别是首尾帧,当模型是 veo3-pro-frames 最多支持一个首帧,当模型是 veo2-fast-components、veo3.1-components 最多支持 3 个,此时图片为视频中的元素
enhance_prompt
boolean
必需
由于 veo 只支持英文提示词,所以如果需要中文自动转成英文提示词,可以开启此开关
enable_upsample
string
可选
超分 必需
aspect_ratio
string
必需
⚠️仅veo3支持,“16:9”或“9:16” { "prompt": "牛飞上天了", "model": "veo3.1-components", "images": [ "https://filesystem.site/cdn/20250612/VfgB5ubjInVt8sG6rzMppxnu7gEfde.png", "https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png", "https://iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf4ced1ab5f64094b36adaf99e9" ], "enhance_prompt": true, "enable_upsample": true, "aspect_ratio": "16:9" } 请求
示例
{
"prompt": "牛飞上天了",
"model": "veo3.1-components",
"images": [
"https://filesystem.site/cdn/20250612/VfgB5ubjInVt8sG6rzMppxnu7gEfde.png",
"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png",
"https://iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf4ced1ab5f64094b36adaf99e9"
],
"enhance_prompt": true,
"enable_upsample": true,
"aspect_ratio": "16:9"
}
请求示例代码
curl --location --request POST 'https://api.quickrouter.ai/v1/video/create' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "牛飞上天了",
"model": "veo3.1-components",
"images": [
"https://filesystem.site/cdn/20250612/VfgB5ubjInVt8sG6rzMppxnu7gEfde.png",
"https://filesystem.site/cdn/20250612/998IGmUiM2koBGZM3UnZeImbPBNIUL.png",
"https://iknow-pic.cdn.bcebos.com/5882b2b7d0a20cf4ced1ab5f64094b36adaf99e9"
],
"enhance_prompt": true,
"enable_upsample": true,
"aspect_ratio": "16:9"
}'
返回响应
响应参数 🟢 200 OK · application/json
id
string
必需
object
string
必需
created
integer
必需
choices
array [object]
必需
index
integer
可选
message
object
可选
finish_reason
string
可选
usage
object
必需
prompt_tokens
integer
必需
completion_tokens
integer
必需
total_tokens
integer
必需
{ "id": "veo3.1-components:1762241017-xTL0P9HvGF", "status": "pending", "status_update_time": 1762241017286 }
示例
{
"id": "veo3.1-components:1762241017-xTL0P9HvGF",
"status": "pending",
"status_update_time": 1762241017286
}
常见错误
- 401 认证失败:检查 API Key 是否正确
- 429 请求限流:降低调用频率或升级套餐
- 500 服务器错误:稍后重试
注意事项
- 请确保 API Key 有足够的余额
- 请求频率受 API 限制,请参考价格页面