Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.
Gemini Omni 1.2 Flash Video Edit API
google/gemini-omni-1.2-flash/video-editGemini Omni 1.2 Flash Video Edit API transforms an existing clip up to 15 seconds using a text instruction across 360p to 4K output. It preserves source motion and framing while billing per rounded-up source second.
Drag and drop files, paste from clipboard, or provide a URL. Required. One MP4, MOV, or WebM source video (≤ 15 seconds, up to 100 MB).
1/1 files added
Examples
REST API
Quick Start
Complete your first Gemini Omni 1.2 Flash Video Edit 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/video-edit",
"input": {
"prompt": "Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.",
"video_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4",
"resolution": "720p"
}
}'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": "WLWLZZOY6LLZ5ZC4",
"status": "not_started",
"created_time": "2026-11-25T11:19:12"
}
}{
"code": 200,
"data": {
"task_id": "WLWLZZOY6LLZ5ZC4",
"status": "finished",
"files": [
{
"file_type": "video",
"file_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/video-edit/v1/01/output.mp4"
}
],
"created_time": "2026-11-25T11:19:12",
"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/video-edit",
"input": {
"prompt": "Relight the bright midday turquoise cove into a glowing rose-gold sunset with warm amber and violet reflections shimmering across the gentle water ripples and soft golden rim light catching the sea otter's wet fur. Preserve the floating sea otter's exact motion, shell tapping, kelp movement, and camera framing. No text, no logos, no watermarks.",
"video_url": "https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4",
"resolution": "720p"
}
}
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/video-edit. |
| callback_url | string (URL) | No | — | Public HTTP(S) URL for terminal task callbacks. |
| input.video_url | string | Yes | — | Public HTTP(S) URL of the source video (≤ 15 seconds, up to 100 MB). |
| input.prompt | string | Yes | — | Text editing instructions (1–20,000 characters). |
| input.resolution | string | No | 720p | 360p, 720p, 1080p, or 4k. |
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/video-edit | Public model identifier for asynchronous video generation. |
| Resolution | 360p | 720p | 1080p | 4k | Defaults to 720p. |
| Source video | Up to 15 s | Billed on ceil(source video seconds). |
| 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 Video Edit API FAQ
What is the Gemini Omni 1.2 Flash Video Edit API?
Gemini Omni 1.2 Flash Video Edit is a Google prompt-based video editing model supporting 360p to 4K output. The Gemini Omni 1.2 Flash Video Edit API edits clips up to 15 seconds using only a source video, text instruction, and target resolution, billed per rounded-up source second. It preserves source motion, pacing, and framing automatically while applying clean lighting, style, or object transformations. You can call it programmatically or try it from the playground above.
How long can the source video be in the Gemini Omni 1.2 Flash Video Edit API?
Up to 15 seconds (and up to 100 MB), containing a valid video track.
How is the Gemini Omni 1.2 Flash Video Edit API billed?
The server probes source video length, rounds up to the next whole second (ceil), and multiplies by the resolution rate: 5.46 (360p), 16.38 (720p), 24.58 (1080p), or 49.14 (4K) credits/s.
Can I set duration or aspect_ratio in Gemini Omni 1.2 Flash Video Edit?
No. Video Edit follows the source clip's duration and aspect ratio automatically and accepts only video_url, prompt, and resolution.
Can Gemini Omni 1.2 Flash Video Edit output 4K video?
Yes. Set resolution to 4k to export edited footage at 4K (49.14 credits per rounded-up source second).
What video formats work with Gemini Omni 1.2 Flash Video Edit?
MP4, MOV, or WebM files up to 100 MB via upload or public HTTP(S) URL.
When should I pick Gemini Omni 1.2 Flash Video Edit over Kling 4.0 Flash Video Edit?
Choose Gemini Omni 1.2 Flash Video Edit when you need 1080p or 4K output and simple single-video prompt editing; choose Kling 4.0 Flash Video Edit when you need to inject reference images, reference videos, or subject elements.



