curl --request POST \ --url https://toapis.com/v1/videos/generations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "model": "veo3.1-fast", "prompt": "海豚在碧蓝海洋中跳跃", "duration": 8, "aspect_ratio": "16:9", "image_urls": ["https://example.com/start-frame.jpg", "https://example.com/end-frame.jpg"], "metadata": { "generation_type": "frame", "resolution": "1080p", "enable_gif": false } }'
{ "id": "video_01K8SGYNNNVBQTXNR4MM964S7K", "object": "generation.task", "model": "veo3.1-fast", "status": "queued", "progress": 0, "created_at": 1768380224, "metadata": { "aspect_ratio": "16:9" } }
使用 Google Veo3 模型生成高质量视频,支持异步任务管理
image_urls
Authorization: Bearer YOUR_API_KEY
veo3.1-fast
veo3.1-quality
"veo3.1-fast"
8
16:9
9:16
显示 显示 metadata 字段
frame
reference
720p
1080p
4k
false
generation.task
queued
in_progress
completed
failed