提交视频生成任务
开发中
POST
{{BASE_URL}}/veo/v1/generate
请求参数
Authorization
Header 参数
Authorization
string
可选
示例值:
Bearer {{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
model
string
必需
enhance_prompt
boolean
优化提示词
示例
{
"prompt": "火车穿过山脉",
"model": "veo2-fast",
"enhance_prompt": true
}
示例代码
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 '{
"prompt": "火车穿过山脉",
"model": "veo2-fast",
"enhance_prompt": true
}'
返回响应
🟢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-22 15:11:56