Starting November 2, 2026, Firebase App Check enforcement will be required to use Firebase AI Logic. Learn more.
Model updates:
Gemini 4 Hydrogen is 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-hydrogen,
gemini-3.8-flash,
gemini-3.5-flash-lite, or
gemini-nano-banana-2.1).
Learn more.
Build hybrid and on-device experiences with Firebase AI Logic
Stay organized with collections
Save and categorize content based on your preferences.
You can build AI-powered Apple, Android, and Web apps and features with hybrid
inference using Firebase AI Logic. Hybrid inference enables running
inference using on-device models when available and seamlessly falling back to
cloud-hosted models otherwise (and vice versa).
Benefits of using an on-device model for inference:
Enhanced privacy
Local context
Inference at no-cost
Offline functionality
Benefits of using a hybrid approach:
Provide a similar app experience, regardless of the end-user's device
Improve availability of generative AI features, regardless of internet
connectivity, quota limitations, or device capabilities
Follow our get started guides
These guides provide step-by-step instructions to set up hybrid experiences
in your apps.
After setting up your app with the get started guides, learn how to configure
and customize your hybrid experiences:
Configure inference modes and models:
Control whether your app prefers on-device inference, in-cloud inference, or
restricts execution to one source
(iOS+ |
Android |
Web).
Generate structured output (like JSON and enums):
Ensure model responses adhere to an exact schema for downstream processing
(Android |
Web).
[[["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."],[],[]]