The latest Gemini models, like Gemini 3.1 Flash Image (Nano Banana 2), are available to use with Firebase AI Logic on all platforms!
Gemini 2.0 Flash and Flash-Lite models will be retired on June 1, 2026. To avoid service disruption, update to a newer model like gemini-2.5-flash-lite. Also, Gemini 3 Pro Preview (gemini-3-pro-preview) will be retired on March 9, 2026 (update to Gemini 3.1 Pro Preview: gemini-3.1-pro-preview). Learn more.
使用 Firebase AI Logic 時,必須遵守《Google Cloud Platform 服務條款》。由於 Firebase AI Logic 是生成式 AI 服務,因此使用時須遵守《Google Cloud Platform 服務條款》的服務專屬條款中,有關生成式 AI 服務的規定。
Firebase AI Logic 可讓您在應用程式中加入生成式 AI 功能。
這項服務提供 Proxy 服務、用戶端 SDK 和其他功能,讓您存取生成式 AI 模型,在行動和網路應用程式中建構 AI 功能。您可以選擇要使用的「Gemini API」供應商和模型,而使用這些 API 時,須遵守適用的服務條款。