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/text-to-video",
"input": {
"prompt": "Sunlit marine documentary shot off a calm turquoise rocky cove: a wild sea otter floats leisurely on its back amid gently swaying golden kelp ribbons, tapping a small clam shell against a flat stone on its chest while clear ripples scatter bright afternoon sunlight across its wet fur. Smooth floating camera at water level, natural fluid physics, crisp 1080p detail. Audio: gentle lapping coastal water and soft shell taps. No text, no logos, no watermarks.",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "WQP14VSIQH4BAZCP",
"status": "not_started",
"created_time": "2026-11-25T11:17:26"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}Google
Gemini Omni 1.2 Flash Text to Video
The Gemini Omni 1.2 Flash Text to Video API turns a prompt into a 3–15 second video at 360p, 720p, 1080p or 4K, in 16:9 or 9:16.
POST
/
api
/
generate
/
submit
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/text-to-video",
"input": {
"prompt": "Sunlit marine documentary shot off a calm turquoise rocky cove: a wild sea otter floats leisurely on its back amid gently swaying golden kelp ribbons, tapping a small clam shell against a flat stone on its chest while clear ripples scatter bright afternoon sunlight across its wet fur. Smooth floating camera at water level, natural fluid physics, crisp 1080p detail. Audio: gentle lapping coastal water and soft shell taps. No text, no logos, no watermarks.",
"duration": 5,
"resolution": "1080p",
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"data": {
"task_id": "WQP14VSIQH4BAZCP",
"status": "not_started",
"created_time": "2026-11-25T11:17:26"
}
}{
"detail": "prompt is required"
}{
"detail": "prompt is required"
}- 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 for quick, low-cost drafts or 720p, 1080p and 4k for final output, in landscape or portrait framing.
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/text-to-video — Text-to-video with Gemini Omni 1.2 Flash, 3–15 seconds, 360p to 4K.
Features
- Prompts up to 20,000 characters.
- 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.
Optional parameters
duration(integer): Output length,3–15seconds. Default8.resolution(string):360p,720p,1080por4k. Default720p.aspect_ratio(string):16:9or9:16. Default16:9.
Resolution
resolution | Typical use |
|---|---|
360p | Fast, low-cost prompt tests |
720p | Default; social clips and drafts |
1080p | Full HD delivery |
4k | Highest detail for final masters |
Output
The finished task returns one MP4 video in thefiles array of Query Task Status and the callback payload.
Examples
- Marine documentary: a sea otter floats among golden kelp tapping a clam shell, 5 seconds,
1080p,16:9(result). - Vertical studio shot: a glassblower turns a glowing amber orb in a furnace-lit studio, 5 seconds,
720p,9:16(result).
Notes
- 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