Error:400 FAILED_PRECONDITION — User location is not supported for the API use.
Approximate occurrence: October 8, 2026, around 03:02 UTC
Singapore appears in the Gemini API supported-regions list. We also tested the same API key and model from a separate supported-region network, where the request succeeded with HTTP 200. From this VM, requests consistently fail with the location error.
Could you please check how this IP is classified for Gemini API access and advise whether its location classification can be reviewed or corrected?
We can provide the Google Cloud project ID and additional sanitized request details if needed. We have intentionally not included the API key in this message.
Hello, I have submitted the requested Gemini API & Google AI Studio Location Issue Report form. Please
let me know if you need any additional information to investigate this issue. Thank you.
@Nayeem_Ahmed, thank you for submitting the details. Gemini API requests require the outbound IP address to map to one of the available regions. If your server IP is still returning this error, please try the following:
Check if your VPS IP is registered to an unsupported region, or try calling the API from a different VPS or network.
Report the IP address if you believe its location is mapped inaccurately via Report an IP problem.
Ask your hosting provider to submit or update their IP range geofeed at Google ISP Portal.
@Gang, please check that your location is in the available regions list above (without an active VPN or proxy) and try the steps above if calling from a VPS or cloud server. If the issue continues from a supported region, please share which country or region you are calling from.