r/Firebase • u/jhuleatt Firebaser • Sep 17 '26
Billing Introducing Firebase spend caps for AI Logic, Functions, and App Hosting
If you’ve spent any time on this subreddit (or building on cloud platforms in general), you know the persistent anxiety around runaway bills from a recursive loop, a viral traffic spike, or an unthrottled API key.
Now, Firebase AI Logic, Cloud Functions for Firebase (1st and 2nd gen), and Firebase App Hosting all let you set spend caps that pause the service after you reach 100% of a configured threshold!
You set spend caps per-service in a single spot in the Firebase console, receive automated email alerts at 50%, 80%, and 100% of a spend cap threshold, see a banner in the console if a service is paused, and can lift spend caps after they're enforced if you need to turn a service back on.
Note that due to latency in usage reporting, spend cap enforcement is not instantaneous and can be delayed by several minutes, and any cost overages incurred during this delay will be billed as normal. Even though they're not instant, spend caps can catch runaway bills much earlier than before.
Spend caps are an emergency circuit breaker, but they work best alongside Budget Alerts, App Check, API key restrictions, and IAM to help avoid surprise bills.
21
u/jhuleatt Firebaser Sep 17 '26
Dropping a quick screen recording to show what the spend caps UI looks like:
5
u/Accomplished_Ad_1158 Sep 17 '26
Great! Any plans on something similar for Firestore or RTDB?
8
u/indicava Sep 17 '26
Well it’s about god damn time!
jk, great to see Google addressing what is probably the developers community’s biggest concern in using these types of services.
4
u/fhinkel-dev Sep 17 '26
How bad can the "few minutes" be? Do you have any anecdotal data? Thanks for finally having spend caps!
3
u/-irx Sep 18 '26 edited Sep 18 '26
How does that differs from regular budget alert + script that will disable the service which works with any firebase service? Without firestore or rtdb it's kinda meh, hopefuly coming soon.
2
u/Mother-Ad-2559 Sep 18 '26
But nothing for firestore?
3
u/Dazzling_Matter_8774 Sep 19 '26
That's good but what about firestore and storage?
2
u/22nd_Street Sep 18 '26
Thank you!
2
u/mdeeswrath Sep 19 '26
Love the changes.
Any chance we add this feature for ... you know, firebase itself ( firestore / realtime database )
That would be amazing,
Thank you
2
u/AdhdDev1998 Sep 21 '26
2
u/Exotic-Chance-7567 19d ago
About time tbh. Still need proper rate limiting at the edge so a bad actor cant intentionally brick your app by burning through your cap in ten minutes, but as a last resort failsafe this removes so much anxiety.
0
u/ThatPassaGuy Sep 17 '26
if these caps bugs out Google will foot the bill?
2
u/MjnMixael Sep 23 '26
well well well. I was just about to start seriously switching to a different platform just so I could have hard limits to protect my bottom line. Guess I'll hang out here for a bit longer, assuming this will come to firestore and storage soon enough.
2
u/[deleted] Sep 24 '26
[removed] — view removed comment