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