Slow cinematic tracking shot across the steaming basalt geothermal plain from the second reference image at dawn: the woman sound recordist from the first reference image kneels beside a mineral pool adjusting her headphones and aiming her furry microphone toward rising steam plumes under golden low-angle sunlight. Keep her face, dark curly hair, olive jacket, and audio gear consistent. Audio: gentle wind and steaming geothermal vents.
Gemini Omni 1.2 Flash Reference to Video API
google/gemini-omni-1.2-flash/reference-to-videoGemini Omni 1.2 Flash Reference to Video API combines up to 10 reference images and 3 reference videos into 3–15 second clips up to 4K. It keeps character identity, props, and style consistent with output-only per-second billing.
Drag and drop files, paste from clipboard, or provide a URL. Up to 10 reference images.
2/10 files added
Drag and drop files, paste from clipboard, or provide a URL. Up to 3 reference videos, each ≤ 15 seconds (up to 100 MB).
Examples
REST API
Quick Start
Complete your first Gemini Omni 1.2 Flash Reference to Video request in three steps across 360p to 4K resolutions.
Connect to the Vidgo API
Create an API key on your server and pass it as a Bearer token.
- Endpoint
- POST
https://api.vidgo.ai/api/generate/submit - Authentication
- Authorization: Bearer VIDGO_API_KEY
Submit one video task
POST the model ID and mode inputs to /api/generate/submit.
curl --request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data '{
"model": "google/gemini-omni-1.2-flash/reference-to-video",
"input": {
"prompt": "Slow cinematic tracking shot across the steaming basalt geothermal plain from the second reference image at dawn: the woman sound recordist from the first reference image kneels beside a mineral pool adjusting her headphones and aiming her furry microphone toward rising steam plumes under golden low-angle sunlight. Keep her face, dark curly hair, olive jacket, and audio gear consistent. Audio: gentle wind and steaming geothermal vents.",
"reference_image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg",
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg"
],
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}'Wait for the result
Poll status until finished or failed, then read data.files[].file_url.
Track status
GET https://api.vidgo.ai/api/generate/status/{task_id}Poll while not_started or running; read data.files[].file_url when finished.
not_startedrunningfinishedfailed{
"code": 200,
"data": {
"task_id": "VUDK1P7TS5FURNPB",
"status": "not_started",
"created_time": "2026-11-25T11:17:30"
}
}{
"code": 200,
"data": {
"task_id": "VUDK1P7TS5FURNPB",
"status": "finished",
"files": [
{
"file_type": "video",
"file_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/reference-to-video/v1/01/output.mp4"
}
],
"created_time": "2026-11-25T11:17:30",
"error_message": null,
"progress": 100
}
}Complete runnable example
End-to-end script with submission, polling, terminal checks, and output extraction.
set -euo pipefail
: "${VIDGO_API_KEY:?Set VIDGO_API_KEY in your environment}"
REQUEST_BODY=$(cat <<'JSON'
{
"model": "google/gemini-omni-1.2-flash/reference-to-video",
"input": {
"prompt": "Slow cinematic tracking shot across the steaming basalt geothermal plain from the second reference image at dawn: the woman sound recordist from the first reference image kneels beside a mineral pool adjusting her headphones and aiming her furry microphone toward rising steam plumes under golden low-angle sunlight. Keep her face, dark curly hair, olive jacket, and audio gear consistent. Audio: gentle wind and steaming geothermal vents.",
"reference_image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg",
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg"
],
"duration": 5,
"resolution": "720p",
"aspect_ratio": "16:9"
}
}
JSON
)
SUBMIT_RESPONSE=$(curl --silent --show-error --fail-with-body \
--request POST \
--url "https://api.vidgo.ai/api/generate/submit" \
--header "Authorization: Bearer $VIDGO_API_KEY" \
--header "Content-Type: application/json" \
--data "$REQUEST_BODY")
TASK_ID=$(printf '%s' "$SUBMIT_RESPONSE" | jq -r '.data.task_id // .task_id // empty')
if [ -z "$TASK_ID" ]; then
printf 'Submit response did not include task_id:
%s
' "$SUBMIT_RESPONSE" >&2
exit 1
fi
while true; do
STATUS_RESPONSE=$(curl --silent --show-error --fail-with-body \
--url "https://api.vidgo.ai/api/generate/status/$TASK_ID" \
--header "Authorization: Bearer $VIDGO_API_KEY")
STATUS=$(printf '%s' "$STATUS_RESPONSE" | jq -r '.data.status // .status // empty')
case "$STATUS" in
finished)
printf '%s' "$STATUS_RESPONSE" | jq -r '(.data.files // .files // [])[]?.file_url'
break
;;
failed)
printf '%s' "$STATUS_RESPONSE" | jq -r '.data.error_message // .error_message // "Generation failed"' >&2
exit 1
;;
not_started|running)
sleep 2
;;
*)
printf 'Unexpected task status: %s
' "$STATUS" >&2
exit 1
;;
esac
doneRequest Parameters
Place model and optional callback_url at the root, and mode fields inside input.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| model | string | Yes | — | Fixed to google/gemini-omni-1.2-flash/reference-to-video. |
| callback_url | string (URL) | No | — | Public HTTP(S) URL for terminal task callbacks. |
| input.prompt | string | Yes | — | Scene description referencing your uploaded assets (1–20,000 characters). |
| input.reference_image_urls | string[] | No | — | Up to 10 public HTTP(S) image URLs. |
| input.reference_video_urls | string[] | No | — | Up to 3 reference videos, each ≤ 15 seconds (up to 100 MB). |
| input.duration | integer | No | 8 | Whole seconds from 3 to 15. |
| input.resolution | string | No | 720p | 360p, 720p, 1080p, or 4k. |
| input.aspect_ratio | string | No | 16:9 | 16:9 or 9:16. |
Response Fields
Submit returns task_id immediately; status returns generated video files or error_message.
| Field | Type | Description |
|---|---|---|
| code | integer | Business code; 0 or 200 indicates success. |
| data.task_id | string | Unique task ID for status polling. |
| data.status | string | not_started | running | finished | failed |
| data.progress | number | Completion percentage (0–100). |
| data.files[].file_url | string | Direct URL of the generated video. |
| data.files[].file_type | string | Output media type (video). |
| data.error_message | string | null | Failure detail when status is failed. |
Task Lifecycle
Poll only while not_started or running; stop on finished or failed.
not_startedAccepted and queued.
runningGeneration in progress; continue polling.
finishedComplete; read video URL from data.files[].file_url.
failedFailed; inspect error_message and stop polling.
Polling and Errors
- Authentication401 means the Bearer API key is missing or invalid.
- Validation400 means a parameter, duration (3–15 s; ≤10 s with last frame), or input video length (≤15 s) is invalid.
- Polling intervalPoll every 5–10 seconds, or configure callback_url.
Model Specifications
| Specification | Value | Description |
|---|---|---|
| Model | google/gemini-omni-1.2-flash/reference-to-video | Public model identifier for asynchronous video generation. |
| Resolution | 360p | 720p | 1080p | 4k | Defaults to 720p. |
| Duration | 3–15 s | Defaults to 8 s. |
| Aspect ratio | 16:9 | 9:16 | Defaults to 16:9. |
| Per-second rate | 5.46 / 16.38 / 24.58 / 49.14 credits/s | For 360p / 720p / 1080p / 4k ($0.0273 / $0.0819 / $0.1229 / $0.2457 per second). |
Related Models
Gemini Omni 1.2 Flash Reference to Video API FAQ
What is the Gemini Omni 1.2 Flash Reference to Video API?
Gemini Omni 1.2 Flash Reference to Video is a Google multi-reference video model outputting 360p to 4K clips. The Gemini Omni 1.2 Flash Reference to Video API combines up to 10 reference images and 3 reference videos with a text prompt to generate 3–15 second videos billed strictly on output length. Visual conditioning preserves character identity, props, and aesthetic style across shots without reference surcharges. You can call it programmatically or try it from the playground above.
How many reference assets does the Gemini Omni 1.2 Flash Reference to Video API accept?
Up to 10 images in reference_image_urls and up to 3 videos in reference_video_urls; at least one of the two arrays is required.
How long can each reference video be in Gemini Omni 1.2 Flash?
Every reference video must be 15 seconds or shorter and up to 100 MB.
Do reference videos add extra charges in Gemini Omni 1.2 Flash?
No. Reference to Video bills output duration × resolution rate (5.46 / 16.38 / 24.58 / 49.14 credits/s).
What durations work in Gemini Omni 1.2 Flash Reference to Video?
Any whole number of seconds from 3 to 15, defaulting to 8 seconds.
Can I use only reference videos without reference images in Gemini Omni 1.2 Flash?
Yes. Either reference_image_urls, reference_video_urls, or both may be supplied.
Which resolutions work in the Gemini Omni 1.2 Flash Reference to Video API?
Resolutions 360p, 720p (default), 1080p, and 4K, in 16:9 (default) or 9:16.



