Submit Gemini Omni 1.2 Flash Reference to Video Task
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--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"
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"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"
}
}
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/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'
}
})
};
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/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'
]
]),
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/reference-to-video\",\n \"input\": {\n \"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.\",\n \"reference_image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg\",\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg\"\n ],\n \"duration\": 5,\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"16:9\"\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/reference-to-video\",\n \"input\": {\n \"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.\",\n \"reference_image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg\",\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg\"\n ],\n \"duration\": 5,\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"16:9\"\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/reference-to-video\",\n \"input\": {\n \"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.\",\n \"reference_image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg\",\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg\"\n ],\n \"duration\": 5,\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "VUDK1P7TS5FURNPB",
"status": "not_started",
"created_time": "2026-11-25T11:17:30"
}
}{
"detail": "reference-to-video requires reference_image_urls or reference_video_urls"
}{
"detail": "reference-to-video requires reference_image_urls or reference_video_urls"
}Google
Gemini Omni 1.2 Flash Reference to Video
The Gemini Omni 1.2 Flash Reference to Video API guides a 3–15 second video with up to 10 reference images and 3 reference videos, at up to 4K.
POST
/
api
/
generate
/
submit
Submit Gemini Omni 1.2 Flash Reference to Video Task
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--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"
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"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"
}
}
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/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'
}
})
};
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/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'
]
]),
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/reference-to-video\",\n \"input\": {\n \"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.\",\n \"reference_image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg\",\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg\"\n ],\n \"duration\": 5,\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"16:9\"\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/reference-to-video\",\n \"input\": {\n \"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.\",\n \"reference_image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg\",\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg\"\n ],\n \"duration\": 5,\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"16:9\"\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/reference-to-video\",\n \"input\": {\n \"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.\",\n \"reference_image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-01.jpg\",\n \"https://cdn.vidgo.ai/apis/models/bytedance/seedream-v5.0-flash/edit/v1/01/input-02.jpg\"\n ],\n \"duration\": 5,\n \"resolution\": \"720p\",\n \"aspect_ratio\": \"16:9\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "VUDK1P7TS5FURNPB",
"status": "not_started",
"created_time": "2026-11-25T11:17:30"
}
}{
"detail": "reference-to-video requires reference_image_urls or reference_video_urls"
}{
"detail": "reference-to-video requires reference_image_urls or reference_video_urls"
}- 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.
Models
- google/gemini-omni-1.2-flash/reference-to-video — Reference-to-video with Gemini Omni 1.2 Flash from up to 10 images and 3 videos, 360p to 4K.
Features
- Up to 10 reference images and 3 reference videos in one request.
- Any whole-second duration from 3 to 15 seconds.
- Four resolutions:
360p,720p,1080p,4k. - Landscape (
16:9) or portrait (9:16) framing.
Required parameters
prompt(string): Scene description, 1–20,000 characters after trimming.- At least one of
reference_image_urlsorreference_video_urls.
Optional parameters
reference_image_urls(string[]): Up to 10 public HTTP(S) image URLs.reference_video_urls(string[]): Up to 3 public HTTP(S) video URLs, each up to 15 seconds.duration(integer): Output length,3–15seconds. Default8.resolution(string):360p,720p,1080por4k. Default720p.aspect_ratio(string):16:9or9:16. Default16:9.
Output
The finished task returns one MP4 video in thefiles array of Query Task Status and the callback payload.
Examples
- Character and location references: the sound recordist from the first image kneels by a steaming mineral pool on the plain from the second image, 5 seconds,
720p,16:9(result).
Notes
- Reference videos (MP4, MOV or WebM, up to 100 MB each) are downloaded and measured at submission; each runs up to 15 seconds and must contain a video track.
- Empty strings and empty arrays count as omitted, so the default applies.
- Put
modelandcallback_urlat the request root, next toinput.inputaccepts the fields listed above; other fields return 400. - Credits are reserved at submission and equal the output
durationtimes the per-second rate of the chosenresolution. A failed task is refunded in full. See the pricing page for current rates.
Body
application/json