cd /news/ai-products/vertex-ai-in-firebase-is-now-firebas… · home topics ai-products article
[ARTICLE · art-131351] src=dev.to ↗ pub= topic=ai-products verified=true sentiment=· neutral

Vertex AI in Firebase is Now Firebase AI Logic: What Actually Changed

Google rebranded Vertex AI in Firebase to Firebase AI Logic in May 2025, expanding the client-side SDK to support both the Gemini Developer API and the enterprise Agent Platform backend. The change introduces a new firebase/ai package replacing firebase/vertexai, with getAI() and backend selection replacing getVertexAI(), plus App Check protection, multimodal chat responses, and Gemini Nano on-device support in Chrome. A developer migrating a real Angular + Gemini project documented the SDK import changes and provider-switching code required to move off the deprecated Vertex-only path.

by read3 min views6 publishedSep 16, 2026

If you learned Vertex AI in Firebase last year and came back in 2026 to find Firebase AI Logic, you’re not alone as I went through the same reset. I’d already shipped an Angular + Gemini demo, then spent days reconciling old blog posts, renamed Console menus, and SDK imports that no longer compiled. This article is the companion to my setup tutorial: not how to wire Angular, but what the rebrand actually means and what’s new compared to the original Vertex-only path. This is documented from the mistakes and migration work I did on a real project.

In May 2025, Firebase renamed and expanded it to Firebase AI Logic. The rename reflects a wider scope, not a different product category. Same client-side idea; more backends and features.

Era Name What it meant
May 2024 Vertex AI in Firebase (preview) Client SDKs → Vertex AI Gemini API only
Oct 2024 Vertex AI in Firebase (GA) Production-ready Vertex path
May 2025+ Firebase AI Logic Agent Platform Gemini API or Gemini Developer API, new SDK, expanded platform support

GoogleAIBackend) The biggest addition. Prototype on the Spark (free) plan, then scale. Console: Build → AI Logic → Get started → Gemini Developer API. The original product only offered the enterprise Vertex/Agent Platform path.

Switch providers by changing initialization:

import { getAI, GoogleAIBackend, AgentPlatformBackend } from 'firebase/ai';

// Gemini Developer API — easiest way to get started (this guide uses this)
getAI(app, { backend: new GoogleAIBackend() });

// Agent Platform / enterprise (what Vertex AI in Firebase was built around)
getAI(app, { backend: new AgentPlatformBackend('global') });

You can enable both APIs in one Firebase project.

App Check can protect Developer API traffic, not just the enterprise backend. Required for production AI Logic on web; this guide wires it in Part 2.

Migrate from the deprecated path:

Vertex AI in Firebase Firebase AI Logic
firebase/vertexai firebase/ai
getVertexAI() getAI() + backend

Firebase Console dashboards now cover client-side AI Logic requests (not only server-side Genkit).

Client-side AI Logic for games and Android XR.

Multimodal chat responses (text + image), beyond Imagen-only client access.

Gemini Nano on Chrome with prefer_on_device, falling back to cloud automatically.

Firebase AI Logic authorizes Developer API calls via a Google-managed service account, not a Gemini API key embedded in your app. Use your normal Firebase web apiKey + App Check; do not add Generative Language API to that key's allowlist (if it's still available as an option).

// BEFORE — Vertex AI in Firebase
import { getVertexAI, getGenerativeModel } from 'firebase/vertexai';
const vertexAI = getVertexAI(app);
const model = getGenerativeModel(vertexAI, { model: 'gemini-2.0-flash' });

// AFTER — Firebase AI Logic
import { getAI, getGenerativeModel, GoogleAIBackend } from 'firebase/ai';
const ai = getAI(app, { backend: new GoogleAIBackend() });
const model = getGenerativeModel(ai, { model: 'gemini-2.5-flash' });

Official references: May 2025 announcement, FAQ — why the name changed.

── more in #ai-products 4 stories · sorted by recency
── more on @google 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/vertex-ai-in-firebas…] indexed:0 read:3min 2026-09-16 ·