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:
-
Verified the VPS location using IPinfo, which identifies the country as NL.
-
Tested two separate API keys from the same billing-enabled Google Cloud project.
-
Both keys returned the same regional restriction error.
-
Confirmed that the API key has no application or IP restrictions.
-
Confirmed that Google AI Studio can generate responses through a separate Netherlands-based browser connection.
-
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!