Starting November 2, 2026, Firebase App Check enforcement will be
required to use Firebase AI Logic.
Learn more. Model updates:
-
The latest Gemini models, like Gemini 3.6 Flash, are available to use with
Firebase AI Logic! Learn more.
-
All Imagen models will shut down as early as June 30, 2026.
Learn about migrating your apps to use Nano Banana.
-
Gemini 2.5 models will shut down in October 2026. To avoid service disruptions,
update to a newer model (like
gemini-3.6-flash or gemini-3.1-flash-image).
Any stable Gemini Live API 2.5 models are not impacted.
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-08-04 UTC.
[null,null,["Last updated 2026-08-04 UTC."],[],[]]