Gemini models fail with HTTP 400 location error in Antigravity 2.24.0

Hi Antigravity Team,

I am experiencing a persistent issue with Gemini models in Antigravity 2.24.0 on Windows 11.

Error:
HTTP 400 FAILED_PRECONDITION
“User location is not supported for the API use.”

What works:

  • Claude Sonnet 4.6 works normally.

  • Google account login and verification succeed.

What fails:

  • Gemini 3.8 Flash Medium

  • Gemini 3.8 Flash High

  • Google AI Studio also reports “Failed to list models: permission denied.”

Account and environment:

  • Google account country version: United States

  • Account holder is over 18

  • Browser IP geolocation reports US

  • Windows 11, Antigravity 2.24.0

  • Network uses a proxy; actual API egress location has not been independently confirmed.

I performed a read-only local diagnostic. No confirmed proxy bypass or outdated client was identified.

Latest error details:

  • Trajectory ID: 1aed776f-c779-4ec3-83a2-4f17bd50a9..

  • Trace ID: 0xeec5fe82dc1cf..

  • Timestamp: October 20, 2026, 05:26:30 UTC

Could the Antigravity team please investigate which location or eligibility check is rejecting these Gemini requests and advise how to resolve it?

Thank you.

Hi @XIAOjiejie,

Since you have already tested a read-only local diagnostic, please instead check the active network proxy egress configuration and reset onboarding state as detailed below.

Please verify your supported region and account eligibility in the Antigravity FAQ ( FAQ | Google Antigravity Docs ), check your associated country on the Google Terms of Service page (https://policies.google.com/terms), or complete Google Age Verification (https://myaccount.google.com/age-verification).

To resolve the HTTP 400 location error on Gemini models, please follow these steps:

  • The `HTTP 400 FAILED_PRECONDITION (“User location is not supported for the API use”)` error occurs when Google’s API gateway detects that the outgoing request’s public IP address originates from a region not currently supported for Gemini API access. Since your network routes through a proxy, check the proxy’s actual external exit IP using an IP lookup tool (such as `https://ipinfo.io`) to verify that the egress IP is correctly classified within the United States. If the proxy exits through an unclassified datacenter or unsupported node, test routing your connection through a verified US egress.
  • Ensure that Antigravity is communicating with default production endpoints.
  • Open the Command Palette in Antigravity (`Ctrl+Shift+P`), select Antigravity: Reset Onboarding, and complete the re-authentication flow directly in the desktop app using your unrestricted @gmail.com account to refresh your OAuth session tokens and endpoint routing.
  • Navigate to the Google Terms of Service page (https://policies.google.com/terms) while signed into your account to confirm the country version is listed as United States. If the wrong country is associated with your account, you can submit a change request via the country association form (https://policies.google.com/country-association-form).

If the issue persists after following the steps above, please provide either your diagnostic logs dumped in a `.txt` file (from `Help > Toggle Developer Tools > Console` or `View > Output > Antigravity Language Server`) or an error screenshot so we can investigate further.

If this does not resolve the issue, please let us know!

Thank you for the diagnostic guidance regarding Antigravity 2.24.0.

I am experiencing the same issue on Windows 11:

  • Error: HTTP 400 / FAILED_PRECONDITION

  • Message: “User location is not supported for the API use.”

  • Google Trace ID: 9185c593a1****

  • Agent Error ID: 35448295-230e-4bcf-a5d2-7bbb12ba34ce-1

My Google account is associated with the United States according to Google Terms of Service. Authentication succeeds, but Gemini model requests fail.

I understand that IPinfo’s geolocation results may differ from Google’s internal IP classification.

Could you please clarify:

  1. Is there an official way to verify the geographic classification of the actual Antigravity API egress IP?

  2. Can the engineering team distinguish an unsupported network location from an account-level eligibility restriction?

  3. Is there a secure channel where I can submit the relevant Language Server logs for investigation?

I already submitted a Bug Report through Antigravity on October 21, 2026.

I am seeking clarification of the failed eligibility condition and the officially supported resolution, not a workaround for regional restrictions.

Thank you.