Firebase/firebase-ai-logic-basics — Agent Skills | officialskills.sh
Back to skills

firebase-ai-logic-basics

communityai-tools

Integrates Firebase AI Logic into web and mobile apps so you can call Gemini models directly from client-side code without managing a backend.

Setup & Installation

npx skills add https://github.com/firebase/agent-skills --skill firebase-ai-logic-basics
or paste the link and ask your coding assistant to install it
https://github.com/firebase/agent-skills/tree/main/skills/firebase-ai-logic-basics
View on GitHub

What This Skill Does

Integrates Firebase AI Logic into web and mobile apps so you can call Gemini models directly from client-side code without managing a backend. Supports text generation, multimodal input (images, audio, video, PDFs), structured JSON output, streaming responses, and on-device inference via Gemini Nano.

Handles Firebase SDK setup, API provider selection, and App Check configuration so you skip the boilerplate and go straight to calling Gemini from your client code.

When to use it

  • Adding image captioning to a web app using Gemini's multimodal input
  • Generating structured JSON responses from user prompts in a Firebase project
  • Streaming chat responses in a multi-turn conversation UI
  • Switching between on-device and cloud inference for offline-capable apps
  • Updating the Gemini model version across all clients without redeploying code