firebase-ai-logic

Configure Firebase AI Logic for Flutter apps to access Gemini and Vertex AI securely.

6|Updated Apr 23, 2026
One-click install
npx skills add https://github.com/ImL1s/flutter-claude-skills --skill firebase-ai-logic-iml1s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: firebase-ai-logic
Source: https://github.com/ImL1s/flutter-claude-skills/tree/main/skills/firebase-ai-logic
Command: npx skills add https://github.com/ImL1s/flutter-claude-skills --skill firebase-ai-logic-iml1s

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Firebase AI Logic enables Flutter apps to securely access Gemini and Vertex AI APIs without exposing API keys, simplifying AI-powered features integration and management across environments.

Core Features & Use Cases

  • Dual-backend access: choose between Gemini Developer API (googleAI) or Vertex AI (vertexAI) based on needs and pricing.
  • Secure integration: via Firebase proxy gateway and App Check to protect keys and requests.
  • In-app AI workflows: for vision, classification, or chat tasks within Flutter apps.

Quick Start

Install and configure Firebase AI Logic in your Firebase project, enable the required APIs in GCP, and integrate the firebase_ai package in your Flutter app to switch between googleAI() and vertexAI() as needed.

Frequently Asked Questions about firebase-ai-logic

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use Gemini AI in Flutter without exposing API keys?

Firebase AI Logic securely integrates Gemini AI in Flutter by routing requests through a Firebase proxy gateway. Using App Check protects your API keys and secures Vertex AI requests in production deployments.

What is the difference between using Vertex AI and the Gemini Developer API in Firebase?

Firebase AI Logic provides dual-backend access allowing you to choose between the Gemini Developer API and Vertex AI. You select your backend based on specific feature requirements and pricing preferences within your Firebase project.

Do I need to enable specific APIs in GCP to use Firebase AI Logic?

Yes, using Firebase AI Logic requires enabling the Firebase Vertex AI and Gemini Developer APIs in GCP. You must also configure AI Logic settings within the Firebase Console before integrating the SDK into your Flutter app.

Can I use Firebase AI Logic with the free Spark plan or is the paid Blaze plan required?

Firebase AI Logic supports both the free Spark plan and the paid Blaze plan. You can configure the integration and switch between googleAI and vertexAI backends based on your current Firebase subscription level.

Does Firebase AI Logic work for in-app vision and chat workflows in Flutter?

Firebase AI Logic enables in-app AI workflows for vision, classification, and chat tasks within Flutter apps. It securely connects your application to Gemini and Vertex AI models without exposing your API keys.