- Third-party
High-performance multimodal video generation and editing model with conversational controls and generated audio.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| Pricing |
|
const response = await env.AI.run(
'google/gemini-omni-1.1-flash',
{
text: 'A marble rolling fast on a chain reaction style track, continuous smooth shot.',
aspect_ratio: '16:9',
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "google/gemini-omni-1.1-flash",
"input": {
"text": "A marble rolling fast on a chain reaction style track, continuous smooth shot.",
"aspect_ratio": "16:9",
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/google/gemini-omni-1.1-flash/text-to-video.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}Portrait city — Generate a portrait-format cinematic city scene
const response = await env.AI.run(
'google/gemini-omni-1.1-flash',
{
text: 'A futuristic city with neon lights and flying cars, cinematic camera movement and atmospheric haze.',
aspect_ratio: '9:16',
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "google/gemini-omni-1.1-flash",
"input": {
"text": "A futuristic city with neon lights and flying cars, cinematic camera movement and atmospheric haze.",
"aspect_ratio": "9:16",
"resolution": "720p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/google/gemini-omni-1.1-flash/portrait-city.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}Mountain sunrise — Generate a high-resolution landscape nature scene
const response = await env.AI.run(
'google/gemini-omni-1.1-flash',
{
text: 'A drone shot flying over a mountain landscape at sunrise, golden light reflecting across a misty valley.',
aspect_ratio: '16:9',
resolution: '1080p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "google/gemini-omni-1.1-flash",
"input": {
"text": "A drone shot flying over a mountain landscape at sunrise, golden light reflecting across a misty valley.",
"aspect_ratio": "16:9",
"resolution": "1080p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/google/gemini-omni-1.1-flash/mountain-sunrise.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}Chain reaction — Generate a low-resolution landscape action scene
const response = await env.AI.run(
'google/gemini-omni-1.1-flash',
{
text: 'A marble rolling quickly along a wooden track, knocking through a playful chain reaction in one continuous shot.',
aspect_ratio: '16:9',
resolution: '360p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "google/gemini-omni-1.1-flash",
"input": {
"text": "A marble rolling quickly along a wooden track, knocking through a playful chain reaction in one continuous shot.",
"aspect_ratio": "16:9",
"resolution": "360p"
}
}'{
"state": "Completed",
"result": {
"video": "https://examples.aig.cloudflare.com/google/gemini-omni-1.1-flash/chain-reaction.mp4"
},
"gatewayMetadata": {
"keySource": "Unified"
}
}text
stringText prompt or editing instructionimage
stringFirst-frame or primary reference imagelast_frame
stringLast-frame reference image▶reference_images[]
arraymaxItems: 10video
stringReference video for editing or extensionaudio
stringReference audio inputprevious_interaction_id
stringaspect_ratio
stringenum: 16:9, 9:16resolution
stringenum: 360p, 720p, 1080p, 4k▶video
one of