For mobile and web apps, the Firebase AI Logic SDKs let you interact
with the supported **Gemini models** directly from your app.

Gemini models are considered *multimodal* because they're capable of
processing and even generating multiple modalities, including text, code, PDFs,
images, video, and audio.

Also, review our [FAQ](https://firebase.google.com/docs/ai-logic/faq-and-troubleshooting#supported-models)
about all the models that Firebase AI Logic supports and does not support.

## General use models

[Jump to model comparisons](https://firebase.google.com/docs/ai-logic/models#compare-models)
OUR ADVANCED THINKING MODEL

### Gemini 3.1 Pro

`gemini-3.1-pro-preview`


Advanced intelligence, complex problem-solving skills, and powerful
agentic and vibe coding capabilities.
*(billing required)*
FAST AND INTELLIGENT

### Gemini 3.5 Flash

`gemini-3.5-flash`


Frontier-class performance rivaling larger models at a fraction of
the cost.
*(billing **not** required)*
ULTRA FAST

### Gemini 3.1 Flash-Lite

`gemini-3.1-flash-lite`


High-volume, cost-sensitive workhorse model with the performance and
quality of the Gemini 3 series.
*(billing **not** required)*

OUR ADVANCED THINKING MODEL

### Gemini 2.5 Pro

`gemini-2.5-pro`


Our most advanced model for complex tasks of the Gemini 2.5 series,
featuring deep reasoning and coding capabilities.
*(billing **not** required)*
FAST AND INTELLIGENT

### Gemini 2.5 Flash

`gemini-2.5-flash`


Our best price-performance model of the Gemini 2.5 series,
especially for low-latency, high-volume tasks that require
reasoning.
*(billing **not** required)*
ULTRA FAST

### Gemini 2.5 Flash-Lite

`gemini-2.5-flash-lite`


The fastest and most budget-friendly multimodal model of the
Gemini 2.5 series.
*(billing **not** required)*

## Image generating models

You can generate and edit images with
[Gemini](https://firebase.google.com/docs/ai-logic/models#image-generating-models-gemini) models.

[Jump to model comparisons](https://firebase.google.com/docs/ai-logic/models#compare-models)

### Gemini

### Gemini 3 Pro Image (*Nano Banana Pro*)

`gemini-3-pro-image-preview`

designed for professional asset production, utilizing advanced
reasoning ("Thinking") to follow complex instructions and render
high-fidelity text.
*(billing required)*

### Gemini 3.1 Flash Image (*Nano Banana 2*)

`gemini-3.1-flash-image-preview`

High-efficiency counterpart to Gemini 3 Pro Image, optimized for
speed and high-volume developer use cases.
*(billing required)*

### Gemini 2.5 Flash Image (*Nano Banana*)

`gemini-2.5-flash-image`

Designed for speed and efficiency, optimized for high-volume,
low-latency tasks.
*(billing required)*

### Imagen *(Deprecated)*

> [!WARNING]
> **All Imagen models are deprecated and
> will shut down on June 24, 2026.** As a replacement, you can [migrate your apps to use
> Gemini Image models (the "Nano Banana" models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration).

For details about Imagen models, see
[Older Imagen models](https://firebase.google.com/docs/ai-logic/models#older-models-imagen)
later on this page.

## Audio generating models

You can generate *streamed* audio with models that support the
Gemini Live API.

[Jump to model comparisons](https://firebase.google.com/docs/ai-logic/models#compare-models)

### Gemini 2.5 Flash with Gemini Live API native audio

Gemini Developer API: `gemini-2.5-flash-native-audio-preview-12-2025`

Vertex AI Gemini API: `gemini-live-2.5-flash-native-audio`

Enables low-latency, real-time voice and video interactions with a
Gemini model that is *bidirectional* .
*(billing **not** required)*

<br />

**The remainder of this page provides detailed information about the models
supported by Firebase AI Logic.**

- [Compare models](https://firebase.google.com/docs/ai-logic/models#compare-models):

  - Supported input and output
  - High-level comparison of the supported capabilities
  - Specifications and limitations, for example max input tokens or max length of input video
- Description of [how models are versioned](https://firebase.google.com/docs/ai-logic/models#versions), specifically their
  *stable* , *auto-updated* , *preview* , and *experimental* versions

- Lists of [available model names](https://firebase.google.com/docs/ai-logic/models#available-model-names) to include in your
  code during initialization

- Lists of [supported languages](https://firebase.google.com/docs/ai-logic/models#languages) for the models

At the bottom of this page, you can
[view detailed information about previous generation models](https://firebase.google.com/docs/ai-logic/models#older-models).

<br />

*** ** * ** ***

## Compare models

Each model has different capabilities to support various use cases. Note that
each of tables in this section describe each model
*when used with Firebase AI Logic*. Each model might have additional
capabilities that aren't available when using our SDKs.

If you can't find the information you're looking for in the following
sub-sections, you can find even more information in your chosen API provider
documentation:
[Gemini Developer API](https://ai.google.dev/gemini-api/docs/models)
or
[Vertex AI Gemini API](https://cloud.google.com/vertex-ai/generative-ai/docs/models).

> [!NOTE]
> **Note:** We recommend reviewing details about [the location for where you access a model](https://firebase.google.com/docs/ai-logic/locations). The Gemini Developer API provides only global access to models, but the Vertex AI Gemini API provides both global access (recommended for most use cases) and setting a specific location (supported locations depend on the model).

### Supported input and output

These are the supported input and output types
*when using each model with Firebase AI Logic*:

|   | Gemini 3.x Pro, Flash, Flash‑Lite | Gemini 3.x Pro, Flash Image | Gemini 2.5 Pro, Flash, Flash‑Lite | Gemini 2.5 Flash Image | Gemini 2.5 Flash‑Live [**\*\*\***](https://firebase.google.com/docs/ai-logic/models#gemini-live-api-models) |
|---|---|---|---|---|---|
| **Input types** ||||||
| Text | Yes | Yes | Yes | Yes | Yes (streaming) |
| Code | Yes | Yes | Yes | Yes | Yes |
| Documents (PDFs or plain-text) | Yes | Yes | Yes | Yes | No |
| Images | Yes | Yes | Yes | Yes | No |
| Video | Yes | No | Yes | No | Yes (streaming) |
| Audio | Yes | No | Yes | No | Yes (streaming) |
| **Output types** ||||||
| Text | Yes | Yes | Yes | Yes | No |
| Text (streaming) | Yes | No | Yes | No | Yes (transcription) |
| Code | Yes | Yes | Yes | Yes | No |
| Structured output (like JSON) | Yes | No | Yes | No | No |
| Images | No | Yes | No | Yes | No |
| Audio | No | No | No | No | Yes (streaming) |

To learn about supported file types, see
[Supported input files and requirements](https://firebase.google.com/docs/ai-logic/input-file-requirements).

### Supported capabilities and features

These are the supported capabilities and features
*when using each model with Firebase AI Logic*:

|   | Gemini 3.x Pro, Flash, Flash‑Lite | Gemini 3.x Pro, Flash Image | Gemini 2.5 Pro, Flash, Flash‑Lite | Gemini 2.5 Flash Image | Gemini 2.5 Flash‑Live [**\*\*\***](https://firebase.google.com/docs/ai-logic/models#gemini-live-api-models) |
|---|---|---|---|---|---|
| [Thinking](https://firebase.google.com/docs/ai-logic/thinking) | Yes | Yes | Yes | No | No |
| [Generate text](https://firebase.google.com/docs/ai-logic/generate-text) from text-only or multimodal inputs | Yes | [*interleaved or as part of image*](https://firebase.google.com/docs/ai-logic/generate-images-gemini) | Yes | [*interleaved or as part of image*](https://firebase.google.com/docs/ai-logic/generate-images-gemini) | [*transcription only*](https://firebase.google.com/docs/ai-logic/live-api/configuration#transcriptions) |
| [Generate images](https://firebase.google.com/docs/ai-logic/generate-images-gemini) | No | Yes | No | Yes | No |
| [Edit images](https://firebase.google.com/docs/ai-logic/generate-images-gemini) | No | Yes | No | Yes | No |
| Generate audio | No | No | No | No | [*streaming only*](https://firebase.google.com/docs/ai-logic/live-api/capabilities#audio-in-audio-out) |
| [Generate structured output](https://firebase.google.com/docs/ai-logic/generate-structured-output) (like JSON) | Yes | No | Yes | No | No |
| [Analyze documents](https://firebase.google.com/docs/ai-logic/analyze-documents) (PDFs or plain-text) | Yes | Yes | Yes | Yes | No |
| [Analyze images](https://firebase.google.com/docs/ai-logic/analyze-images) (vision) | Yes | Yes | Yes | Yes | No |
| [Analyze video](https://firebase.google.com/docs/ai-logic/analyze-videos) (vision) | Yes | No | Yes | No | [*streaming only*](https://firebase.google.com/docs/ai-logic/live-api/capabilities#video-in-audio-out) |
| [Analyze audio](https://firebase.google.com/docs/ai-logic/analyze-audio) | Yes | No | Yes | No | [*streaming only*](https://firebase.google.com/docs/ai-logic/live-api/capabilities#audio-in-audio-out) |
| [Multi-turn chat](https://firebase.google.com/docs/ai-logic/chat) | Yes | Yes | Yes | Yes | [*streaming only*](https://firebase.google.com/docs/ai-logic/live-api) |
| [Bidirectional multimodal streaming](https://firebase.google.com/docs/ai-logic/live-api) | No | No | No | No | Yes |
| [System instructions](https://firebase.google.com/docs/ai-logic/system-instructions) | Yes | Yes | Yes | Yes | Yes |
| [Count tokens](https://firebase.google.com/docs/ai-logic/count-tokens) | Yes | Yes | Yes | Yes | No |

#### Supported tools

These are the supported tools *when using each model with Firebase AI Logic* :

|   | Gemini 3.x Pro, Flash, Flash‑Lite | Gemini 3.x Pro, Flash Image | Gemini 2.5 Pro, Flash, Flash‑Lite | Gemini 2.5 Flash Image | Gemini 2.5 Flash‑Live [**\*\*\***](https://firebase.google.com/docs/ai-logic/models#gemini-live-api-models) |
|---|---|---|---|---|---|
| [Function calling](https://firebase.google.com/docs/ai-logic/function-calling) | Yes | No | Yes | No | Yes |
| [Code execution](https://firebase.google.com/docs/ai-logic/code-execution) | Yes | No | Yes | No | No |
| [URL context](https://firebase.google.com/docs/ai-logic/url-context) | Yes | No | Yes | No | No |
| [Grounding with Google Search](https://firebase.google.com/docs/ai-logic/grounding-google-search) | Yes | Yes | Yes | No | Yes |
| [Grounding with Google Maps](https://firebase.google.com/docs/ai-logic/grounding-google-maps) | Yes | No | Yes | No | Yes |

> [!NOTE]
> **Note:** *When using Firebase AI Logic* , the following capabilities are ***not yet*** supported: grounding with Google Image Search, grounding with Google Maps, fine tuning a model, embeddings generation, and semantic retrieval.

### Specifications and limitations

These are the specifications and limitations
*when using each model with Firebase AI Logic*:

| Property | Gemini 3.x Pro, Flash, Flash‑Lite | Gemini 3.x Pro, Flash Image | Gemini 2.5 Pro, Flash, Flash‑Lite | Gemini 2.5 Flash Image | Gemini 2.5 Flash‑Live [**\*\*\***](https://firebase.google.com/docs/ai-logic/models#gemini-live-api-models) |
|---|---|---|---|---|---|
| Input token limit **\*** | 1,048,576 tokens | 65,536 tokens | 1,048,576 tokens | 32,768 tokens | 32K (default; upgradable to 128K) tokens |
| Output token limit **\*** | 65,536 tokens | 32,768 tokens | 65,536 tokens | 8,192 tokens | 64K tokens |
| Knowledge cutoff date | January 2025 | January 2025 | January 2025 | June 2025 | January 2025 |
| **PDFs (per request)** ||||||
| Max number of input PDF files **\*\*** | 900 files | 14 files | 3,000 files | 3 files | --- |
| Max number of pages per input PDF file **\*\*** | 900 pages | 14 pages | 1,000 pages | 3 pages | --- |
| Max size per input PDF file | 50 MB | 50 MB | 50 MB | 50 MB | --- |
| **Images (per request)** ||||||
| Max number of *input* images | 1,000 images | 14 images | 3,000 images | 3 images | --- |
| Max number of *output* images | --- | 10 images | --- | 10 images | --- |
| Max size per input base64-encoded image | 7 MB | 7 MB | 7 MB | 7 MB | --- |
| **Video (per request)** ||||||
| Max number of input video files | 10 files | --- | 10 files | --- | --- |
| Max length of all input video (frames only) | \~60 minutes | --- | \~60 minutes | --- | --- |
| Max length of all input video (frames+audio) | \~45 minutes | --- | \~45 minutes | --- | --- |
| **Audio (per request)** ||||||
| Max number of *input* audio files | 1 file | --- | 1 file | --- | --- |
| Max number of *output* audio files | --- | --- | --- | --- | --- |
| Max length of all *input* audio | \~8.4 hours | --- | \~8.4 hours | --- | --- |
| Max length of all *output* audio | --- | --- | --- | --- | --- |


^\*
*For all Gemini models, a token is equivalent to about 4 characters,
so 100 tokens are about 60-80 English words. For Gemini models, you can
determine the total count of tokens in your requests using
[`countTokens`](https://firebase.google.com/docs/ai-logic/count-tokens).*^


^\*\*
*PDFs are treated as images, so a single page of a PDF is treated as
one image. The number of pages allowed in a request is limited to the number
of images the model can support.*^


^\*\*\*
*Gemini 2.5 Flash-Live models are the native audio models that support
the Gemini Live API.*^

#### Find additional detailed information

- [Quotas](https://firebase.google.com/docs/ai-logic/quotas) and [pricing](https://firebase.google.com/docs/ai-logic/pricing) are
  different for each model. Pricing also depends on input and output.

- Learn about supported input file types, how to specify MIME type, and how to
  make sure that your input files and multimodal requests meet the requirements
  and follow best practices in
  [Supported input files and requirements](https://firebase.google.com/docs/ai-logic/input-file-requirements).


  > [!NOTE]
  > **Important** : **The total request size limit is
  > 20 MB.** To send large files, review the [options for providing files in multimodal requests](https://firebase.google.com/docs/ai-logic/input-file-requirements).

  <br />

<br />

*** ** * ** ***

## Model versioning and naming patterns

Models are offered in *stable* , *preview* , and *experimental* versions. For
convenience, aliases without explicit version values are supported.

To find specific model names to use in your code, see the
["available model names"](https://firebase.google.com/docs/ai-logic/models#available-model-names) section later on this page.

> [!NOTE]
> **Important** : Stable Gemini 2.5 model names do ***not*** have a three-digit suffix, and they do ***not*** have an auto-updated alias.

| Version type / Release stage || Description | Model name pattern |
|---|---|---|---|
| **Stable** || ***Stable*** versions are available and supported for production use starting on the release date. - A stable model version is typically released with a retirement date, which indicates the last day that the model is available. After this date, the model is no longer accessible or supported by Google. | - **Gemini 2.5 models** Model names of stable versions have no suffix Example: `gemini-2.5-pro` - **Gemini 2.0 and Imagen models** Model names of stable versions are appended with a specific three-digit version number Example: `gemini-2.0-flash-001` Example: `imagen-3.0-generate-002` |
|   | **Auto-updated stable alias** (Gemini 2.0 models only) | ***Auto-updated*** stable aliases always point to the *latest **stable*** version of that model. - If a new stable version is released, the *auto-updated* alias automatically starts pointing to that new stable version. | **Gemini 2.0 models only** Model names of aliases have no suffix Example: `gemini-2.0-flash` |
| **Preview** || ***Preview*** versions have new capabilities and are considered *not stable* . - These models are *not* recommended for production use, come with more restrictive rate limits, and may have billing requirements. - These models are retired within a few weeks or months after their associated stable version is released. - For the Vertex AI Gemini API, preview models released after June 2025 usually require you to [set the model's location to `global`](https://firebase.google.com/docs/ai-logic/locations). | Model names of preview versions are appended with `-preview` and often the model's release date (`-MM-DD` for older models or `-MM-YYYY` for newer models) Examples: `gemini-2.5-flash-preview-04-17` (released on April 17, 2025) or `gemini-2.5-flash-preview-09-2025` (released in September 2025) or `gemini-3-pro-preview` (released in November 2025) |
| **Experimental** || ***Experimental*** versions have new capabilities and are considered *not stable* . - These models are *not* recommended for production use and come with more restrictive rate limits. Experimental models are intended for gathering feedback and to enable experimentation with our latest features. - These models are retired within a few weeks or months after their associated stable version is released. - For the Vertex AI Gemini API, experimental models released after June 2025 require you to [set the model's location to `global`](https://firebase.google.com/docs/ai-logic/locations). | Model names of experimental versions are appended with `-exp` along with the model's release date (`-MM-DD`) Example: `gemini-2.5-pro-exp-03-25` (released on March 25, 2025) |
| **Retired** || ***Retired*** versions are past their retirement date and have been permanently deactivated. - Retired models are no longer accessible or supported by Google, and a request using a retired model name returns a 404 error. | --- |

> [!CAUTION]
> **For production use cases, we recommend using the
> explicit model name for the most recent *stable* version.** Even though an *auto-updated stable alias* points to a stable version, the actual model version it points to will automatically change whenever a new stable version is released, which could mean unexpected behavior or responses.
>
> ***Preview* and *experimental* versions are
> recommended during *prototyping only*.**
>
> We also recommend using Firebase Remote Config so that you can
> [dynamically change the model and version in your app](https://firebase.google.com/docs/ai-logic/change-model-name-remotely)
> without releasing a new version of your app.

<br />

*** ** * ** ***

## Available model names

Model names are the explicit values that you include *in your code* during
initialization of the model.

[Jump to Gemini model names](https://firebase.google.com/docs/ai-logic/models#model-names-gemini)
[Jump to Imagen model names *(Deprecated)*](https://firebase.google.com/docs/ai-logic/models#model-names-imagen)

#### Programmatically list all available models

You can list all available models names using the REST API:

- Gemini Developer API: Call the
  [`models.list` endpoint](https://ai.google.dev/api/models#method:-models.list)

- Vertex AI Gemini API: Call the
  [`publishers.models.list` endpoint](https://cloud.google.com/vertex-ai/docs/reference/rest/v1beta1/publishers.models/list)

Note that this returned list will include *all* models supported by the
API providers, but Firebase AI Logic only supports the
Gemini and Imagen models described on this page.
Also note that auto-updated aliases (for example, `gemini-2.0-flash`) aren't
listed because they're a convenience alias for the base model.

### Gemini model names

For initialization examples for your platform, see the
[getting started guide](https://firebase.google.com/docs/ai-logic/get-started).

For details about the release stages (especially for use cases, billing, and
shutdown), see
[model versioning and naming patterns](https://firebase.google.com/docs/ai-logic/models#versions).

> [!NOTE]
> **Important** : Stable Gemini 2.5 model names do ***not*** have a three-digit suffix, and they do ***not*** have an auto-updated alias.  
>
> Also, if you're using the Vertex AI Gemini API, all Gemini 2.5 and later ***preview*** models (except Gemini Live API models) that are released after June 2025 are *only* available in the `global` location.

#### Gemini 3.x Pro model names

^*Requires the [pay-as-you-go Blaze pricing plan](https://firebase.google.com/pricing) regardless of your Gemini API
provider.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-3.1-pro-preview` | Latest preview version of Gemini 3.x Pro | Preview | 2026-02-19 | To be determined |

#### Gemini 3.x Flash model names

^*Does **not** require the pay-as-you-go Blaze pricing plan if you're
using the Gemini Developer API.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-3.5-flash` | Stable version of Gemini 3.x Flash | Stable | 2026-05-19 | To be determined |
| `gemini-3-flash-preview` | Preview version of Gemini 3.x Flash | Preview | 2025-12-17 | To be determined |

#### Gemini 3.x Flash‑Lite model names

^*Does **not** require the pay-as-you-go Blaze pricing plan if you're
using the Gemini Developer API.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-3.1-flash-lite` | Stable version of Gemini 3.x Flash‑Lite | Stable | 2026-05-07 | To be determined |
| `gemini-3.1-flash-lite-preview` | Preview version of Gemini 3.x Flash‑Lite | Preview | 2026-03-03 | 2026-05-25 |

#### Gemini 3.x Pro Image model names (aka "Nano Banana Pro")

^*Requires the [pay-as-you-go Blaze pricing plan](https://firebase.google.com/pricing) regardless of your Gemini API
provider.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-3-pro-image-preview` | Preview version of Gemini 3.x Pro Image (aka "Nano Banana Pro") | Preview | 2025-11-20 | To be determined |

#### Gemini 3.x Flash Image model names (aka "Nano Banana 2")

^*Requires the [pay-as-you-go Blaze pricing plan](https://firebase.google.com/pricing) regardless of your Gemini API
provider.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-3.1-flash-image-preview` | Preview version of Gemini 3.x Flash Image (aka "Nano Banana 2") | Preview | 2026-02-26 | To be determined |

#### Gemini 2.5 Pro model names

^*Does **not** require the pay-as-you-go Blaze pricing plan if you're
using the Gemini Developer API.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.5-pro` | Stable version of Gemini 2.5 Pro | Stable | 2025-06-17 | No earlier than 2026-06-17 |

#### Gemini 2.5 Flash model names

^*Does **not** require the pay-as-you-go Blaze pricing plan if you're
using the Gemini Developer API.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.5-flash` | Stable version of Gemini 2.5 Flash | Stable | 2025-06-17 | No earlier than 2026-06-17 |

#### Gemini 2.5 Flash‑Lite model names

^*Does **not** require the pay-as-you-go Blaze pricing plan if you're
using the Gemini Developer API.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.5-flash-lite` | Stable version of Gemini 2.5 Flash‑Lite | Stable | 2025-07-22 | No earlier than 2026-07-22 |

#### Gemini 2.5 Flash Image model names (aka "Nano Banana")

^*Requires the [pay-as-you-go Blaze pricing plan](https://firebase.google.com/pricing) regardless of your Gemini API
provider.*^

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.5-flash-image` | Stable version for Gemini 2.5 Flash Image (aka "Nano Banana") | Stable | 2025-10-02 | No earlier than 2026-10-02 |

#### Gemini 2.5 Flash Live model names

^*Does **not** require the pay-as-you-go Blaze pricing plan if you're
using the Gemini Developer API (usually preview models require a paid
plan).*^

Gemini 2.5 Flash Live models are the *native audio* models that support
the Gemini Live API. Even though the model has different model names depending
on the Gemini API provider, the behavior and features of the model are
the same.

| **Gemini Developer API Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.5-flash-native-audio-preview-12-2025` ^1^ | Latest preview version for the Live API on the Gemini Developer API | Preview | 2025-12-12 | To be determined |
| `gemini-2.5-flash-native-audio-preview-09-2025` ^1^ | Initial preview version for the Live API on the Gemini Developer API | Preview | 2025-09-18 | To be determined |

| **Vertex AI Gemini API Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-live-2.5-flash-native-audio` ^2^ | Stable version for the Live API on the Vertex AI Gemini API | Stable | 2025-12-12 | No earlier than 2026-12-12 |
| `gemini-live-2.5-flash-preview-native-audio-09-2025` ^2^ | Preview version for the Live API on the Vertex AI Gemini API | Preview | 2025-09-18 | To be determined |

^**1** ***Only** supported by the Gemini Developer API.
Also, even though these are preview models, they're available on the
"free tier" of the Gemini Developer API.*^  

^**2** ***Only** supported by the Vertex AI Gemini API.
Also, these models are not supported in the `global` location.*^

### Imagen model names *(Deprecated)*

> [!WARNING]
> **All Imagen models are deprecated and
> will shut down on June 24, 2026.** As a replacement, you can [migrate your apps to use
> Gemini Image models (the "Nano Banana" models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration).

For Imagen model names, see
[Older Imagen models](https://firebase.google.com/docs/ai-logic/models#older-models-imagen)
later on this page.

<br />

*** ** * ** ***

## Supported languages

> [!NOTE]
> **Note:** These languages *do not represent the locations for accessing the model* ; instead, these are the *languages* that the Gemini models can understand and respond in (for example, the text input and output). If needed, see [specify the location for accessing a model](https://firebase.google.com/docs/ai-logic/locations).

- All the Gemini models can understand and respond in the
  following languages:

  Arabic (ar), Bengali (bn), Bulgarian (bg),
  Chinese simplified and traditional (zh), Croatian (hr), Czech (cs),
  Danish (da), Dutch (nl), English (en), Estonian (et), Finnish (fi),
  French (fr), German (de), Greek (el), Hebrew (iw), Hindi (hi), Hungarian (hu),
  Indonesian (id), Italian (it), Japanese (ja), Korean (ko), Latvian (lv),
  Lithuanian (lt), Norwegian (no), Polish (pl), Portuguese (pt), Romanian (ro),
  Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),
  Swahili (sw), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk),
  Vietnamese (vi)
- Gemini 2.0 Flash, Gemini 1.5 Pro and
  Gemini 1.5 Flash models can understand and respond in the
  following *additional* languages:

  Afrikaans (af), Amharic (am), Assamese (as), Azerbaijani (az),
  Belarusian (be), Bosnian (bs), Catalan (ca), Cebuano (ceb), Corsican (co),
  Welsh (cy), Dhivehi (dv), Esperanto (eo), Basque (eu), Persian (fa),
  Filipino (Tagalog) (fil), Frisian (fy), Irish (ga), Scots Gaelic (gd),
  Galician (gl), Gujarati (gu), Hausa (ha), Hawaiian (haw), Hmong (hmn),
  Haitian Creole (ht), Armenian (hy), Igbo (ig), Icelandic (is), Javanese (jv),
  Georgian (ka), Kazakh (kk), Khmer (km), Kannada (kn), Krio (kri),
  Kurdish (ku), Kyrgyz (ky), Latin (la), Luxembourgish (lb), Lao (lo),
  Malagasy (mg), Maori (mi), Macedonian (mk), Malayalam (ml), Mongolian (mn),
  Meiteilon (Manipuri) (mni-Mtei), Marathi (mr), Malay (ms), Maltese (mt),
  Myanmar (Burmese) (my), Nepali (ne), Nyanja (Chichewa) (ny),
  Odia (Oriya) (or), Punjabi (pa), Pashto (ps), Sindhi (sd),
  Sinhala (Sinhalese) (si), Samoan (sm), Shona (sn), Somali (so), Albanian (sq),
  Sesotho (st), Sundanese (su), Tamil (ta), Telugu (te), Tajik (tg),
  Uyghur (ug), Urdu (ur), Uzbek (uz), Xhosa (xh), Yiddish (yi), Yoruba (yo),
  Zulu (zu)

<br />

*** ** * ** ***

## Information about previous models

The following are active, but previous generation models. We recommend using one
of the latest models instead when possible.

If you can't find the information you're looking for in the following
sub-sections, you can find even more information in your chosen API provider
documentation:

- Gemini Developer API:
  [Gemini models](https://ai.google.dev/gemini-api/docs/models)
  and [Imagen models](https://ai.google.dev/gemini-api/docs/imagen#model-versions)

- Vertex AI Gemini API:
  [Gemini models](https://cloud.google.com/vertex-ai/generative-ai/docs/models)
  and [Imagen models](https://cloud.google.com/vertex-ai/generative-ai/docs/models)

> [!WARNING]
>
> Gemini 2.0 Flash and Gemini 2.0 Flash‑Lite models were
> shut down on June 1, 2026 (stable Gemini Live API 2.0 models are not
> impacted). All Gemini 1.0 models and Gemini 1.5
> are already shutdown, and all requests to these models return a 404 error.
>
>
> To avoid service disruption, update to a
> [newer model](https://firebase.google.com/docs/ai-logic/models) (for example,
> `gemini-2.5-flash-lite`).
> [Learn more.](https://firebase.google.com/docs/ai-logic/faq-and-troubleshooting#discontinued-models)
>
>
> When you start seriously developing your app, **we recommend using
> Firebase Remote Config so that you can
> [remotely change the model and version in your app](https://firebase.google.com/docs/ai-logic/change-model-name-remotely)
> without releasing a new version of your app.**

> [!WARNING]
> **All Imagen models are deprecated and
> will shut down on June 24, 2026.** As a replacement, you can [migrate your apps to use
> Gemini Image models (the "Nano Banana" models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration).

#### Older Gemini models

- `gemini-2.0-flash-001` (and its auto-updated alias `gemini-2.0-flash`)
- `gemini-2.0-flash-lite-001` (and its auto-updated alias `gemini-2.0-flash-lite`)

For information about older Gemini Live API models, see the
Gemini API provider documentation:

- [`gemini-2.0-flash-live-001`](https://ai.google.dev/gemini-api/docs/models#gemini-2.0-flash-live)
- [`gemini-2.0-flash-live-preview-04-09`](https://docs.cloud.google.com/vertex-ai/generative-ai/docs/models/gemini/2-0-flash#live-api)
- [`gemini-live-2.5-flash-preview`](https://ai.google.dev/gemini-api/docs/models#gemini-2.5-flash-live)

#### Older Imagen models

- `imagen-4.0-ultra-generate-001`
- `imagen-4.0-generate-001`
- `imagen-4.0-fast-generate-001`
- `imagen-3.0-capability-001`
- `imagen-3.0-generate-002`
- `imagen-3.0-generate-001`
- `imagen-3.0-fast-generate-001`

#### View details about about previous models

<br />

View supported input and output of previous generation models

<br />

These are the input and output types
*when using each model with Firebase AI Logic*:

|   | Gemini 2.0 Flash | Gemini 2.0 Flash‑Lite | Imagen (generate) | Imagen (capability) |
|---|---|---|---|---|
| **Input types** |||||
| Text | Yes | Yes | Yes | Yes |
| Text (streaming) | No | No | No | No |
| Code | Yes | Yes | No | No |
| Documents (PDFs or plain-text) | Yes | Yes | No | No |
| Images | Yes | Yes | No | Yes |
| Video | Yes | Yes | No | No |
| Audio | Yes | Yes | No | No |
| Audio (streaming) | No | No | No | No |
| **Output types** |||||
| Text | Yes | Yes | No | No |
| Text (streaming) | Yes | Yes | No | No |
| Code | Yes | Yes | No | No |
| Structured output (like JSON) | Yes | Yes | No | No |
| Images | No | No | Yes | Yes |
| Audio | No | No | No | No |
| Audio (streaming) | No | No | No | No |

<br />

<br />

<br />

Supported capabilities and features of previous generation models

<br />

These are the capabilities and features
*when using each model with Firebase AI Logic*:

|   | Gemini 2.0 Flash | Gemini 2.0 Flash‑Lite | Imagen (generate) | Imagen (capability) |
|---|---|---|---|---|
| [Thinking](https://firebase.google.com/docs/ai-logic/thinking) | No | No | No | No |
| [Generate text](https://firebase.google.com/docs/ai-logic/generate-text) from text-only or multimodal inputs | Yes | Yes | No | No |
| Generate images ([Gemini](https://firebase.google.com/docs/ai-logic/generate-images-gemini) or [Imagen](https://firebase.google.com/docs/ai-logic/generate-images-imagen)) | No | No | Yes | Yes |
| Edit images ([Gemini](https://firebase.google.com/docs/ai-logic/generate-images-gemini) or [Imagen](https://firebase.google.com/docs/ai-logic/edit-images-imagen-overview)) | No | No | No | Yes |
| Generate audio | No | No | No | No |
| [Generate structured output](https://firebase.google.com/docs/ai-logic/generate-structured-output) (like JSON) | Yes | Yes | No | No |
| [Analyze documents](https://firebase.google.com/docs/ai-logic/analyze-documents) (PDFs or plain-text) | Yes | Yes | No | No |
| [Analyze images](https://firebase.google.com/docs/ai-logic/analyze-images) (vision) | Yes | Yes | No | No |
| [Analyze video](https://firebase.google.com/docs/ai-logic/analyze-videos) (vision) | Yes | Yes | No | No |
| [Analyze audio](https://firebase.google.com/docs/ai-logic/analyze-audio) | Yes | Yes | No | No |
| [Multi-turn chat](https://firebase.google.com/docs/ai-logic/chat) | Yes | Yes | No | No |
| [Bidirectional multimodal streaming](https://firebase.google.com/docs/ai-logic/live-api) | No | No | No | No |
| [Function calling](https://firebase.google.com/docs/ai-logic/function-calling) | Yes | Yes | No | No |
| [Code execution](https://firebase.google.com/docs/ai-logic/code-execution) | Yes | No | No | No |
| [Grounding with Google Search](https://firebase.google.com/docs/ai-logic/grounding-google-search) | Yes | No | No | No |
| [Grounding with Google Maps](https://firebase.google.com/docs/ai-logic/grounding-google-maps) | Yes | No | No | No |
| [System instructions](https://firebase.google.com/docs/ai-logic/system-instructions) | Yes | Yes | No | No |
| [Count tokens](https://firebase.google.com/docs/ai-logic/count-tokens) | Yes | Yes | No | No |

<br />

<br />

<br />

Specifications and limitations of previous generation models

<br />

These are the specifications and limitations
*when using each model with Firebase AI Logic*:

| Property | Gemini 2.0 Flash | Gemini 2.0 Flash‑Lite | Imagen (generate) | Imagen (capability) |
|---|---|---|---|---|
| Context window **\*** *Total token limit (combined input+output)* | 1,048,576 tokens | 1,048,576 tokens | 480 tokens | 480 tokens |
| Output token limit **\*** | 8,192 tokens | 8,192 tokens | --- | --- |
| Knowledge cutoff date | June 2024 | June 2024 | --- | --- |
| **PDFs (per request)** |||||
| Max number of input PDF files **\*\*** | 3,000 files | 3,000 files | --- | --- |
| Max number of pages per input PDF file **\*\*** | 1,000 pages | 1,000 pages | --- | --- |
| Max size per input PDF file | 50 MB | 50 MB | --- | --- |
| **Images (per request)** |||||
| Max number of *input* images | 3,000 images | 3,000 images | --- | 4 images |
| Max number of *output* images | --- | --- | 4 images | 4 images |
| Max size per input base64-encoded image | 7 MB | 7 MB | --- | --- |
| **Video (per request)** |||||
| Max number of input video files | 10 files | 10 files | --- | --- |
| Max length of all input video (frames only) | \~60 minutes | \~60 minutes | --- | --- |
| Max length of all input video (frames+audio) | \~45 minutes | \~45 minutes | --- | --- |
| **Audio (per request)** |||||
| Max number of *input* audio files | 1 file | 1 file | --- | --- |
| Max number of *output* audio files | --- | --- | --- | --- |
| Max length of all *input* audio | \~8.4 hours | \~8.4 hours | --- | --- |
| Max length of all *output* audio | --- | --- | --- | --- |


^\*
*For all Gemini models, a token is equivalent to about 4 characters,
so 100 tokens are about 60-80 English words. For Gemini models, you can
determine the total count of tokens in your requests using
[`countTokens`](https://firebase.google.com/docs/ai-logic/count-tokens).*^


^\*\*
*PDFs are treated as images, so a single page of a PDF is treated as
one image. The number of pages allowed in a request is limited to the number
of images the model can support.*^

<br />

<br />

<br />

Available model names of previous generation models (including shutdown dates)

<br />

Model names are the explicit values that you include *in your code* during
initialization of the model.

### Gemini models

> [!WARNING]
>
> Gemini 2.0 Flash and Gemini 2.0 Flash‑Lite models were
> shut down on June 1, 2026. To avoid service disruption, update to a newer
> model like `gemini-2.5-flash-lite`.
> [Learn more.](https://firebase.google.com/docs/ai-logic/faq-and-troubleshooting#discontinued-models)

#### Gemini 3 Pro Preview model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-3-pro-preview` | Initial preview version of Gemini 3 Pro Preview | Preview | 2025-11-18 | 2026-03-09 |

#### Gemini 2.0 Flash model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.0-flash-001` | Latest stable version of Gemini 2.0 Flash | Stable | 2025-02-05 | 2026-06-01 |
| `gemini-2.0-flash` | Auto-updated alias pointing to the *latest stable* version of Gemini 2.0 Flash (currently `gemini-2.0-flash-001`) | Stable | 2025-02-10 | 2026-06-01 |

#### Gemini 2.0 Flash‑Lite model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `gemini-2.0-flash-lite-001` | Latest stable version of Gemini 2.0 Flash‑Lite | Stable | 2025-02-25 | 2026-06-01 |
| `gemini-2.0-flash-lite` | Auto-updated alias pointing to the *latest stable* version of Gemini 2.0 Flash‑Lite (currently `gemini-2.0-flash-lite-001`) | Stable | 2025-02-25 | 2026-06-01 |

### Imagen models

> [!WARNING]
> **All Imagen models are deprecated and
> will shut down on June 24, 2026.** As a replacement, you can [migrate your apps to use
> Gemini Image models (the "Nano Banana" models)](https://firebase.google.com/docs/ai-logic/imagen-models-migration).
>
>
> Several Imagen models are being shut down before their original
> estimated shutdown date. The dates listed in this section reflect the latest
> announced shutdown dates.

#### Imagen 4 model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `imagen-4.0-generate-001` | Stable version of Imagen 4 | Stable | 2025-08-14 | 2026-06-30 |

#### Imagen 4 Fast model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `imagen-4.0-fast-generate-001` | Stable version of Imagen 4 Fast | Stable | 2025-08-14 | 2026-06-30 |

#### Imagen 4 Ultra model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `imagen-4.0-ultra-generate-001` | Stable version of Imagen 4 Ultra | Stable | 2025-08-14 | 2026-06-30 |

#### Imagen 3 Capability model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `imagen-3.0-capability-001` | Initial stable version of Imagen 3 Capability | Stable | 2024-12-10 | 2026-06-30 |

#### Imagen 3 model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `imagen-3.0-generate-002` | Latest stable version of Imagen 3 | Stable | 2025-01-23 | 2026-06-30 |
| `imagen-3.0-generate-001` | Initial stable version of Imagen 3 | Stable | 2024-07-31 | 2026-06-30 |

#### Imagen 3 Fast model names

| **Model name** | **Description** | **Release stage** | **Release date** | **Shutdown date** |
|---|---|---|---|---|
| `imagen-3.0-fast-generate-001` | Initial stable version of Imagen 3 Fast | Stable | 2024-07-31 | 2026-06-30 |

<br />

<br />

<br />

*** ** * ** ***

## Next steps


#### Try out the capabilities of the Gemini API

- Build [multi-turn conversations (chat)](https://firebase.google.com/docs/ai-logic/chat).
- Generate text from [text-only prompts](https://firebase.google.com/docs/ai-logic/generate-text).
- Generate text by prompting with various file types, like [images](https://firebase.google.com/docs/ai-logic/analyze-images), [PDFs](https://firebase.google.com/docs/ai-logic/analyze-documents), [video](https://firebase.google.com/docs/ai-logic/analyze-video), and [audio](https://firebase.google.com/docs/ai-logic/analyze-audio).
- [Generate structured output (like JSON)](https://firebase.google.com/docs/ai-logic/generate-structured-output) from both text and multimodal prompts.
- [Generate and edit images](https://firebase.google.com/docs/ai-logic/generate-images-gemini) from both text and multimodal prompts.
- [Stream input and output](https://firebase.google.com/docs/ai-logic/live-api) (including audio) using the Gemini Live API.
- Use tools (like [function calling](https://firebase.google.com/docs/ai-logic/function-calling) and [grounding with Google Search](https://firebase.google.com/docs/ai-logic/grounding-google-search)) to connect a Gemini model to other parts of your app and external systems and information.

<br />