Issue Accessing Gemini API from Vietnam-based VPS

Dear Google AI Support Team,

I am writing to report an issue regarding access to the Google Gemini API from my VPS located in Vietnam.

Details:

  • VPS IP: 103.xx.xx.154
  • Location: Hanoi, Vietnam
  • Provider: “Modified by moderator”
    “Modified by moderator”
{
  "ip": "103.xx.xx.154",
  "city": "Hanoi",
  "region": "Hanoi",
  "country": "VN",
  "loc": *"Modified by moderator"*
  "org": *"Modified by moderator"*
  "postal": "10000",
  "timezone": "Asia/Bangkok"
}

Issue Description:

According to official Google information, Vietnam is included in the list of countries supported for using the Gemini API. However, when I send requests to the API from this VPS with a valid API key, I receive the following error message:

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

This creates difficulties for developing and deploying my AI applications in Vietnam, despite Vietnam being listed as a supported region.

I have confirmed that my API key works normally when used from my local. The issue only occurs when calling the API from this VPS.

I hope the Google support team can review this issue and provide a solution. Are there any exceptions for VPS servers in Vietnam? Do I need to complete any additional verification steps to allow my VPS to access the API?

I look forward to your prompt response.

Sincerely,
Tho Nguyen

1 Like

After many weeks of successful use, I am now getting this exact error message. My server is in Dallas, Texas, USA. When I use my home IP address in San Diego, California, with the exact same code, everything works.

I hope that someone at Google responds to this!

1 Like