Video models
Gemini Omni 1.2 Flash
On this page
Google's Gemini Omni 1.2 Flash — text-to-video and image-to-video at 720p, 6 to 15 seconds, with native audio. Guide it with up to five reference images or a start and end frame.
| modelId | gemini-omni-1-2-flash |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Default | gemini-omni-1-2-flash | POST /api/v1/generate | prompt, resolution, duration |
| Poll task | — | GET /api/v1/task/{id}?model=gemini-omni-1-2-flash | — |
Input parameters
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | Describe the subject, action, camera movement and sound. With frames, describe what happens between them. (example: A red paper boat drifts slowly across a calm pond at sunrise, gentle ripples, soft birdsong) |
| reference_image_urls | string[] | No | Up to 5 images the video should follow. Cannot be combined with start/end frames. (image URL) |
| first_frame_url | string[] | No | Optional. The video starts from this image. Cannot be combined with reference images. (image URL) |
| last_frame_url | string[] | No | Optional. The video ends on this image. Requires a start frame. (image URL) |
| resolution | string | Yes | Options: 720p (default: 720p) |
| duration | string | Yes | Clip length in seconds. Longer clips cost more. (options: 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15) (default: 6) |
| aspect_ratio | string | No | Options: 16:9 | 9:16 (default: 16:9) |
Example request
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"gemini-omni-1-2-flash","input":{"prompt":"A red paper boat drifts slowly across a calm pond at sunrise, gentle ripples, soft birdsong","reference_image_urls":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"first_frame_url":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"last_frame_url":["https://you.bot/examples/grok-imagine-text-to-image.jpg"],"resolution":"720p","duration":"6","aspect_ratio":"16:9"}}'