Starting November 2, 2026, Firebase App Check enforcement will be required to use Firebase AI Logic. Learn more.
Model updates:
Gemini 4 Carbon and Gemini 4 Argon are now
available to use with Firebase AI Logic!
Learn more.
Gemini 2.5 models are deprecated or shut down. For the
Agent Platform Gemini API, all general-use Gemini 2.5 models
have shut down. For the Gemini Developer API, starting
December 1, 2026, requests to the general-use
Gemini 2.5 Flash and Pro models will be automatically routed to newer
models (which may cause breaking changes;
learn more).
To avoid service disruptions, update to a newer model (like
gemini-4-argon,
gemini-3.8-flash,
gemini-3.5-flash-lite, or
gemini-nano-banana-2.1).
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 make this
request directly from your mobile or web app (such as your Apple (Swift),
Android (Kotlin / Java), Web (JavaScript), Flutter (Dart), or Unity app).
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 2026-11-12 UTC."],[],[]]