Gemini Omni Flash APINew
$12.00/1M tokens
Video with native audio from text, reference images or a first and last frame, from 360p to 4K.
Call Gemini Omni Flash
The request below mirrors the Playground tab. Change a setting there and this code follows. You need a key first: create an API key.
curl -X POST https://api.letsfliq.com/v1/videos \ -H "Authorization: Bearer $FLIQ_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "gemini-omni-1.2-flash", "prompt": "A chef flips vegetables in a flaming wok, sparks and steam rising in a busy night kitchen", "aspect_ratio": "16:9", "resolution": "720p", "seconds": 10 }'
Parameters
modelstringDefaultgemini-omni-1.2-flash- Model ID, same as the official one
promptstring- What to generate.
aspect_ratiostringDefault16:9- 16:9, 9:16
resolutionstringDefault720p- 360p, 720p, 1080p, 4k
secondsintegerDefault10- 3 to 15
input_referencestring- One image file, as URLs
last_framestring- One image file, as URLs; needs input_reference
reference_imagesarray- Up to 6 image files, as URLs
Getting the result
POST /v1/videosreturns the video'sidstraight away. Itsstatusmoves fromqueuedtoin_progresstocompleted,failedorexpired.- Read it with
GET /v1/videos/{id}until it ends; a completed video carries itsurl. - Result files are kept for 7 days. Save the file to your own storage.
Pricing
ModelSettingPriceBilled forDiscount
Gemini Omni FlashNew360p$12.00/1M tokensOutput video tokens1,931 tokens per secondOutput video tokens1,931 tokens per second
Gemini Omni Flash720p$12.00/1M tokensOutput video tokens5,792 tokens per secondOutput video tokens5,792 tokens per second
Gemini Omni Flash1080p$12.00/1M tokensOutput video tokens8,688 tokens per secondOutput video tokens8,688 tokens per second
Gemini Omni Flash4k$12.00/1M tokensOutput video tokens17,376 tokens per secondOutput video tokens17,376 tokens per second
Gemini Omni FlashAny$1.50/1M tokensInput text tokensInput text tokens
Gemini Omni FlashAny$1.50/1M tokensInput image tokensInput image tokens