Output resolution
Supports 360p, 720p, 1080p, 4k from the published endpoint schema.
3-15 second video generation, source-video edits, reusable characters, and extensions
curl -X POST https://runapi.ai/api/v1/gemini_omni/text_to_video \
-H "Authorization: Bearer $RUNAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-omni-flash-1-2",
"prompt": "Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.",
"duration_seconds": 3
}'
import { GeminiOmniClient } from "@runapi.ai/gemini-omni";
const client = new GeminiOmniClient();
const result = await client.textToVideo.run({
model: "gemini-omni-flash-1-2",
prompt: "Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.",
duration_seconds: 3,
});
import os
import requests
response = requests.post(
"https://runapi.ai/api/v1/gemini_omni/text_to_video",
headers={"Authorization": f"Bearer {os.environ['RUNAPI_API_KEY']}"},
json={"model":"gemini-omni-flash-1-2","prompt":"Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.","duration_seconds":3}
)
response.raise_for_status()
<?php
$client = curl_init("https://runapi.ai/api/v1/gemini_omni/text_to_video");
curl_setopt_array($client, [
CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("RUNAPI_API_KEY"), "Content-Type: application/json"],
CURLOPT_POSTFIELDS => json_encode([
'model' => 'gemini-omni-flash-1-2',
'prompt' => 'Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.',
'duration_seconds' => 3,
])
]);
$response = curl_exec($client);
RunApi client = new RunApi(System.getenv("RUNAPI_API_KEY"));
Task task = client.textToVideo().run({"model":"gemini-omni-flash-1-2","prompt":"Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.","duration_seconds":3});
task.waitForResult();
require "runapi/gemini_omni"
client = RunApi::GeminiOmni::Client.new
result = client.text_to_video.run(
model: "gemini-omni-flash-1-2",
prompt: "Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.",
duration_seconds: 3
)
client := runapi.NewClient(os.Getenv("RUNAPI_API_KEY"))
task, err := client.textToVideo.Run({"model":"gemini-omni-flash-1-2","prompt":"Create a 1080p neon city tracking shot with a reusable character walking through rain while a calm narrator speaks.","duration_seconds":3})
if err != nil { log.Fatal(err) }
task.Wait()
$ runapi generate \
--model gemini-omni-flash-1-2 \
--endpoint text_to_video \
--wait
6 versions available
Use gemini-omni-flash-1-2 for text-to-video, reference-guided generation, source-video editing, or first and last frame control. Generation duration is an integer from 3 to 15 seconds.
Create reusable characters from an image and include up to two of your own character IDs in generation or editing. Characters cannot be combined with first or last frame control.
Pick any model and generate in seconds.
| Provider | |
| Model ID | gemini-omni-flash-1-2 |
| Modality | Video |
| Task types | Asynchronous |
| API endpoint | /api/v1/gemini_omni/text_to_video, /api/v1/gemini_omni/extend_video |
| Billing unit | second |
| Input parameters | aspect_ratio, callback_url, character_ids, duration_seconds, first_frame_image_url, last_frame_image_url, model, output_resolution, prompt, reference_image_urls, reference_video_urls, seed, source_task_id |
| Max resolution | 360p, 720p, 1080p, 4k |
| Aspect ratios | 16:9, 9:16, auto |
| Catalog status | Operational |
Sign up for free and create an API key for gemini-omni-flash-1-2 from the dashboard.
POST to /api/v1/gemini_omni/text_to_video with the gemini-omni-flash-1-2 model slug and your parameters.
Poll the task or follow the callback to retrieve the completed gemini-omni-flash-1-2 result.
Supports 360p, 720p, 1080p, 4k from the published endpoint schema.
Configure 11 documented parameters, including aspect_ratio, character_ids, duration_seconds, first_frame_image_url, last_frame_image_url.
Exposes 2 public endpoint(s): text_to_video, extend_video.
Asynchronous tasks accept a callback URL for completion notifications.
seedDeterministic generation seed.
promptVideo generation or edit prompt.
aspect_ratioOutput aspect ratio. (16:9, 9:16, auto)
callback_urlWebhook URL for terminal Task delivery.
character_idsOwn completed character IDs; character images do not consume reference slots.
duration_secondsGenerated seconds, required except video edit; first and last frames allow at most 10 seconds.
output_resolutionOutput resolution. (360p, 720p, 1080p, 4k)
last_frame_image_urlLast frame, requires first frame and duration of 3–10 seconds.
reference_image_urlsReference images, one slot each; up to seven shared slots with video.
reference_video_urlsSource video for edit; consumes two reference slots and determines output and billable duration.
first_frame_image_urlFirst frame, exclusive with reference images, videos and characters.
Generate product launch clips and short-form ads from a text brief, cutting production from weeks to hours.
Convert lesson scripts into animated explainer videos at scale without a camera or crew.
Produce viral short-form content for social platforms directly from a prompt.
Use up to six reference images and one reference_video_urls item. The video occupies two of the seven reference slots. Characters do not occupy reference slots.
Set first_frame_image_url and optionally last_frame_image_url. A last frame requires a first frame. Frame control cannot be combined with reference images, source video, or character IDs.
Use extend_video with a completed Flash 1.2 generation or extension task from your account. The source must be 360p or 720p and no longer than 15 seconds. Add an integer 3-10 seconds and optionally up to three reference images. The result contains the original video and the new segment.
Generation and extension return asynchronous tasks. Query the task or supply callback_url for completion notifications. For an extension, the returned video duration includes both the original and added segments.
Pass the model ID shown in the quickstart.
Per-key rate limits scale with your usage tier. The pricing page shows current limits. If you need higher throughput, contact support to discuss tier upgrades.
Yes. Variant is a parameter in the request. Switch by changing the model ID — no code changes, no re-authentication, no separate billing setup. All variants share the same API key and request shape.
Where streaming is available, RunAPI streams end-to-end. LLM models support token-level streaming. Media models use async task polling or webhook callbacks for result delivery.
Open an issue on the public GitHub repo or email support at [email protected]. Include the task ID and model ID so the team can investigate the specific generation.
No. Your RunAPI API key is enough to access this variant and every other model in the catalog. You do not need accounts with the underlying provider.
We're here to help with enterprise setup, integrations, and technical questions.
Contact Us