Gemini Omni Flash 1.2 is Google's multimodal video model. This endpoint generates video from a text prompt combined with up to ten reference images and up to three reference videos, each addressable in the prompt, using them as visual references for subjects and settings. Output is available at 360p, 720p, 1080p, or 4K, with durations from 3 to 15 seconds.
Gemini Omni Flash 1.2 Reference to Video (google/gemini-omni-flash/v1.2/reference-to-video) is a video model from Google. Pricing via AIgateway: $0.027 per second. Call it via https://api.aigateway.sh/v1/videos/generations — set model="google/gemini-omni-flash/v1.2/reference-to-video".
curl https://api.aigateway.sh/v1/videos/generations \
-H "Authorization: Bearer $AIGATEWAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/gemini-omni-flash/v1.2/reference-to-video","prompt":"a slow drone shot over a mountain lake","duration":5}'{
"model": "google/gemini-omni-flash/v1.2/reference-to-video",
"prompt": "A drone shot of a mountain lake at golden hour",
"duration": 5, // seconds
"aspect_ratio": "16:9"
}
// optional "image_url" to animate a seed image
// Response is an async job — poll /v1/jobs/<id> until status === "completed".{
"id": "job_abc123",
"status": "queued", // queued | processing | completed | failed
"model": "google/gemini-omni-flash/v1.2/reference-to-video",
"created": 1776947082
}
// After completion:
{
"id": "job_abc123",
"status": "completed",
"result": {
"url": "https://media.aigateway.sh/video/abc123.mp4",
"duration": 5,
"resolution": "1920x1080"
}
}import os, requests
r = requests.post(
"https://api.aigateway.sh/v1/videos/generations",
headers={"Authorization": f"Bearer {os.environ['AIGATEWAY_API_KEY']}"},
json={
"model": "google/gemini-omni-flash/v1.2/reference-to-video",
"prompt": "A drone shot of a mountain lake",
"duration": 5,
"aspect_ratio": "16:9"
},
)
print(r.json())