For mobile and web apps, the Firebase AI Logic SDKs let you interact with the supported Gemini modelsand Imagen modelsdirectly 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. Imagen models can be prompted with text to generate images.
The following table is a brief overview of supported models for Firebase AI Logic and their latest stable model names. This table also lists preview and experimental models that are available for prototyping use cases.
Also, review our FAQ about all the models that Firebase AI Logic supports and does not support.
Gemini models
gemini-2.5-pro
gemini-2.5-flash
gemini-2.5-flash-lite
gemini-2.0-flash-001
gemini-2.0-flash-lite-001
gemini-2.5-flash-image-preview
gemini-2.0-flash-preview-image-generation
gemini-2.0-flash-live-preview-04-09
audio (streaming)
audio (streaming)
1 Additional model names support the Live API depending on your chosen Gemini API provider and access (see the Live API page ).
Imagen models
imagen-4.0-generate-001
imagen-4.0-fast-generate-001
imagen-4.0-ultra-generate-001
imagen-3.0-generate-002
imagen-3.0-fast-generate-001
The remainder of this page provides detailed information about the models supported by Firebase AI Logic .
-
- 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 , specifically their stable , auto-updated , preview , and experimental versions
-
Lists of available model names to include in your code during initialization
-
Lists of supported languages for the models
At the bottom of this page, you can view detailed information about older models .
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 : Gemini models and Imagen models
-
Vertex AI Gemini API : Gemini models and Imagen models
Supported input and output
These are the supported input and output types when using each model with Firebase AI Logic :
2.5 Pro, Flash, Flash-Lite
2.5 Flash
Image
2.0 Flash
2.0 Flash-
Lite
2.0 Flash
Image Generation
2.0 Flash-
Live
(PDFs or plain-text)
(like JSON)
To learn about supported file types, see Supported input files and requirements .
Supported capabilities and features
These are the supported capabilities and features when using each model with Firebase AI Logic :
Gemini 2.5 Pro, Flash, Flash-Lite |
Gemini 2.5 Flash Image |
Gemini 2.0 Flash |
Gemini 2.0 Flash- Lite |
Gemini 2.0 Flash Image Generation |
Gemini 2.0 Flash- Live |
Imagen | |
---|---|---|---|---|---|---|---|
Generate text
from
text-only or multimodal inputs
|
interleaved or as part of image | interleaved or as part of image | streaming only | ||||
Generate audio
|
streaming only | ||||||
Analyze images
(vision)
|
|||||||
Analyze video
(vision)
|
|||||||
streaming only | |||||||
Specifications and limitations
These are the specifications and limitations when using each model with Firebase AI Logic :
2.5 Pro, Flash, Flash-Lite
2.5 Flash
Image
2.0 Flash
2.0 Flash-
Lite
2.0 Flash
Image Generation
2.0 Flash-
Live
Total token limit
(combined input+output)
of input PDF files **
of pages
per input PDF file **
per input PDF file
of input images
of output images
per input base64-encoded image
of input video files
of all input video
(frames only)
of all input video
(frames+audio)
of input audio files
of output audio files
of all input audio
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
.
** 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.
Find additional detailed information
-
Quotas and 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 .
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" section later on this page.
Release stage
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 suffixExample:
gemini-2.5-pro
- Gemini 2.0
and Imagen
models
Model names of stable versions are appended with a specific three-digit version numberExample:
gemini-2.0-flash-001
Example:imagen-3.0-generate-002
( Gemini 2.0 models only)
Gemini 2.0 models only Model names of aliases have no suffix
Example: gemini-2.0-flash
These models are not recommended for production use, come with more restrictive rate limits, and may have billing requirements.
For the Vertex AI
Gemini API
, preview models released after
June 2025 usually require you to set the model's location to global
.
Model names of preview versions are appended with -preview
-MM-DD
Example: gemini-2.5-flash-preview-04-17
(released on April 17, 2025)
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.
For the Vertex AI
Gemini API
, experimental models released
after June 2025 require you to set the model's location to global
.
Model names of experimental versions are appended with -exp
-MM-DD
Example: gemini-2.5-pro-exp-03-25
(released on March 25, 2025)
Retired models are no longer accessible or supported by Google, and requests referencing a retired model ID typically returns a 404 error.
---
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 Jump to Imagen model names
Programmatically list all available models
You can list all available models names using the REST API:
-
Gemini Developer API : Call the
models.list
endpoint -
Vertex AI Gemini API : Call the
publishers.models.list
endpoint
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 .
For details about the release stages (especially for use cases and billing), see model versioning and naming patterns .
Gemini 2.5 Pro model names
Model name | Description | Release stage | Release date | Retirement 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
Model name | Description | Release stage | Release date | Retirement 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
Model name | Description | Release stage | Release date | Retirement 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")
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
gemini-2.5-flash-image-preview
|
Preview version for Gemini 2.5 Flash Image (aka "nano banana") | Preview | 2025-08-26 | To be determined |
Gemini 2.5 Flash Live model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
gemini-live-2.5-flash
|
Stable version for Gemini 2.5 Flash Live | Stable (private GA) 1 |
2025-06-01 | No earlier than 2026-06-01 |
gemini-live-2.5-flash-preview
2
|
Preview version for Gemini 2.5 Flash Live | Preview | 2025-06-01 | To be determined |
Take note that in the 2.5 model names for the Live API
,
the live
segment immediately follows the gemini
segment.
1 Reach out to your Google Cloud account team representative to request access.
2 Not supported by the Vertex AI Gemini API regardless of how you access the API.
Gemini 2.0 Flash model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
gemini-2.0-flash-001
|
Latest stable version of Gemini 2.0 Flash | Stable | 2025-02-05 | No earlier than 2026-02-05 |
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 | --- |
Gemini 2.0 Flash‑Lite model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
gemini-2.0-flash-lite-001
|
Latest stable version of Gemini 2.0 Flash‑Lite | Stable | 2025-02-25 | No earlier than 2026-02-25 |
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 | --- |
Gemini 2.0 Flash Image Generation model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
gemini-2.0-flash-preview-image-generation
|
Preview version for Gemini 2.0 Flash Image Generation | Preview | 2025-05-06 | To be determined |
Gemini 2.0 Flash Live model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
gemini-2.0-flash-live-001
2
|
Stable version for Gemini 2.0 Flash Live | Stable | 2025-04-01 | No earlier than 2026-04-01 |
gemini-2.0-flash-live-preview-04-09
|
Preview version for Gemini 2.0 Flash Live | Preview | 2025-04-09 | To be determined |
2 Not supported by the Vertex AI Gemini API regardless of how you access the API.
Imagen model names
For initialization examples for your platform, see the generate images with Imagen guide .
For details about the release stages (especially for use cases and billing), see model versioning and naming patterns .
Imagen 4 model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
imagen-4.0-generate-001
|
Stable version of Imagen 4 | Stable | 2025-08-14 | No earlier than 2026-08-14 |
imagen-4.0-generate-preview-06-06
|
Preview version of Imagen 4 | Preview | 2025-06-06 | As early as 2025-08-14 |
Imagen 4 Fast model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
imagen-4.0-fast-generate-001
|
Stable version of Imagen 4 Fast | Stable | 2025-08-14 | No earlier than 2026-08-14 |
imagen-4.0-fast-generate-preview-06-06
3
|
Preview version of Imagen 4 Fast
(will be retired soon - do not use) |
Preview | 2025-06-06 | As early as 2025-08-14 |
Imagen 4 Ultra model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
imagen-4.0-ultra-generate-001
|
Stable version of Imagen 4 Ultra | Stable | 2025-08-14 | No earlier than 2026-08-14 |
imagen-4.0-ultra-generate-preview-06-06
|
Preview version of Imagen 4 Ultra
(will be retired soon - do not use) |
Preview | 2025-06-06 | As early as 2025-08-14 |
Imagen 3 model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
imagen-3.0-generate-002
|
Latest stable version of Imagen 3 | Stable | 2025-01-23 | No earlier than 2026-01-23 |
imagen-3.0-generate-001
3
|
Initial stable version of Imagen 3 | Stable | 2024-07-31 | No earlier than 2025-07-31 |
Imagen 3 Fast model names
Model name | Description | Release stage | Release date | Retirement date |
---|---|---|---|---|
imagen-3.0-fast-generate-001
3
|
Initial stable version of Imagen 3 Fast | Stable | 2024-07-31 | No earlier than 2025-07-31 |
3 Not supported by the Gemini Developer API regardless of how you access the API.
Supported languages
Gemini
-
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)
Imagen
-
General availability: English
-
Preview: Chinese (simplified), Chinese (traditional), Hindi, Japanese, Korean, Portuguese, Spanish
Information about older models
Firebase AI Logic supports the older active Gemini models (like Gemini 1.5 models).
Firebase AI Logic does not support the older Imagen models (like Imagen 2 ).
Model | Input | Output | Optimized for |
---|---|---|---|
Gemini 1.5 Pro
gemini-1.5-pro-002
|
text, code, PDFs, images, video, audio | text, code, JSON | Supports complex reasoning tasks requiring more intelligence; 2M long context |
Gemini 1.5 Flash
gemini-1.5-flash-002
|
text, code, PDFs, images, video, audio | text, code, JSON | Offers fast and versatile performance across a diverse variety of tasks |
gemini-1.0-pro-vision-001
|
|
|
|
gemini-1.0-pro-002
|
|
|
|
View supported input and output of older models
These are the input and output types when using each model with Firebase AI Logic :
(PDFs or plain-text)
(like JSON)