APIMart
Gemini Omni 1.2 Flash model icon
Video

Gemini Omni 1.2 Flash API

Gemini Omni 1.2 Flash API (gemini-omni-1.2-flash) is Google's multimodal video model for text-to-video, image-to-video, first/last-frame interpolation, video editing and extension. Set duration from 3 to 15 seconds, get audio in every clip, and pay per second by resolution on APIMart. The Ext channel gemini-omni-1.2-flash-ext covers the same core modes, including first and last frames, with a fixed price per second.

3–15s with audioEdit & extend video360p to 4K

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
10s
First / last frame
Reference Image
Source video
Output

Video link valid for 72 hours

Gemini Omni 1.2 Flash API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
gemini-omni-1.2-flash360P0.2Credits(~$0.02)/sec0.19Credits(~$0.019)/sec0.18Credits(~$0.018)/sec0.25Credits(~$0.025)/sec20%
720P0.6Credits(~$0.06)/sec0.57Credits(~$0.057)/sec0.54Credits(~$0.054)/sec0.75Credits(~$0.075)/sec20%
1080P0.904Credits(~$0.0904)/sec0.8588Credits(~$0.0859)/sec0.8136Credits(~$0.0814)/sec1.13Credits(~$0.113)/sec20%
4K1.808Credits(~$0.1808)/sec1.7176Credits(~$0.1718)/sec1.6272Credits(~$0.1627)/sec2.26Credits(~$0.226)/sec20%
gemini-omni-1.2-flash-ext360P0.16Credits(~$0.016)/sec0.152Credits(~$0.0152)/sec0.144Credits(~$0.0144)/sec0.2Credits(~$0.02)/sec20%
720P0.24Credits(~$0.024)/sec0.228Credits(~$0.0228)/sec0.216Credits(~$0.0216)/sec0.3Credits(~$0.03)/sec20%
1080P0.24Credits(~$0.024)/sec0.228Credits(~$0.0228)/sec0.216Credits(~$0.0216)/sec0.3Credits(~$0.03)/sec20%
4K0.56Credits(~$0.056)/sec0.532Credits(~$0.0532)/sec0.504Credits(~$0.0504)/sec0.7Credits(~$0.07)/sec20%

* Actual costs are subject to final output.

gemini-omni-1.2-flash

Pricing Details

Transparent pricing with no hidden fees. Pay only for what you use.

Token Pricing

Per 1M tokens

RateGoldCurrent pricePlatinumDiamond
Input12~$1.211.4~$1.1410.8~$1.08
Output96~$9.691.2~$9.1286.4~$8.64

Generate and Edit Videos with the Gemini Omni 1.2 Flash API

Send a prompt, images, first and last frames, or one source video to a single model ID. Gemini Omni 1.2 Flash returns 24 fps clips with dialogue, music or sound effects, from 360p up to upscaled 4K, and you choose the length with the duration parameter. The Ext channel (gemini-omni-1.2-flash-ext) accepts the same inputs, including first and last frames, and bills each second at a fixed rate.

Gemini Omni 1.2 Flash API Examples: Text to Video and First/Last Frames

Submit an asynchronous video task, then query the task ID until the video is ready.

  1. 1

    Authenticate Your Requests

    Save your APIMart API key in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> with every request.

  2. 2

    Submit a gemini-omni-1.2-flash Task

    POST model, prompt and the parameters you need to /v1/videos/generations and read data[0].task_id from the response. The example.com URLs are placeholders; replace them with your own public HTTP(S) URLs.

  3. 3

    Retrieve the Video Result

    Poll GET /v1/tasks/{task_id} until status is completed, then read data.result.videos[0].url[0] and the final charge in cost. If status is failed, check error.message. APIMart keeps results for 72 hours, so download the videos you want to keep.

    See the APIMart API documentation for authentication and task status details.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-omni-1.2-flash",
    "prompt": "Aerial shot over a misty mountain lake at sunrise, birds flying, slow forward camera move, soft wind and distant birdsong.",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 15
  }'

Gemini Omni 1.2 Flash API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: gemini-omni-1.2-flashFixed to gemini-omni-1.2-flash. For the Ext channel use gemini-omni-1.2-flash-ext: prompt is required, video inputs need edit or extend, and negative_prompt and system_prompt are available except with first and last frames.
promptstringRequiredDefault: —Scene description for text to video, or the motion, style or edit instruction for image and video inputs. Required in every mode, including image, frame, video and extend_from_task_id requests; omitting it returns HTTP 400.
durationintegerOptionalDefault: 10Output length in whole seconds, 3–15. First/last-frame interpolation allows up to 10. When extending, it sets the length of the added part (up to 10); when editing, it is ignored and the output follows the source video.
resolutionstringOptionalDefault: 720p360p, 720p, 1080p or 4k, case-insensitive; 2160p is treated as 4k. 1080p and 4k are upscaled. Sets the price tier.
aspect_ratiostringOptionalDefault: 16:916:9 landscape or 9:16 portrait. Any other value is treated as 16:9.
image_urlsarrayOptionalDefault: —Reference images as publicly accessible HTTP(S) URLs. Up to 10 images including first and last frames; one image is used as the opening shot, several act as subject references.
first_frame_imagestringOptionalDefault: —First frame. Alone, the video starts from it; with last_frame_image, the model interpolates between the two.
last_frame_imagestringOptionalDefault: —Last frame. Must be sent together with first_frame_image.
image_with_rolesarrayOptionalDefault: —Equivalent object form: [{"url": "...", "role": "first_frame"}, {"url": "...", "role": "last_frame"}]. Other roles are treated as reference images.
video_urlsarrayOptionalDefault: —One video to edit or extend, up to 15 seconds, as a publicly accessible direct HTTP(S) link.
omni_reference_task_typestringOptionalDefault: autoTask type: auto (default, detected from the inputs), edit, extend or reference (multi-image reference). Video inputs default to edit, so send extend to continue a video. text_to_video, image_to_video and reference_to_video are also accepted.
extend_from_task_idstringOptionalDefault: —ID of one of your earlier generation tasks to continue without uploading the video again. Edits by default; combine with omni_reference_task_type set to extend to continue it.

Gemini Omni API Model Family

Compare Gemini Omni video models on APIMart. One API key calls every version; see each model page for live pricing.

ModelBest forResolutionDuration
Gemini Omni 1.2 Flash APIThis pageLatest version: clips up to 15 seconds with audio, references, video editing and extension360p / 720p / 1080p / 4K3–15s
Gemini Omni 1.1 Flash APIUp to 10 images, first and last frames, video editing and extension360p / 720p / 1080p / 4K3–10s
Gemini Omni 1.1 Flash Ext APIDuration set in the request, priced by resolution and duration (reference video billed per second); text, one image, reference video or three-image fusion360p / 720p / 1080p / 4K4 / 6 / 8 / 10s
Gemini Omni Flash Preview API720p clips from text, up to 16 reference images or one video720p3–10s

Guides, comparisons and pricing analysis from the APIMart blog.