NeuralBridge
Sign in Download IDE
Google

Gemini Omni 1.2 Flash

video

A Google video model: clips with sound of 3–15 seconds in 360p, 720p, 1080p and 4K from text, first and last frames and references. It edits, extends and upscales your video.

Specifications

Context window
—
Max tokens in response
—
Vendor
Google
Release
—
Login
text, images, video
Output
video

Capabilities

multi_reftxt2vidimg2vidfirst_last_framevideo_edit

Description

What it does

  • Text to video (task_type text_to_video): describe the scene, the camera movement and the sound. Length 3–15 s (default 10), resolution 360p, 720p (default), 1080p or 4k, aspect ratio 16:9 (default) or 9:16.
  • Image to video (image_to_video): a first frame (first_frame) and, if needed, a last one (last_frame). With a last frame, up to 10 s.
  • Video from references (reference_to_video): images (reference_image) and videos (reference_video) set the character, object, style and motion. Up to 10 images and 3 videos.
  • Video edit (edit): your 3–15 s video (video) and text saying what to change; up to 2 hint images can be attached. The result has the length of the video.
  • Extension (extend): a video of any length and how many seconds to add (3–10). The clip is the last 30 s of the source at most plus the continuation; up to 2 images can be attached.
  • Upscaling (upscale): a video up to 15 s, 360p to 720p or 1080p, 720p to 1080p or 4k. No text is needed.
  • seed is a whole number: the same seed and request give almost the same clip (except upscaling).
  • The model always creates sound: speech, music, effects. 24 fps, MP4.
  • Without task_type (auto) the mode follows the files: no files — text to video, frames — image to video, references — from references. Edit, extension and upscaling need task_type.

File requirements

  • Images: PNG, JPEG, WebP, HEIC, HEIF, up to 20 MB. Up to 10 images per request.
  • Videos: MP4 or MOV (also WebM, MPEG, 3GP, FLV, WMV). Up to 3 videos per request.
  • A file goes as an https link or a data URI in media: [{"type": "first_frame" | "last_frame" | "reference_image" | "reference_video" | "video", "url": "…"}]. A finished clip of this model can be passed back right away with the link from the response — to edit, extend or upscale it.

How to call

POST /v1/videos/generations (or /v1/videos/animations, /v1/videos/references, /v1/videos/edits) with a JSON body:

{"model": "google/gemini-omni-1.2-flash-02948", "prompt": "A red paper boat floats on a calm lake at sunrise, soft birdsong", "duration": 5, "resolution": "720p", "aspect_ratio": "16:9"}

Extending a finished clip by 4 s:

{"model": "google/gemini-omni-1.2-flash-02948", "task_type": "extend", "prompt": "The camera rises and reveals mountains", "duration": 4, "media": [{"type": "video", "url": "https://…/video.mp4"}]}

Upscaling 360p to 1080p:

{"model": "google/gemini-omni-1.2-flash-02948", "task_type": "upscale", "resolution": "1080p", "media": [{"type": "video", "url": "https://…/video.mp4"}]}

Response

The response arrives when the video is ready: usually in 20–60 seconds, around two minutes or more for 4k. Set a client timeout of at least 16 minutes. data[0].url is a link to the MP4 file (it lives one day, save the file right away), duration_seconds is the clip length.

Errors

  • 400: invalid request; the error text names the field. Code input_moderation: the request did not pass the content check (for example, recognizable real people). Rejected requests are not billed.
  • 402: not enough funds on the balance. 429: the model is overloaded. 502 or 504: the video was not received.

Price

You pay per token: the clip (per second by resolution: 360p 1931, 720p 5792, 1080p 8688, 4k 17376 tokens), the input (an image is 1120 tokens, input video, text) and the model's reasoning. Upscaling is billed by the resolution pair; an extension bills only the new seconds. The prices are shown on this page.

Parameters

resolutiondefault: 720p · 360p · 720p · 1080p · 4k
Video resolution, for example 720P or 1080P. Also affects the price.
durationdefault: 10 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10 · 11 · 12 · 13 · 14 · 15
Length in seconds: of the clip for video, of the track for music. Also affects the price.
seed
Pins randomness: repeating a request with the same seed and parameters returns the same result.
prompt
The request text: what you want to get. For video: the scene, camera movement and light; for music: genre, mood, instruments, tempo. The length limit depends on the model.
flf_duration
How long the video can be when both a first and a last frame are given, in seconds.
extend_durationdefault: 5 · 3 · 4 · 5 · 6 · 7 · 8 · 9 · 10
How many seconds to add to the video; the result is the end of the source video plus the continuation.
aspect_ratiodefault: 16:9 · 16:9 · 9:16
Aspect ratio of the result, for example 16:9, 9:16 or 1:1.
task_typedefault: auto · auto · text_to_video · image_to_video · reference_to_video · edit · extend · upscale
auto lets the model decide; reference makes a new video from the files; edit edits a video (duration -1, adaptive frame); extend continues a video (adaptive frame).
media
A list of files {type, url}: first_frame, last_frame, reference_image, reference_video (https only), reference_audio.
images
1 to 16 PNG, JPEG or WEBP images: edits, style transfer, building a scene from objects. Up to 25 MB each, 50 MB in total.
reference_images
How many reference images can be passed.
reference_videos
How many videos can be passed (30 s in total at most).
edit_reference_images
How many images can be attached to a video edit or extension.
edit_video_seconds
Seconds in the video the model edits.
upscale_video_seconds
The longest video whose resolution can be increased, in seconds.
upscale_pairs360p>720p · 360p>1080p · 720p>1080p · 720p>4k
Which resolution a video can be upscaled from and to.
reference_image_mb
Megabytes per image.
video_tokens_per_second360p:1931 · 720p:5792 · 1080p:8688 · 4k:17376
How many video tokens one second costs at each resolution (for price estimates).
upscale_tokens_per_second360p>720p:2896 · 360p>1080p:5792 · 720p>1080p:2896 · 720p>4k:11584
How many tokens one second of upscaled video costs for each resolution pair.

Endpoints

POSThttps://api.neuralbridge.ru/v1/videos/generationsprimary
Videos — generations — Generate video from a text description.
POSThttps://api.neuralbridge.ru/v1/video/generations
Videos — generations (legacy path) — The early singular path for video generation. Still accepted, but use /v1/videos/generations in new integrations.

Code examples

bash
curl https://api.neuralbridge.ru/v1/videos/generations \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "google/gemini-omni-1.2-flash-02948", "prompt": "Дрон летит над осенним лесом", "resolution": "1080P", "duration": 5}'

Other Google models

For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Video second 360p / second3,4758 ₽
Video second 720p / second10,4256 ₽
Video second 1080p / second15,6384 ₽
Video second 4K / second31,2768 ₽
Upscaling resolution 720p → 4k / second20,8512 ₽
Upscaling resolution 360p → 720p / second5,2128 ₽
Upscaling resolution 360p → 1080p / second10,4256 ₽
Upscaling resolution 720p → 1080p / second5,2128 ₽
Input: text, images, video / 1M tokens225,00 ₽
Output: video / 1M tokens1 800,00 ₽
Model reasoning / 1M tokens1 350,00 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
google/gemini-omni-1.2-flash-02948
Get API key