Gemini API - Location/region of Server / IP Address

Hi,

I am receiving the following error on making API Calls to Gemini from out backend - [[GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [400 Bad Request] Gemini API free tier is not available in your country. Please enable billing on your project in Google AI Studio.]

I am using the free tier of Gemini (as evident from the error message) and the server from where I am making API calls is hosted in India (Mumbai), the hosting service provider is Contabo and they have also confirmed that the location of servers in indeed India (via email).

I checked the geo location of IP via iplocation.net and some of the IP to Geo Location service provider report that IP address assigned to us by Contabo is in India and some say that it is in Germany.

As we created our VPS instance in India (Mumbai) Location and the same has been confirmed by the hosting service provider (Contabo), what additional steps can we do to utilize the free tier? Any help / guidance is highly appreciated.

Thanks
Pravesh

It sounds like at least some of the Geo Location services have the German location still stored, and Google may be using one of these to do its verification. Germany is one of the locations that requires a paid tier to use the API.

It sounds like any solution you use has to go through Contabo - have them either give you a different address that the services agree is in an allowed region, or have them straighten things out with the GeoLocation services.