Hello,
Gemini Developer API requests from my production server are rejected with:
{
"code": 400,
"message": "User location is not supported for the API use.",
"status": "FAILED_PRECONDITION"
}
Server public IP: 139.162.122.175
Provider: Akamai Connected Cloud / Linode
Server location: Tokyo, Japan
ASN: AS63949
The server-side request was made to:
https://generativelanguage.googleapis.com/v1beta/models
Public IP geolocation identifies this IP as Tokyo, Japan. Japan is listed as a supported Gemini API region.
Could you please review whether this IP range is incorrectly classified or blocked for Gemini Developer API access?
I can provide the exact UTC timestamps and sanitized API response if needed.
Update:
I reproduced this with the exact same Gemini API key.
-
From my local Mac network in Taiwan: HTTP 200 from /v1beta/models
-
From the Linode instance at 139.162.122.175 in Tokyo: HTTP 400 FAILED_PRECONDITION, “User location is not supported for the API use.”
The API key, project, endpoint, and request are identical. The only variable is the source network/IP.