All Gemini 1.5 models will be retired on September 24, 2025. To avoid service disruption, update to a newer model (for example, 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: