Gemini 3 Pro & Flash, Gemini 3 Pro Image (nano banana pro), and the latest Gemini Live API
native audio models are now available to use with Firebase AI Logic on all platforms!
Gemini 2.0 Flash and Flash-Lite models will be retired on March 3, 2026.
To avoid service disruption, update to a newer model like gemini-2.5-flash-lite.
Learn more.
Stream generated text responses using the Gemini API
Stay organized with collections
Save and categorize content based on your preferences.
Firebase AI Logic supports basic streaming of text responses using
generateContentStream or sendMessageStream (for chat).
You can achieve faster interactions by not waiting for the entire result from
the model generation, and instead use streaming to handle partial results.
Check out the documentation to stream generated text responses for the
following:
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-21 UTC.
[null,null,["Last updated 2026-01-21 UTC."],[],[]]