cd /news/artificial-intelligence/build-firebase-ai-logic-application-… · home topics artificial-intelligence article
[ARTICLE · art-54439] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Build Firebase AI Logic Application with Antigravity CLI

A developer used Antigravity CLI to build an image analysis demo with Angular, Firebase Hybrid & On-device Inference Web SDK, and Gemini models. The demo analyzes uploaded images to generate alternative text, tags, recommendations, and CSS tips. On Chrome 148+, it uses the on-device Gemini Nano model with zero token usage; on other browsers, it falls back to Cloud AI (Gemini 3.5 Flash).

read1 min views1 publishedJul 10, 2026

Note: Google Cloud credits are provided for this project.

In this blog post, I want to demonstrate how I use Antigravity CLI to build an image analysis demo using Angular, Firebase Hybrid & On-device Inference Web SDK, and Gemini models. Users upload an image and use a Gemini model to analyze it to generate a few alternative texts, tags, recommendations, and CSS tips to enhance the image quality.

When the demo is running on Chrome 148+, the Hybrid & On-device SDK leverages the Prompt API of the on-device Gemini Nano model to perform the image-to-text tasks, and the token usage is 0. When other browsers such as Safari or Firefox executes the same tasks on the demo, the SDK falls back to Cloud AI (Gemini 3.5 Flash model), and the token usage is greater than 0.

Next, I will describe how I installed the skills in my Angular project, and registered the Stitch MCP server in the Antigravity CLI to develop the infrastructure, services, and UI design of my demo.

I installed grill-with-docs , angular

, and firebase

skills in my project for the following reasons:

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @antigravity cli 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/build-firebase-ai-lo…] indexed:0 read:1min 2026-07-10 ·