# Adding AI-powered star-rating suggestions to reviews with Firebase AI Logic

DevFeed: [Adding AI-powered star-rating suggestions to reviews with Firebase AI Logic](<https://devfeed.tech/articles/ai-in-action-adding-ai-powered-reviews-16631.md>)

Original publisher: [Read original article](<https://firebase.blog/posts/2025/10/adding-ai-powered-reviews>)

Author: Alexander Nohe; Jeff Huleatt

Published: 2025-10-01T00:00:00Z

Content type: tutorial

Language: en

Sources: [Firebase Blog](<https://devfeed.tech/sources/firebase-blog.md>)

Topics: [Firebase](<https://devfeed.tech/topics/firebase.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Google AI](<https://devfeed.tech/topics/google-ai.md>), [API keys](<https://devfeed.tech/topics/api-keys.md>), [Generative AI](<https://devfeed.tech/topics/generative-ai.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-logic](<https://devfeed.tech/tags/ai-logic.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [app-check](<https://devfeed.tech/tags/app-check.md>), [firebase](<https://devfeed.tech/tags/firebase.md>), [firestore](<https://devfeed.tech/tags/firestore.md>), [gemini](<https://devfeed.tech/tags/gemini.md>), [hybrid-inference](<https://devfeed.tech/tags/hybrid-inference.md>), [mcp](<https://devfeed.tech/tags/mcp.md>), [on-device-ai](<https://devfeed.tech/tags/on-device-ai.md>), [react](<https://devfeed.tech/tags/react.md>), [recaptcha](<https://devfeed.tech/tags/recaptcha.md>), [security-rules](<https://devfeed.tech/tags/security-rules.md>), [tutorials](<https://devfeed.tech/tags/tutorials.md>)

## AI overview

This tutorial explains how the Friendly Eats app uses Firebase AI Logic to suggest a star rating while a user writes a review. It discusses choosing a client-side SDK, protecting Gemini API keys through a proxy, using on-device models when available, securing requests with Firebase App Check, and balancing model cost, speed, and quality.

## Source excerpt

News, tutorials, and updates from the Firebase team.