I can’t find a setting to set a max spend for an api key or account per month, which would make it unusable since there would be no way of protecting yourself against bugs or hacks that might produce bills in the millions of dollars…
I refuse to believe this most basic feature does not exist. How do I enable it and set a max spend per month for gemini api?
If your API-KEY is attached to a billing account in GCP you can set the rate limits as per my understanding and here is the documentation that I found.
Probably it can help you limit or set alerts using GCP Quotas. Hope this helps.