curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo-3.1-generate-preview",
"prompt": "一只橘猫在雨夜的霓虹城市中行走,电影感镜头,镜头平滑推进,真实环境音,画面细腻",
"seconds": "8",
"size": "1280x720",
"metadata": {
"resolution": "1080p",
"aspectRatio": "16:9",
"negativePrompt": "blurry, watermark, distorted, low quality"
}
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "veo-3.1-generate-preview",
"status": "queued",
"progress": 0,
"created_at": 1775025000
}Veo视频
创建视频
创建 Veo 3.1 视频任务。
路径: POST https://api.omniall.ai/v1/videos
用例: 文生视频 · 首帧 · 首尾帧 · 参考图(仅普通版)。
鉴权:Authorization: Bearer sk-...
POST
/
v1
/
videos
curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "veo-3.1-generate-preview",
"prompt": "一只橘猫在雨夜的霓虹城市中行走,电影感镜头,镜头平滑推进,真实环境音,画面细腻",
"seconds": "8",
"size": "1280x720",
"metadata": {
"resolution": "1080p",
"aspectRatio": "16:9",
"negativePrompt": "blurry, watermark, distorted, low quality"
}
}
'{
"id": "task_xxxxxxxx",
"task_id": "task_xxxxxxxx",
"object": "video",
"model": "veo-3.1-generate-preview",
"status": "queued",
"progress": 0,
"created_at": 1775025000
}请求头
示例:
"Bearer sk-..."
请求体
application/json