Gemini API returns 400 FAILED_PRECONDITION from Netherlands VPS (Paid Tier 1)

Hello Google Gemini API Team,

I’m experiencing a location restriction when accessing the Gemini API from a VPS physically hosted in Amsterdam, Netherlands.

Error:

HTTP 400
Status: FAILED_PRECONDITION
Message: User location is not supported for the API use.

Environment:

  • Google Gemini API, paid Tier 1 project

  • Server location: Amsterdam, Netherlands

  • Hosting network: AS216139 Iron Hosting Centre LTD

  • Operating system: Ubuntu 24.04

  • Application: n8n (self-hosted)

  • Endpoint: https://generativelanguage.googleapis.com/v1beta/models

Troubleshooting performed:

  1. Verified the VPS location using IPinfo, which identifies the country as NL.

  2. Tested two separate API keys from the same billing-enabled Google Cloud project.

  3. Both keys returned the same regional restriction error.

  4. Confirmed that the API key has no application or IP restrictions.

  5. Confirmed that Google AI Studio can generate responses through a separate Netherlands-based browser connection.

  6. Verified that the issue also occurs with direct cURL requests, independently of n8n.

The Netherlands is officially listed as a supported country for the Gemini API.

Could someone from the Google team investigate whether my VPS IP range is incorrectly classified as an unsupported region or whether another restriction is affecting my project?

I can provide the exact server IP and Google Cloud project details privately if needed.

Thank you for your assistance!

Hello @Sergey_Barbashov ,

Please try the below steps:

  • Make sure you’re in one of the supported regions.

  • Turn off any VPN, proxy or iCloud Private Relay, and connect directly.

  • Make sure you’re 18 or older and have verified your age.

  • Try a different network, for example your phone’s hotspot.

If none of these help, please share the details using this form so we can investigate further: Gemini API & Google AI Studio Location Issue Report