The latest Gemini models, like
Gemini 3.1 Flash Image (
Nano Banana 2 ), are available to use with Firebase AI Logic!
Learn more. Gemini 2.0 Flash and Flash-Lite models will shut down on
June 1, 2026 . To avoid service disruption, update to a newer model like
gemini-2.5-flash-lite.
Learn more. All Imagen models will shut down on
June 24, 2026 .
Learn about migrating your apps to use Nano Banana.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
发送反馈
使用 Firebase AI Logic 构建混合型和设备端体验
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
您可以使用混合推理构建 AI 赋能的 Android 和 Web 应用及功能
使用 Firebase AI Logic 。混合推理支持在设备端模型可用时使用该模型运行推理,否则无缝回退到云端托管的模型(反之亦然)。
使用设备端模型进行推理 可提供:
使用混合 功能可提供:
通过适应设备端模型的可用性和互联网连接情况,覆盖更多受众群体
请参阅我们的入门指南
这些指南提供了有关如何在应用中设置混合体验的分步说明。
发送反馈
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可 获得了许可,并且代码示例已根据 Apache 2.0 许可 获得了许可。有关详情,请参阅 Google 开发者网站政策 。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-04-18。
需要向我们提供更多信息?
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-04-18。"],[],[]]