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 建構混合式和裝置端體驗
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以使用 Firebase AI Logic ,透過混合式推論建構 AI 技術輔助 Android 和網頁應用程式與功能。混合式推論功能可在裝置端模型可用時,使用該模型執行推論,否則會順暢地改用雲端主機代管模型 (反之亦然)。
使用裝置端模型進行推論 的優點:
使用混合 功能提供:
配合裝置端模型可用性和網際網路連線,觸及更多目標對象
參閱入門指南
這些指南提供逐步操作說明,協助您在應用程式中設定混合式體驗。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間: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"]],["上次更新時間:2026-04-18 (世界標準時間)。"],[],[]]