Does anyone know why I receive a 400 error?

{
“error”: {
“code”: 400,
“message”: “User location is not supported for the API use.”,
“status”: “FAILED_PRECONDITION”
}
}

User location is not supported for the API use.

If you are unable to access the service, it is possible that it is not yet available in your area. Are you using a VPN or a cloud server? If that does not work, you can try using Gemini with Vertex AI instead, as it is available in more countries.

You can check all the available region here

For cloud

Hello, I’m certain that the VPS server I’m using is located in Seattle, USA, which is within the supported regions. It was working fine before, but in the last few days, I’ve been told it’s unavailable, which is really frustrating.

I am using a VPS located in Seattle, USA. It was working normally at first, but recently it suddenly became unusable, which I find incomprehensible.

Can anyone tell me how I should solve this problem, or what I should do? Who should I contact? My service provider told me they haven’t done anything. How can I contact the Google team?

VPS or VPN?

I think using Vertex AI is likely going to be your solution here. This is a google forum, so if the error is that you are in a country that is unsupported, we cannot help you actively break the terms of service. There’s not much that can be done beyond waiting for the service to arrive in more countries at that point.

1 Like

Has he said that he works or is located in another country I haven’t actually seen where he said that but of course I could have missed that. I’ve always tried to assume positive intent and look at things that way until knowing otherwise. Maybe we should assume that he’s not out of the country unless he has already said that?