How to limit my budget cost say $30 a month spent for Gemini api?

I want to deploy my poc app. I like a project level settings that will stop gemini api usage once it hits say $30 and not code level like counting tokens or api call.

Any good documentation you can refer me to? I don’t see any about it on ai studio unlike openAI where I can set a budget for a project.

Welcome to the forums!

Google Cloud does not let you set a hard limit on expenses, although you can cap your API usage or write a program that does impose a hard limit.

It does provide a way for you to create a budget and set alerts on it.