Dev Slams AI API Billing: No Hard Spend Cap Anywhere, Budget Alerts Fire Too Late

MaverikSh · reddit · 2026-09-21

A developer argued on Reddit that the real problem with AI API billing is that neither Google Cloud nor any other provider offers a hard spend cap. After recent horror stories (like the $87K bill days ago), the usual advice — budget alerts, dashboard checks — doesn't stop an API call from going out. Alerts fire after the money is spent; dashboards are observability, not control. When a compromised key or a runaway agent loop hits at 3am, nothing stands between your code and the provider's billing system.

The author is building a proxy that sits between your code and AI providers, enforcing a budget before requests go out — requests that would blow the budget are blocked at the proxy. A Python wrapper makes it a near drop-in for existing Gemini/OpenAI/Anthropic calls. It's an early, solo project, and he's gathering input from users burned by unexpected bills.

Original post →

More from Infra

Infra channel →