Gemini Omni Flash

Text-to-Video • Google

google/gemini-omni-flash

  • Third-party

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

Model Info
Terms and License link ↗
Pricing <ul><li>Input text (per 1M tokens)$1.50</li><li>Input image (per 1M tokens)$1.50</li><li>Input audio (per 1M tokens)$1.50</li><li>Input video (per 1M tokens)$1.50</li><li>Output text (per 1M tokens)$9.00</li><li>Reasoning (per 1M tokens)$9.00</li><li>Output video (per 1M tokens)$17.50</li><li>Default (per second)$1.50</li></ul>

Usage

const response = await env.AI.run(
  'google/gemini-omni-flash',
  {
    text: 'A school of silver fish moving through a sunlit coral reef, slow cinematic tracking shot with drifting particles.',
    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-flash",
  "input": {
    "text": "A school of silver fish moving through a sunlit coral reef, slow cinematic tracking shot with drifting particles.",
    "aspect_ratio": "16:9",
    "resolution": "720p"
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/google/gemini-omni-flash/underwater-reef.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

Examples

<details>

<summary>Breakfast robot — Generate a portrait-format character scene</summary>

const response = await env.AI.run(
  'google/gemini-omni-flash',
  {
    text: 'A friendly home robot preparing breakfast in a bright modern kitchen, gentle handheld camera movement.',
    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-flash",
  "input": {
    "text": "A friendly home robot preparing breakfast in a bright modern kitchen, gentle handheld camera movement.",
    "aspect_ratio": "9:16",
    "resolution": "720p"
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/google/gemini-omni-flash/breakfast-robot.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

</details>

<details>

<summary>Desert train — Generate a high-resolution desert scene</summary>

const response = await env.AI.run(
  'google/gemini-omni-flash',
  {
    text: 'A vintage train crossing a vast desert at golden hour, dust glowing in the sunset as the camera sweeps alongside.',
    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-flash",
  "input": {
    "text": "A vintage train crossing a vast desert at golden hour, dust glowing in the sunset as the camera sweeps alongside.",
    "aspect_ratio": "16:9",
    "resolution": "1080p"
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/google/gemini-omni-flash/desert-train.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

</details>

<details>

<summary>Northern lights — Generate a low-resolution night landscape</summary>

const response = await env.AI.run(
  'google/gemini-omni-flash',
  {
    text: 'Colorful northern lights dancing above a frozen lake, a small cabin glowing warmly in the foreground.',
    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-flash",
  "input": {
    "text": "Colorful northern lights dancing above a frozen lake, a small cabin glowing warmly in the foreground.",
    "aspect_ratio": "16:9",
    "resolution": "360p"
  }
}'
{
  "state": "Completed",
  "result": {
    "video": "https://examples.aig.cloudflare.com/google/gemini-omni-flash/northern-lights.mp4"
  },
  "gatewayMetadata": {
    "keySource": "Unified"
  }
}

</details>

Parameters

text

stringText prompt or editing instruction

image

stringFirst-frame or primary reference image

last_frame

stringLast-frame reference image

▶reference_images[]

arraymaxItems: 10

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

▶video

one of

API Schemas (Raw)

Input Open Download

Output Open Download

Was this helpful?

YesNo

On this page

Gemini Omni Flash - 图1Docs

{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/ai/models/google/gemini-omni-flash/#page","headline":"Gemini Omni Flash","description":"Preview high-performance multimodal video generation and editing model with conversational controls and generated audio.","url":"https://developers.cloudflare.com/ai/models/google/gemini-omni-flash/","inLanguage":"en","image":"https://developers.cloudflare.com/og-docs.png","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}


description: Google's fast image generation model producing high-quality images from text prompts. title: Nano Banana image: https://developers.cloudflare.com/og-docs.png


Skip to content

Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/llms.txt
Use this file to discover all available pages before exploring further.

Google logo