> Search "gemini api key", 2nd hit (after a help article)
> Click "Create API Key" button.
> Select project
> Copy key
No billing setup necessary.
Re:Gemini CLI: your open-source AI agent
by kkarpkkarp on Tuesday July 01, 2025 @01:43AM
(#44430941)
did you try to use the gemini api then? this what you describe is what I did, but then api returns error that I reached the limit (on the first prompt)
I dont know if the solution with connecting to payment account is valid: this is what gemini told me when I descried problem using aistudio.google.com
- suppose you already found the page where you can get the key, you copy it and at say to the Zed editor
- zed editor says on every request you reached your requests quota and it does not work (it is json directly returned from api, so this is the message from google engineers)
- after googling you are finding this message lies. it is not requests quota, you simply did not connect your account with billing account (what?)
- ok, so lets connect
- you see you have some billing account created years ago, good. lets connect
- nope, the limit of accounts connected to billing account has been reached, go away
- so maybe we can try to create a new billing account?
- you set up this, add credit card data, it says you will be redirected to new window to verify something something
- new window shows claudflare "your request has been blocked"
- despite this it looks billing account is created, you has been redirected to the billing account dashboard
-is it connected to your api account? lets check. no it is not of course
-so try to connect
-your newly created billing account is not on the list
great job, google, you will really convince me to switch from openai/claude to gemini :)