{"slug": "build-firebase-ai-logic-application-with-antigravity-cli", "title": "Build Firebase AI Logic Application with Antigravity CLI", "summary": "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).", "body_md": "**Note:** Google Cloud credits are provided for this project.\n\nIn 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.\n\nWhen 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.\n\nNext, 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.\n\nI installed `grill-with-docs`\n\n, `angular`\n\n, and `firebase`\n\nskills in my project for the following reasons:", "url": "https://wpnews.pro/news/build-firebase-ai-logic-application-with-antigravity-cli", "canonical_source": "https://dev.to/railsstudent/build-firebase-ai-logic-application-with-antigravity-cli-5c9", "published_at": "2026-07-10 15:45:18+00:00", "updated_at": "2026-07-10 16:13:45.121706+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "ai-tools", "developer-tools", "ai-infrastructure"], "entities": ["Antigravity CLI", "Angular", "Firebase", "Gemini", "Gemini Nano", "Gemini 3.5 Flash", "Chrome 148", "Stitch MCP server"], "alternates": {"html": "https://wpnews.pro/news/build-firebase-ai-logic-application-with-antigravity-cli", "markdown": "https://wpnews.pro/news/build-firebase-ai-logic-application-with-antigravity-cli.md", "text": "https://wpnews.pro/news/build-firebase-ai-logic-application-with-antigravity-cli.txt", "jsonld": "https://wpnews.pro/news/build-firebase-ai-logic-application-with-antigravity-cli.jsonld"}}