Independent community project. Not affiliated with or endorsed by Google.
ModelCraft modelcraft.dev
← All Fix Guides
high ✓ Verified: 2026-11-26 Gemini API v1beta / AGY v2.35.2
capacity google agygemini-cligemini-api

503 No Capacity, 504 DEADLINE_EXCEEDED & Agent Stall

503 504 UNAVAILABLE DEADLINE_EXCEEDED
Matching Symptoms
  • • Requests fail with `503 UNAVAILABLE` or `The model is overloaded` during peak US/EU hours.
  • • Long prompt with `high`/`xhigh` Thinking budget hangs until `504 DEADLINE_EXCEEDED`.
  • • Antigravity agent stalls on feature-flag or stream handshake (`antigravity-unleash.goog` timeout).
Root Cause

Upstream Google Cloud / Vertex AI capacity wave, Priority inference hitting its 0.3x rate limit, or an oversized single-turn prompt with `high`/`xhigh` thinking exceeding the server deadline.

Step-by-Step Fix

  1. 1 Check live upstream status on ModelCraft (/) or status.cloud.google.com first to confirm whether it is a global outage.
  2. 2 If upstream is operational, shrink the turn payload: run /compact, split the task into smaller batches, and lower Thinking level to low or medium.
  3. 3 Use AGY v2.35.2+ mid-turn model switch to step down from Neon/Carbon to Hydrogen during regional capacity spikes.
  4. 4 If AGY hangs on antigravity-unleash.goog, restart the session and verify outbound HTTPS connectivity.

Copyable Commands

Check Google Cloud Status incidents JSON directly (unix)
curl -sS https://status.cloud.google.com/incidents.json | node -e 'const d=JSON.parse(require("fs").readFileSync(0,"utf8")); console.log("Active:", d.filter(i=>!i.end).length)'
Verify TLS reachability to Gemini API endpoint (unix)
curl -I -sS --max-time 8 https://generativelanguage.googleapis.com/ | head -n 5

Verify Fix

Verify
curl -I -sS --max-time 8 https://generativelanguage.googleapis.com/ | head -n 1