提交(带图)视频生成任务
开发中
POST
{{BASE_URL}}/veo/v1/generate
请求参数
Authorization
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
model
string
必需
images
array[string]
必需
enhance_prompt
boolean
必需
示例
{
"user_prompt": "fly",
"aspect_ratio": "16:9",
"expand_prompt": true,
"loop": false,
"image_url": "https://filesystem.site/cdn/20240911/bzKT9srLinvWXv3dmHENwuvKr5lz1p.png",
"image_end_url": "https://filesystem.site/cdn/20240911/bzKT9srLinvWXv3dmHENwuvKr5lz1p.png"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/veo/v1/generate' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"user_prompt": "fly",
"aspect_ratio": "16:9",
"expand_prompt": true,
"loop": false,
"image_url": "https://filesystem.site/cdn/20240911/bzKT9srLinvWXv3dmHENwuvKr5lz1p.png",
"image_end_url": "https://filesystem.site/cdn/20240911/bzKT9srLinvWXv3dmHENwuvKr5lz1p.png"
}'
返回响应
🟢200成功
application/json
Body
id
string
必需
status
string
必需
status_update_time
integer
必需
enhanced_prompt
string
必需
示例
{
"id": "1e0a79fd-6540-47c6-9417-423dfe1212cc",
"status": "pending",
"status_update_time": 1749654218289,
"enhanced_prompt": "A surreal scene depicting a cow soaring gracefully through the sky, surrounded by fluffy clouds and a vibrant blue backdrop. The cow, with its distinctive black and white spots, has a look of wonder on its face as it glides above a picturesque landscape of rolling green hills and colorful wildflowers below. Sun rays break through the clouds, casting a warm glow on the cow, adding a whimsical touch to this enchanting moment. Elements of fantasy, such as birds flying alongside the cow and a rainbow in the distance, enhance the magical atmosphere."
}
修改于 2025-06-19 10:26:15