Google Gemini
Veo 3.1 Generate Preview 视频生成
通过 POST /v1/predictions(function 为 video)使用 veo-3.1-generate-preview 创建异步视频任务。
POST
概览
Google Veo 3.1 Generate Preview(veo-3.1-generate-preview)支持:
- 文生视频 — 仅传
prompt - 首尾帧 —
first_frame_url、last_frame_url - 参考图 —
reference_image_urls最多 3 张,用于保持主体外观一致
输入参数
| 字段 | 必填 | 默认值 | 说明 |
|---|---|---|---|
prompt | 是 | — | 最多 1000 字符 |
aspect_ratio | 否 | 16:9 | 仅 16:9、9:16 |
resolution | 否 | 720P | 720P、1080P、4K |
duration | 否 | 8 | 4、6、8(秒) |
generate_audio | 否 | true | 是否生成配套音频 |
negative_prompt | 否 | — | 反向提示词 |
first_frame_url | 否 | — | 首帧图片 URL |
last_frame_url | 否 | — | 尾帧图片 URL |
reference_image_urls | 否 | [] | 参考图 URL,最多 3 张 |
授权
Authorization: Bearer YOUR_API_KEY
请求体
application/json
响应
异步任务已创建