# Gemini API location support

**URL:** <https://discuss.ai.google.dev/t/gemini-api-location-support/454>\
**Category:** Gemini API\
**Created:** [April 28, 2024, 10:50am UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454 "2024-04-28T10:50:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Duncan\_Danful](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/duncan_danful/32/369_2.png) [@Duncan\_Danful](https://discuss.ai.google.dev/u/Duncan_Danful)\
**Post date:** [April 28, 2024, 10:50am UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/1 "2024-04-28T10:50:43Z")

</div>

{ “error”: { “code”: 400, “message”: “User location is not supported for the API use.”, “status”: “FAILED\_PRECONDITION” } }, from the docs Ghana is a supported country so why am getting this error? it works well on localhost though, but i get this error after hosting it

---

<div class="post-metadata">

**Author:** ![grandell1234](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/grandell1234/32/140991_2.png) [@grandell1234](https://discuss.ai.google.dev/u/grandell1234)\
**Post date:** [April 28, 2024, 12:52pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/2 "2024-04-28T12:52:28Z")

</div>

Odd, it does say that Ghana is a supported country. Are you using a VPN or a tunnel network?

---

<div class="post-metadata">

**Author:** ![Duncan\_Danful](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/duncan_danful/32/369_2.png) [@Duncan\_Danful](https://discuss.ai.google.dev/u/Duncan_Danful)\
**Post date:** [April 28, 2024, 1:13pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/3 "2024-04-28T13:13:04Z")

</div>

Thank you for your response. I recently hosted my application and I’m not familiar with the specific configurations or setups being used by my hosting provider. Could you please provide more information or guidance on how to determine if a VPN or tunnel network is being used? I appreciate any insights you can offer to help troubleshoot the issue.

---

<div class="post-metadata">

**Author:** ![grandell1234](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/grandell1234/32/140991_2.png) [@grandell1234](https://discuss.ai.google.dev/u/grandell1234)\
**Post date:** [April 28, 2024, 5:52pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/4 "2024-04-28T17:52:22Z")

</div>

I understand that you can run API requests manually but encounter issues when you run them on a Cloud server. This could be due to the location of your servers. May I know the cloud provider you are using? You can try changing the location of your server and check where it is being hosted. Please note that currently, hosting in the EU is not allowed.

---

<div class="post-metadata">

**Author:** ![innovatix](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/innovatix/32/189_2.png) [@innovatix](https://discuss.ai.google.dev/u/innovatix)\
**Post date:** [April 28, 2024, 6:04pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/5 "2024-04-28T18:04:34Z")

</div>

To use Gemini in the EU, you can use Google Cloud Belgium (europe-west1).

> **[Gemini serving locations  |  Gemini for Google Cloud](https://cloud.google.com/gemini/docs/locations?_gl=1*1ya6nol*_up*MQ..&gclid=CjwKCAjw57exBhAsEiwAaIxaZqHhC16_Di628VszUelSIoJ1J9bVtzgV2AAQ5XPaqDK_WQZ_UcPqphoCflcQAvD_BwE&gclsrc=aw.ds&cloudshell=true#europe)**
>
> Review the locations where Gemini for Google Cloud is available.

---

<div class="post-metadata">

**Author:** ![Duncan\_Danful](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/duncan_danful/32/369_2.png) [@Duncan\_Danful](https://discuss.ai.google.dev/u/Duncan_Danful)\
**Post date:** [April 28, 2024, 6:31pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/6 "2024-04-28T18:31:05Z")

</div>

Thank you for the clarification, I will take actions on your suggestions. Please I’m using [ovationhall.com](http://ovationhall.com)

---

<div class="post-metadata">

**Author:** ![Duncan\_Danful](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/duncan_danful/32/369_2.png) [@Duncan\_Danful](https://discuss.ai.google.dev/u/Duncan_Danful)\
**Post date:** [April 28, 2024, 6:32pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/7 "2024-04-28T18:32:00Z")

</div>

Thank you very much for the support.

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:16pm UTC](https://discuss.ai.google.dev/t/gemini-api-location-support/454/8 "2026-11-05T18:16:01Z")

</div>

Closed on November 5, 2026, 6:16pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
