主题
创建视频
POST
https://az.gptplus5.com/v1/video/create
请求参数
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)
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
enable_upsample | boolean | 可选 | |
enhance_prompt | boolean | 可选 | 由于 veo 只支持英文提示词,所以如果需要中文自动转成英文提示词,可以开启此开关 |
images | array[string] | 可选 | 当模型是带 veo2-fast-frames 最多支持两个,分别是首尾帧,当模型是 veo3-pro-frames 最多支持一个首帧,当模型是 veo2-fast-components 最多支持 3 个,此时图片为视频中的元素 |
model | enum<string> | 必需 | |
prompt | string | 必需 | |
aspect_ratio | string | 可选 | ⚠️仅veo3支持,“16:9”或“9:16” |
请求示例
json
{
"enable_upsample": true,
"enhance_prompt": true,
"images": [
"https://filesystem.site/cdn/20250702/w8AauvxxPhYoqqkFWdMippJpb9zBxN.png"
],
"model": "veo3.1-fast",
"prompt": "make animate",
"aspect_ratio": "16:9"
}cURL 示例
bash
curl --location --request POST 'https://az.gptplus5.com/v1/video/create' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"enable_upsample": true,
"enhance_prompt": true,
"images": [
"https://filesystem.site/cdn/20250702/w8AauvxxPhYoqqkFWdMippJpb9zBxN.png"
],
"model": "veo3.1-fast",
"prompt": "make animate",
"aspect_ratio": "16:9"
}'返回响应
🟢200成功
响应 Body
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
id | string | 必需 | |
status | string | 必需 | |
status_update_time | integer | 必需 | |
enhanced_prompt | string | 必需 |
响应示例
json
{
"id": "veo3-fast-frames:1757555257-PORrVn9sa9",
"status": "pending",
"status_update_time": 1757555257582
}