Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

User location is not supported for the API use

I've been using Gemini Models from my Cloud Run function deployed to us-central1 for weeks. This morning I woke up to this error. I didn't change anything, why am I no longer able to access gemini flash?

Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [400 Bad Request] User location is not supported for the API use. Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [400 Bad Request] User location is not supported for the API use.

0 5 622
5 REPLIES 5

+1

I have the same problem

I moved my functions to us-west1 and service was restored

I’m facing the same issue 

Any solution about this matter? I'm facing the same issue with my server hosted in US-CENTRAL.