All Gemini 1.0 and Gemini 1.5 models are now retired. To avoid service disruption, update to anewer model(for example,gemini-2.5-flash-lite).Learn more.
Stream generated text responses using the Gemini APIStay organized with collectionsSave and categorize content based on your preferences.
Firebase AI Logicsupports basicstreaming of text responsesusinggenerateContentStreamorsendMessageStream(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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]