快速结论
- 定位偏 Flash,优先满足快速生成、低延迟反馈和高频迭代场景。
- 适合概念验证、社媒短视频和批量出片,不必一开始就走重制作流程。
- 使用异步视频任务接口,先提交任务,再通过状态接口轮询结果。
关键参数
- model | string | 必填 | gemini_omni | - | Model identifier. Use the fixed value `gemini_omni`.
- prompt | string | 必填 | - | - | Main instruction describing the subject, action, scene, and visual style.
- aspect_ratio | string | 可选 | 16:9 | 16:9 | 9:16 | Video aspect ratio. Defaults to `16:9`, corresponding to landscape or portrait output.
- duration | integer | 可选 | 6 | 6 | 10 | Output duration in seconds. Defaults to `6` and currently supports only `6` and `10`.
- resolution | string | 可选 | 720P | 720P | Output resolution. Currently only `720P` is supported; if omitted, the default value is used.
常见错误
- 400 invalid_request_error: 触发=Request payload misses required fields or has invalid field types.; 修复=Validate model, mode, and input schema before request.; 重试=Retry only after fixing payload; avoid blind retries.
- 401 authentication_error: 触发=Missing Authorization header or invalid API key.; 修复=Verify Bearer token format and API key scope.; 重试=Retry after auth fix; rotate key if repeated failures continue.
- 429 rate_limit_exceeded: 触发=Request rate, concurrency, or current quota hits upstream rate limiting.; 修复=Apply exponential backoff first, then review request rate, concurrency, and quota usage.; 重试=Use exponential backoff (e.g., 1s/2s/4s) with jitter; if it persists, reduce submission pressure.
- 500 internal_error: 触发=Transient upstream error or internal processing failure.; 修复=Capture request id and trigger retry workflow.; 重试=Retry 2-3 times with short delays; escalate if persistent.