gemini-3.1-pro-preview) are available to use with Firebase AI Logic on all platforms!Gemini 2.0 Flash and Flash-Lite models will be retired on March 31, 2026. To avoid service disruption, update to a newer model like
gemini-2.5-flash-lite.Learn more. Limits and specifications of the Live API Stay organized with collections Save and categorize content based on your preferences.
This page describes various limits and specifications for using theLive API and its models.
Session-related limits
For theLive API, asession refers to a persistent connection where inputand output are streamed continuously over the same connection.
If the session exceedsany of the following limits, the connection isterminated.
Connection length is limited to around 10 minutes.
Session length depends on the input modalities:
- Audio-only input sessions are limited to 15 minutes.
- Video + audio input are limited to 2 minutes.
Session context window is limited to 128k tokens.
You'll receive agoing away notificationbefore the connection ends, allowing you to take further actions.
Note:Firebase AI Logic doesnot yet support the followingconfigurations for session management:resuming a session across multiple connections,extending the session length, orcompressing the context window.Learn more aboutmanaging sessions.
Rate limits
TheLive API has rate limits for both concurrent sessions perFirebase project as well as tokens per minute (TPM).
Gemini Developer API:
- Limits vary based on your project'sGemini Developer API"usage tier" (see theirrate limits documentation)
Vertex AI Gemini API:
- 1,000 concurrent sessions per Firebase project
- 4M tokens per minute
Audio formats
TheLive API supports the following audio formats:
- Input audio format: Raw 16 bit PCM audio at 16kHz little-endian
Output audio format: Raw 16 bit PCM audio at 24kHz little-endian
Supported MIME types:
audio/x-aac,audio/flac,audio/mp3,audio/m4a,audio/mpeg,audio/mpga,audio/mp4,audio/ogg,audio/pcm,audio/wav,audio/webm
To convey the sample rate of input audio, set the MIME type of eachaudio-containing Blob to a value likeaudio/pcm;rate=16000.
Video formats
TheLive API expects a sequence of discrete image frames and supports videoframes input at 1 frame per second (FPS).
Recommended input: native 768x768 resolution at 1 FPS.
Supported MIME types:
video/x-flv,video/quicktime,video/mpeg,video/mpegs,video/mpg,video/mp4,video/webm,video/wmv,video/3gpp
Note that this specification makes theLive API unsuitable for use casesthat require analyzing fast-changing video, such as play-by-play in high-speedsports.
Response voices
TheLive API supports the following response voice options. For demos ofwhat each voice sounds like, seeChirp 3: HD voices.
If you don't specify a response voice, the default isPuck.
Learn how tospecify the response voice.
Zephyr --BrightKore --FirmOrus --FirmAutonoe --BrightUmbriel --Easy-goingErinome --ClearLaomedeia --UpbeatSchedar --EvenAchird --FriendlySadachbia --Lively | Puck --UpbeatFenrir --ExcitableAoede --BreezyEnceladus --BreathyAlgieba --SmoothAlgenib --GravellyAchernar --SoftGacrux --MatureZubenelgenubi --CasualSadaltager --Knowledgeable | Charon --InformativeLeda --YouthfulCallirrhoe --Easy-goingIapetus --ClearDespina --SmoothRasalgethi --InformativeAlnilam --FirmPulcherrima --ForwardVindemiatrix --GentleSulafat --Warm |
Languages
TheLive API supports the following languages.Learn how toinfluence the response language.
| Language | BCP-47 Code | Language | BCP-47 Code |
|---|---|---|---|
| Arabic (Egyptian) | ar-EG | German (Germany) | de-DE |
| English (US) | en-US | Spanish (US) | es-US |
| French (France) | fr-FR | Hindi (India) | hi-IN |
| Indonesian (Indonesia) | id-ID | Italian (Italy) | it-IT |
| Japanese (Japan) | ja-JP | Korean (Korea) | ko-KR |
| Portuguese (Brazil) | pt-BR | Russian (Russia) | ru-RU |
| Dutch (Netherlands) | nl-NL | Polish (Poland) | pl-PL |
| Thai (Thailand) | th-TH | Turkish (Turkey) | tr-TR |
| Vietnamese (Vietnam) | vi-VN | Romanian (Romania) | ro-RO |
| Ukrainian (Ukraine) | uk-UA | Bengali (Bangladesh) | bn-BD |
| English (India) | en-IN & hi-IN bundle | Marathi (India) | mr-IN |
| Tamil (India) | ta-IN | Telugu (India) | te-IN |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-19 UTC.