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/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"
}
}
'{
"code": 200,
"data": {
"task_id": "P8Z97PVFRCAVP3A3",
"status": "not_started",
"created_time": "2026-11-25T11:17:28"
}
}{
"detail": "image_urls is required for image-to-video"
}{
"detail": "image_urls is required for image-to-video"
}Google
Gemini Omni 1.2 Flash Image to Video
The Gemini Omni 1.2 Flash Image to Video API animates a first frame, with an optional last frame, into a 3–15 second video at up to 4K.
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/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"
}
}
'{
"code": 200,
"data": {
"task_id": "P8Z97PVFRCAVP3A3",
"status": "not_started",
"created_time": "2026-11-25T11:17:28"
}
}{
"detail": "image_urls is required for image-to-video"
}{
"detail": "image_urls is required for image-to-video"
}- 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/image-to-video — Image-to-video with Gemini Omni 1.2 Flash from a first frame or first and last frames, 360p to 4K.
Features
- First frame, or first and last frames, via
image_urls. - Any whole-second duration from 3 to 15 seconds (3 to 10 with a last frame).
- Four resolutions:
360p,720p,1080p,4k. - Landscape (
16:9) or portrait (9:16) framing.
Input modes
- First frame: one URL in
image_urls;duration3–15 seconds. - First and last frames: two URLs in
image_urls, first frame then last frame;duration3–10 seconds.
Required parameters
prompt(string): Motion and scene direction, 1–20,000 characters after trimming.image_urls(string[]): 1–2 public HTTP(S) image URLs.
Optional parameters
duration(integer): Output length,3–15seconds (3–10with a last frame). 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
- First and last frames: a sepia rehearsal photo blooms into full color as the trio plays, 5 seconds,
720p(result). - First frame: a diver sweeps a flashlight across an amphora inside a sunken hull, 5 seconds,
720p(result).
Notes
- With two images, a
durationabove 10 returns 400. - 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