Submit Gemini Omni 1.2 Flash Video Edit Task
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"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"
}
}
EOFimport requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"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"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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'
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"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.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"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.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"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.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "WLWLZZOY6LLZ5ZC4",
"status": "not_started",
"created_time": "2026-11-25T11:19:12"
}
}{
"detail": "video_url is required for video-edit"
}{
"detail": "video_url is required for video-edit"
}Google
Gemini Omni 1.2 Flash Video Edit
The Gemini Omni 1.2 Flash Video Edit API edits a source video of up to 15 seconds from a text instruction, with output from 360p to 4K.
POST
/
api
/
generate
/
submit
Submit Gemini Omni 1.2 Flash Video Edit Task
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"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"
}
}
EOFimport requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"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"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
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'
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"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.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"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.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"google/gemini-omni-1.2-flash/video-edit\",\n \"input\": {\n \"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.\",\n \"video_url\": \"https://cdn.vidgo.ai/apis/models/google/gemini-omni-1.2-flash/text-to-video/v1/01/output.mp4\",\n \"resolution\": \"720p\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "WLWLZZOY6LLZ5ZC4",
"status": "not_started",
"created_time": "2026-11-25T11:19:12"
}
}{
"detail": "video_url is required for video-edit"
}{
"detail": "video_url is required for video-edit"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
360p to 4k.
Gemini Omni 1.2 Flash is part of Google’s Gemini Omni video lineup. Vidgo exposes it as four model IDs: Text to Video, Image to Video, Reference to Video and Video Edit.
Models
- google/gemini-omni-1.2-flash/video-edit — Video editing with Gemini Omni 1.2 Flash, source video up to 15 seconds, 360p to 4K.
Features
- Three fields:
prompt,video_urlandresolution. - Output length and framing follow the source video.
- Four resolutions:
360p,720p,1080p,4k.
Required parameters
prompt(string): Editing instructions, 1–20,000 characters after trimming.video_url(string): Public HTTP(S) URL of the source video, up to 15 seconds and 100 MB.
Optional parameters
resolution(string):360p,720p,1080por4k. Default720p.
Duration
The edited video has the same length as the source video.Output
The finished task returns one MP4 video in thefiles array of Query Task Status and the callback payload.
Examples
- Relight: turn a bright midday cove into a rose-gold sunset while the sea otter keeps its motion and framing,
720p(result).
Notes
- The source video is downloaded and measured at submission; it runs up to 15 seconds and must contain a video track.
- This model ID accepts
prompt,video_urlandresolutionininput; other fields return 400. Putmodelandcallback_urlat the request root. - Credits are reserved at submission and equal the source video length (rounded up to whole seconds) times the per-second rate of the chosen
resolution. A failed task is refunded in full. See the pricing page for current rates.
Body
application/json