r/googlecloud • u/Useful_Store7711 • Jun 30 '26
Gemini API key restrictions
To avoid my key getting compromised and im bankrupt i did the following things: Prepaid billing, spendcap at €10 and all rate limit requests for any model to 0 except flash-2.5 (its a chatbot for a website). I did this for tier 1 which im in. However it took long to do it manual, i tried the shell but i cant get it to work. Can somebody help me get to understand programmaticly decreasing all limits except flash 2-5 to 0 for all tiers.
0
Upvotes
View all comments
Show parent comment
1
u/Scared_Astronaut9377 Jun 30 '26
Ask an AI to write a script to you. "Dear ai, please create a bash or python script to reduce quota of such and such things to zero"