Reference · Video models
POST/videos/gemini-omni-1.2
Gemini Omni 1.2
Gemini Omni 1.2 — Google — the newest Gemini Omni: words, frames or up to 10 pictures, 3 to 15s, with sound
- Lengths: 3–15 s (default 10 s)
- Shapes: 16:9 (default), 9:16
- Sizes: 360p, 720p (default), 1080p, 4k
- Sound: always
- Takes: a start frame, an end frame, up to 10 reference pictures
- Words: up to 20,000 characters
- Price: from 6 credits a clip; the quote gives the exact figure for a body
Name each in the prompt by its @name, such as @vera (atName in GET /api/v1/library), with the names in referenceNames in the order of their keys. Without names: Say in words what to take from each, such as “her jacket in image 1”.
Pick it for: Clips with sound from words, frames or up to 10 pictures; Up to 4K. Skip it if: The clip runs past 15 s.
The same run as POST /api/v1/videos with "model": "gemini-omni-1.2": the same price, the same job. Price it first at /api/v1/videos/gemini-omni-1.2/quote.
- Key needs
create· Make things and spend credits- Price it first
POST /videos/gemini-omni-1.2/quote· free- Answers
- A job to follow
Request
curl -X POST https://vessero.com/api/v1/videos/gemini-omni-1.2 \ -H "Authorization: Bearer $VESSERO_API_KEY" \ -H "Idempotency-Key: 47f8f6f5-ea00-4fb1-925f-76aac956a0ec" \ -H "Content-Type: application/json" \ -d '{ "prompt": "A linen shirt drifts down onto a sunlit bed, slow camera push-in", "durationSec": 3, "aspectRatio": "16:9", "resolution": "360p", "confirmCredits": 6 }'
Response202 Accepted
{ "object": "job", "id": "video.8f1c2d3e-4b5a-4789-8abc-def012345678", "kind": "video", "status": "working", "stage": "Queued", "files": [], "credits": 58, "url": "/api/v1/jobs/video.8f1c2d3e-4b5a-4789-8abc-def012345678" }
POST/videos/gemini-omni-1.2/quoteFree
The same body without confirmCredits. It answers the price and your balance, and runs nothing.
Header
- Idempotency-KeystringYour id for this request: 8–64 letters, digits, - or _. A repeat within 10 minutes gets the first answer back and never runs twice. Use the same one for the quote and the run.
- Preferstring
wait=N(up to 60): hold the answer up to N seconds while the job is made, within 80 seconds for the whole call.
Body
- promptstringWhat happens in the shot, e.g. "Slow push in on the bottle as morning light sweeps across the table". For an edit, the change to make; to extend, what happens next. Optional only for motion, whose moves come from the video.
- durationSecintegerSeconds, one of the model’s durations. Default: its own length, as /video starts it (defaultDurationSec in GET /api/v1/models).
3456789101112131415 - aspectRatiostringA shape the model lists, e.g. "9:16". Default: the model’s own.
16:99:16 - resolutionstringA size the model lists, e.g. "720p". Default: the model’s own.
360p720p1080p4k - firstKeystringThe start frame, a picture: a storage key from POST /api/v1/files or POST /api/v1/library/use, or an https link to the file (brought into their Uploads first).
- lastKeystringThe end frame, a picture, on a model that takes one: a storage key from POST /api/v1/files or POST /api/v1/library/use, or an https link to the file (brought into their Uploads first).
- referenceKeysstring[] · up to 10Reference pictures, up to the model’s own number (inputs.pictures).
- referenceNamesobjectWhat the words call each reference, as its tile does: its @name, such as "@vera", one list a kind in the order of its keys (images for referenceKeys, videos for referenceVideoKeys, audio for referenceAudioKeys), null for one with no name, which the words call by its place (@Image2). Each name goes to the model as the reference it calls. Never moves the price. A reference’s @name is the atName GET /api/v1/library and POST /api/v1/library/use give.
- images(string | null)[] · up to 30The @names of referenceKeys, in the order of its keys.
- videos(string | null)[] · up to 10The @names of referenceVideoKeys, in the order of its keys.
- audio(string | null)[] · up to 10The @names of referenceAudioKeys, in the order of its keys.
- whoIsInPictureobject · kind no-person | personMotion: who is in the picture on firstKey, as the person says; asked of an uploaded picture.
- camerastringA camera move added to the words: dolly-in (Dolly in), dolly-out (Dolly out), crash-zoom (Crash zoom), orbit-360 (360 orbit), crane-up (Crane up), whip-pan (Whip pan), fpv-dive (FPV dive), handheld (Handheld), bullet-time (Bullet time), snorricam (Snorricam), drone-reveal (Drone reveal), locked-off (Locked-off). Never changes the price.
dolly-indolly-outcrash-zoomorbit-360crane-upwhip-panfpv-divehandheldbullet-timesnorricamdrone-reveallocked-off - confirmCreditsintegerrequiredThe price you agree to, in credits: the
creditsits quote gave. It runs at that price, or at a lower one when that figure was quoted for this Idempotency-Key; above the price now, nothing runs (409price_changed). Left out, nothing runs and the error carries the quote. - webhookUrlstring · httpsAn https address to POST the job to once it is done or has failed — or waits for a yes, as a UGC ad made step by step does once its previews are in — signed (see Webhooks).
Answers
- 202jobStarted: follow the job, or wait for its webhook.
- 200jobA job that ended at once: done, or failed (see error and charged).
- 400confirm_credits_requiredA run that spends needs confirmCredits: the quote is in details.
- 402insufficient_creditsThe account has too few credits for this.
- 409price_changedThe price is above the confirmCredits sent: nothing ran; the new quote is in details.
- 422content_refusedThe content check refused it.
- 429daily_cap_reachedThe key’s daily credit cap would be passed: see Retry-After.