Quick Answer
- Flash-oriented positioning optimized for quick generation, low latency, and high iteration speed.
- Well suited to prototyping, social short-form content, and batch output without a heavyweight production setup.
- Uses async video task workflows: submit first, then poll task status for results.
Key Parameters
- model | string | required | gemini_omni | - | Model identifier. Use the fixed value `gemini_omni`.
- prompt | string | required | - | - | Main instruction describing the subject, action, scene, and visual style.
- aspect_ratio | string | optional | 16:9 | 16:9 | 9:16 | Video aspect ratio. Defaults to `16:9`, corresponding to landscape or portrait output.
- duration | integer | optional | 6 | 6 | 10 | Output duration in seconds. Defaults to `6` and currently supports only `6` and `10`.
- resolution | string | optional | 720P | 720P | Output resolution. Currently only `720P` is supported; if omitted, the default value is used.
Common Errors
- 400 invalid_request_error: trigger=Request payload misses required fields or has invalid field types.; fix=Validate model, mode, and input schema before request.; retry=Retry only after fixing payload; avoid blind retries.
- 401 authentication_error: trigger=Missing Authorization header or invalid API key.; fix=Verify Bearer token format and API key scope.; retry=Retry after auth fix; rotate key if repeated failures continue.
- 429 rate_limit_exceeded: trigger=Request rate, concurrency, or current quota hits upstream rate limiting.; fix=Apply exponential backoff first, then review request rate, concurrency, and quota usage.; retry=Use exponential backoff (e.g., 1s/2s/4s) with jitter; if it persists, reduce submission pressure.
- 500 internal_error: trigger=Transient upstream error or internal processing failure.; fix=Capture request id and trigger retry workflow.; retry=Retry 2-3 times with short delays; escalate if persistent.