must have a nonce that matches the suspense executor nonce.`);if(!t.src)throw Error(`Deferred script in must have a src attribute. Inline modules are not supported.`);await import(t.src).catch(console.error)}window.SML?.flushLoadBuffer?.()}addDevComment(this),this.remove()}});function registerElement(e,t){customElements.get(e)||customElements.define(e,t)}function isDebugMode(e){return e.hasAttribute(`debug`)}function addDevComment(e){isDebugMode(e)&&e.before(document.createComment(e.outerHTML))} })(); Skip to main content

r/Firebase


How do you enforce free vs premium quotas with Firebase AI Logic?
How do you enforce free vs premium quotas with Firebase AI Logic?
Security

We moved our AI processing from the backend to Firebase AI Logic in our Flutter app so the backend no longer handles large image/audio uploads or waits for AI responses.

Free users get 10 AI actions per day. Premium users get unlimited actions.

Since AI requests now happen directly from the client, how do you securely enforce these different quotas? A determined user could potentially bypass a backend quota check and call Firebase AI Logic directly.

How are others handling this in production? Is there a recommended Firebase architecture for plan-specific quotas without routing the files and AI processing through a backend?


Advertisement: Connect with us to learn how Dashlane provides rapid insight into credential health and risk across your organization.
Connect with us to learn how Dashlane provides rapid insight into credential health and risk across your organization.
Connect with us to learn how Dashlane provides rapid insight into credential health and risk across your organization.



EMAIL_TEMPLATE_UPDATE_NOT_ALLOWED (URL PERSONALIZÁVEL PARA REDEFINIR SENHA):
EMAIL_TEMPLATE_UPDATE_NOT_ALLOWED (URL PERSONALIZÁVEL PARA REDEFINIR SENHA):
Authentication
r/Firebase - EMAIL_TEMPLATE_UPDATE_NOT_ALLOWED (URL PERSONALIZÁVEL PARA REDEFINIR SENHA):