firebase-ai-logic-basics - Integrate Firebase AI Logic into web and mobile apps
Integrates Firebase AI Logic SDK into web and mobile apps for Gemini API multimodal inference, structured output, streaming, and security configuration.
Tags
Updated: 2026-09-20Capabilities
What this skill does
- Generate text content
- Process multimodal inputs
- Maintain multi-turn chat sessions
- Stream response results
- Generate images
- Ground search with googleSearch tool
- Enforce structured JSON output
- Execute hybrid on-device inference
Inputs
- Node.js 16+ and npm
- Target platform selection
- Firebase project and app
- Media files or Cloud Storage URLs
- App Check debug tokens
Outputs
- Initialized AI Logic SDK configuration
- Gemini API text and image outputs
- Streamed output chunks
- App Check debug token console logs
Requirements
- Node.js 16+ and npm
- firebase-tools CLI
- Blaze pay-as-you-go billing plan for Vertex AI API or image generation
- App Check setup for security
- Chrome browser with Gemini Nano for on-device AI
