firebase-ai-logic
Installation
SKILL.md
Firebase AI Logic (Gemini)
Firebase AI Logic lets you call Gemini directly from the client without managing a backend or API key. The SDK exchanges App Check tokens for short-lived Gemini credentials — abuse-resistant by default.
There are two providers under the same SDK:
- Vertex AI in Firebase — billed via your Google Cloud project, enterprise SLAs, available in more regions, supports all Gemini models including 2.5 Pro/Flash.
- Google AI (Gemini Developer API) — billed via Firebase, simpler quota model, good for early-stage apps and prototypes.
Pick one per project. Migrating later requires re-init code; pick deliberately.
Minimum viable example
import { getVertexAI, getGenerativeModel } from "@react-native-firebase/vertexai";