Gentle seamless cinematic transition inside the sunlit rehearsal room: faded sepia archival tones gradually bloom into rich natural living color as the violinist draws her bow smoothly, the center accordionist gently compresses the bellows, and the conductor lifts her baton to cue the phrase. Natural daylight through the tall window, faithful preservation of all three musicians and instruments. Audio: warm chamber violin and accordion chord.
Gemini Omni 1.2 Flash Image to Video API
google/gemini-omni-1.2-flash/image-to-videoGemini Omni 1.2 Flash Image to Video API animates one start frame or a first-and-last frame pair into 3–15 second 360p–4K clips. It locks your composition and visual identity while executing controlled camera transitions and motion.
Drag and drop files, paste from clipboard, or provide a URL. Required. 1–2 images: first frame, plus optional last frame (caps duration at 10 s).
2/2 files added
Examples
REST API
Quick Start
Complete your first Gemini Omni 1.2 Flash Image 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/image-to-video",
"input": {
"prompt": "Gentle seamless cinematic transition inside the sunlit rehearsal room: faded sepia archival tones gradually bloom into rich natural living color as the violinist draws her bow smoothly, the center accordionist gently compresses the bellows, and the conductor lifts her baton to cue the phrase. Natural daylight through the tall window, faithful preservation of all three musicians and instruments. Audio: warm chamber violin and accordion chord.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/input-01.jpg",
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/output.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": "P8Z97PVFRCAVP3A3",
"status": "not_started",
"created_time": "2026-11-25T11:17:28"
}
}{
"code": 200,
"data": {
"task_id": "P8Z97PVFRCAVP3A3",
"status": "finished",
"files": [
{
"file_type": "video",
"file_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/image-to-video/v1/01/output.mp4"
}
],
"created_time": "2026-11-25T11:17:28",
"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/image-to-video",
"input": {
"prompt": "Gentle seamless cinematic transition inside the sunlit rehearsal room: faded sepia archival tones gradually bloom into rich natural living color as the violinist draws her bow smoothly, the center accordionist gently compresses the bellows, and the conductor lifts her baton to cue the phrase. Natural daylight through the tall window, faithful preservation of all three musicians and instruments. Audio: warm chamber violin and accordion chord.",
"image_urls": [
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/input-01.jpg",
"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/02/output.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/image-to-video. |
| callback_url | string (URL) | No | — | Public HTTP(S) URL for terminal task callbacks. |
| input.prompt | string | Yes | — | Motion and transition guidance (1–20,000 characters). |
| input.image_urls | string[] | Yes | — | 1–2 image URLs: first frame, plus optional last frame. |
| input.duration | integer | No | 8 | 3–15 seconds (max 10 seconds when 2 frames are provided). |
| 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/image-to-video | Public model identifier for asynchronous video generation. |
| Resolution | 360p | 720p | 1080p | 4k | Defaults to 720p. |
| Duration | 3–15 s (≤ 10 s with last frame) | 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 Image to Video API FAQ
What is the Gemini Omni 1.2 Flash Image to Video API?
Gemini Omni 1.2 Flash Image to Video is a Google video model that animates a start frame or interpolates between a first and last frame. The Gemini Omni 1.2 Flash Image to Video API renders 3–15 second clips (up to 10 seconds with two frames) across 360p, 720p, 1080p, and 4K from 5.46 credits per second. Keyframe anchoring keeps composition and visual identity intact while executing smooth camera movement. You can call it programmatically or try it from the playground above.
Does the Gemini Omni 1.2 Flash Image to Video API support a last frame?
Yes. Pass 2 URLs in image_urls—first frame then last frame—and set duration between 3 and 10 seconds.
Why is duration limited to 10 seconds with two frames in Gemini Omni 1.2 Flash?
First-and-last frame interpolation supports up to 10 seconds to maintain smooth visual bridging; single-frame animation supports up to 15 seconds.
Is a prompt required for Gemini Omni 1.2 Flash Image to Video?
Yes. A non-empty prompt (1–20,000 characters) is required.
What resolutions can the Gemini Omni 1.2 Flash Image to Video API render?
360p (5.46 credits/s), 720p (16.38 credits/s), 1080p (24.58 credits/s), and 4K (49.14 credits/s).
Does adding a last frame change the price in Gemini Omni 1.2 Flash?
No. Billing depends solely on output duration and resolution.
Can I combine image_urls with reference images in Gemini Omni 1.2 Flash?
image_urls is dedicated to Image to Video mode; use Reference to Video mode when passing up to 10 reference images and 3 reference videos.



