I am consistently getting the following error with all Gemini models in Antigravity:
HTTP 400 FAILED_PRECONDITION: User location is not supported for the API use.
However, Claude models in Antigravity work normally, and Gemini also works normally in Google AI Studio using the same Google account and network.
Environment
-
Windows x64
-
Antigravity 2.8.1
-
Google account Country version: United States
-
Current US exit:
-
198.204.234.107 -
AS33387 Nocix -
Kansas City, Missouri, US
-
Affected models
I tested all currently available Gemini options in Antigravity:
-
Gemini 3.1 Pro
-
Gemini 3.5 Flash
-
Gemini 3.6 Flash
-
Gemini 3.7 Flash
All return the same location-related HTTP 400.
Meanwhile:
-
Claude Sonnet 4.6 works normally
-
Claude Opus 4.6 works normally
-
Gemini works normally in Google AI Studio with the same account and network
Latest confirmed reproduction
Simple prompt:
1+1
Result after about 1 second:
FAILED_PRECONDITION (code 400): User location is not supported for the API use.
Latest server-side identifiers:
-
UTC time:
2026-08-14 06:22:28 -
Trajectory ID:
955a098f-3e2a-4952-ab6d-2117721479.. -
Error ID:
955a098f-3e2a-4952-ab6d-2117721479c1-3 -
Cloud AI Companion Trace ID:
c85350c1deacc2..
Troubleshooting already performed
I have done extensive A/B testing.
Network path
Antigravity language_server.exe is confirmed to route through Mihomo and the configured US exit.
For both failed Gemini requests and successful Claude requests:
-
destination is
daily-cloudcode-pa.googleapis.com -
traffic goes through
127.0.0.1:7890 -
the same Mihomo routing rule is used
-
the same US exit is used
I observed:
-
no Google IPv6 connection
-
no IPv6 leak
-
no DIRECT/bypass connection from Antigravity
-
normal DNS and TLS connectivity
Different US exit / ASN
I also reproduced the same issue using another completely different US exit:
-
142.249.37.26 -
AS153371 -
Los Angeles, US
The second exit used a different IP and ASN, but Gemini still returned exactly the same location error.
Antigravity versions
I tested versions from 2.8.1 down to 2.5.0.
The same Gemini location error occurs on all tested versions.
Cloud Code endpoint
I also performed a temporary A/B test between:
-
daily-cloudcode-pa.googleapis.com -
cloudcode-pa.googleapis.com
The production endpoint did not change the result. Gemini still returned the same location 400, while Claude continued to work.
Why this seems abnormal
The Google account Country version is United States, which is a supported Antigravity region.
The issue is specific to Gemini requests inside Antigravity:
-
same account + AI Studio Gemini → works
-
same Antigravity + Claude → works
-
Antigravity + every Gemini model → location 400
-
two different US IPs/ASNs → same result
-
Antigravity 2.5.0 through 2.8.1 → same result
This makes it look like a Cloud AI Companion / Antigravity Gemini region or eligibility check is rejecting the account/request incorrectly.
I have also submitted an in-app Bug Report with Antigravity server logs attached.
Could someone from the Antigravity team please check the latest Trace ID / Trajectory ID above and see which region or eligibility check is causing this rejection?
I have found a few other recent reports that appear to describe the same or very similar behavior, especially cases where Claude or AI Studio continue to work while Antigravity Gemini requests fail with the same User location is not supported error.
