Skip to content
Google logo

Gemini Omni Flash 1.1

Text-to-Video • Google

View as MarkdownAgent setup
  • Third-party

High-performance multimodal video generation and editing model with conversational controls and generated audio.

Model Info
Terms and Licenselink ↗
Pricing
  • Input text (per 1M tokens)$1.50
  • Input image (per 1M tokens)$1.50
  • Input audio (per 1M tokens)$1.50
  • Input video (per 1M tokens)$1.50
  • Output text (per 1M tokens)$9.00
  • Reasoning (per 1M tokens)$9.00
  • Output video (per 1M tokens)$17.50
  • Default (per second)$1.50

Usage

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"
  }
}

Examples

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"
  }
}

Parameters

text
stringText prompt or editing instruction
image
stringFirst-frame or primary reference image
last_frame
stringLast-frame reference image
video
stringReference video for editing or extension
audio
stringReference audio input
previous_interaction_id
string
aspect_ratio
stringenum: 16:9, 9:16
resolution
stringenum: 360p, 720p, 1080p, 4k

API Schemas (Raw)

Input
Output

Was this helpful?