# Issue Accessing Gemini API from Vietnam-based VPS

**URL:** <https://discuss.ai.google.dev/t/issue-accessing-gemini-api-from-vietnam-based-vps/77810>\
**Category:** Gemini API\
**Tags:** feedback, api\
**Created:** [April 5, 2025, 7:11am UTC](https://discuss.ai.google.dev/t/issue-accessing-gemini-api-from-vietnam-based-vps/77810 "2025-04-05T07:11:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thonguyen2749](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/thonguyen2749/32/48941_2.png) [@thonguyen2749](https://discuss.ai.google.dev/u/thonguyen2749)\
**Post date:** [April 5, 2025, 7:11am UTC](https://discuss.ai.google.dev/t/issue-accessing-gemini-api-from-vietnam-based-vps/77810/1 "2025-04-05T07:11:32Z")

</div>

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”_

```json
{
  "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:

```json
{
  "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

---

<div class="post-metadata">

**Author:** ![John\_Koenig](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/john_koenig/32/39883_2.png) [@John\_Koenig](https://discuss.ai.google.dev/u/John_Koenig)\
**Post date:** [April 5, 2025, 3:32pm UTC](https://discuss.ai.google.dev/t/issue-accessing-gemini-api-from-vietnam-based-vps/77810/2 "2025-04-05T15:32:52Z")

</div>

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!
