Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"User location is not supported for the API use without a billing account linked."

Hello GitHub community,

Executing the Gemini API code snippet causes an error in my Google Colab repository: code

** "User location is not supported for the API use without a billing account linked."**

Can anyone help?

Run Gemini-pro API request in Python

like image 445
ndrej Lehner Avatar asked Sep 02 '25 17:09

ndrej Lehner


1 Answers

I post in case it could be helpful for others who landed here like me. I had the same error when testing Google AI Studio and Gemini API but on my local environment.

Because I'm based in Germany, I found out that in European countries the unpaid tier of Gemini API is not available (list here).

I didn't want to attach a billing account so I found as workaround to change region via VPN (e.g. switched to Turkey).

like image 176
enri Avatar answered Sep 05 '25 15:09

enri