Skip to content
youbot
Docs menu

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.

modelIdgemini-omni-1-2-flash
Modalityvideo
PricingSee this model on the Pricing page for the current per-call price (with your markup).

Operations

OperationmodelIdEndpointRequired input
Defaultgemini-omni-1-2-flashPOST /api/v1/generateprompt, resolution, duration
Poll task—GET /api/v1/task/{id}?model=gemini-omni-1-2-flash—

Input parameters

FieldTypeRequiredValues / example
promptstringYesDescribe 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_urlsstring[]NoUp to 5 images the video should follow. Cannot be combined with start/end frames. (image URL)
first_frame_urlstring[]NoOptional. The video starts from this image. Cannot be combined with reference images. (image URL)
last_frame_urlstring[]NoOptional. The video ends on this image. Requires a start frame. (image URL)
resolutionstringYesOptions: 720p (default: 720p)
durationstringYesClip length in seconds. Longer clips cost more. (options: 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15) (default: 6)
aspect_ratiostringNoOptions: 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"}}'