firebase/firebase-ai-logic-basics
Call Gemini models from web and mobile apps via Firebase AI Logic
Description
firebase-ai-logic-basics is an agent skill that adds Firebase AI Logic to web and mobile apps, so client-side code can call Gemini models directly without a backend of your own. It supports text generation, multimodal input including images, audio, video and PDFs, structured JSON output, streaming responses, and on-device inference through Gemini Nano. The skill handles Firebase SDK setup, the choice of API provider, and App Check configuration, so you can move straight to calling Gemini from your client code. The page's examples include adding image captioning to a web app with multimodal input, generating structured JSON from user prompts in a Firebase project, streaming chat replies in a multi-turn conversation UI, and switching between on-device and cloud inference for apps that need to work offline. The skill is published by Firebase in its agent-skills repository and is installed into a coding assistant with one command.…
Highlights
- Call Gemini models from web and mobile client code
- Multimodal input for images, audio, video and PDFs
- Structured JSON output and streaming responses
- On-device inference with Gemini Nano
- Handles SDK setup, provider choice and App Check
Ratings & Reviews
No ratings yet
Be the first to rate firebase/firebase-ai-logic-basics.
People also visit
firebase/firebase-ai-logic-basics FAQ
Do I need my own backend?
The page says the skill lets client-side code call Gemini directly, without managing a backend.
What inputs does it accept?
Text, images, audio, video and PDFs, according to the description.
Can it run models on the device?
Yes. The page lists on-device inference through Gemini Nano, and switching between on-device and cloud inference.
How do I install it?
Run npx skills add https://github.com/firebase/agent-skills --skill firebase-ai-logic-basics, or paste the link into your coding assistant.
What are the best firebase/firebase-ai-logic-basics alternatives?
Popular alternatives to firebase/firebase-ai-logic-basics include firebase-ai-logic-basics, firebase-ai-logic and firebase. See all firebase/firebase-ai-logic-basics alternatives










