Why does an 8% cache gap cost API buyers 1.71x more?
Google fixed Gemini 4 Neon’s prompt caching inside Antigravity. Direct Gemini API customers did not get the same fix yet.
On December 5, 2026, research firm SemiAnalysis published an audit of Gemini 4 Neon caching economics. During launch week in Antigravity, cache misses drove roughly 80% of Neon’s operating cost. After two Google updates across five days (about 4 percentage points on November 20 and 4.5 points on November 25) plus harness refinements, cache misses dropped to roughly 40% of total cost. Antigravity subscribers now extract close to 75% more Neon work from the same quota.
Yet SemiAnalysis’s GDPx benchmark runs call Gemini 4 Neon through the direct API instead of Antigravity. Those API cache hit rates stayed flat at 89% on November 20-21 and 86% to 89% on November 24-27.
Thirty-six minutes after the thread went live, Google Antigravity head Varun Mohan replied publicly on X. Mohan disputed SemiAnalysis’s ~70% launch baseline, stating Antigravity’s average launch hit rate sat closer to 86%. More important for paying developers, he confirmed the platform split directly: “Lots of work happening so we improve cache hit rate across the board on API, not just AGY.”
What does every percentage point of cache miss actually cost?
Google’s live Standard Tier pricing explains why small cache dips wreck API budgets. Gemini 4 Neon charges $3.00 per million uncached input tokens and $0.15 per million cached input tokens. That 95% cache discount creates a 20x price cliff between a hit and a miss.
Every single 1 percentage point lost on cache hits adds exactly $28.50 per billion input tokens.
| Cache hit rate | Scenario | Pure input cost / 1B | Miss share of input bill | Extra vs. 94% AGY | SemiAnalysis total model* |
|---|---|---|---|---|---|
| 70% | SemiAnalysis low baseline | $1,005.00 | 89.6% | +$684.00 (3.13x) | $1,129.00 |
| 86% | API Nov 24-27 low / Mohan launch avg | $549.00 | 76.5% | +$228.00 (1.71x) | $673.00 |
| 89% | API Nov 20-21 GDPx runs | $463.50 | 71.2% | +$142.50 (1.44x) | $587.50 |
| 94% | Post-fix Antigravity | $321.00 | 56.1% | $0.00 (1.00x) | $445.00 |
| 100% | Theoretical perfect cache | $150.00 | 0.0% | -$171.00 (0.47x) | $274.00 |
Notice how cleanly the independent math reconciles SemiAnalysis’s headline figures. SemiAnalysis reported total cost falling 60.6%, from $1,129 to $445 per billion input tokens, with only $171 left to save at 100% hits ($274 floor). Every point in that series sits exactly $124 above pure input spend ($1,005, $321, and $150), reflecting roughly 8.27 million output tokens at $15.00 per million bundled per billion input tokens in an agentic loop.
Even using Varun Mohan’s higher 86% starting point, the gap between 86% API caching ($549 pure input) and 94% Antigravity caching ($321) costs API callers an extra $228 per billion input tokens. At 89% API hits, the surcharge still sits at $142.50 per billion tokens (1.44x higher input cost).
Why can API developers not force higher cache hits themselves?
Three documented constraints inside Google’s official Context Caching reference strip away standard developer workarounds on Gemini 4:
| Gemini 4 model (Standard API) | Uncached input / 1M | Cached input / 1M | Output / 1M (incl. thinking) | Free tier | Caching mode | Trailing full-rate window |
|---|---|---|---|---|---|---|
| gemini-4-hydrogen | $1.50 | $0.075 (95% off) | $7.50 | Yes | Implicit only | 2,050 tokens |
| gemini-4-neon | $3.00 | $0.150 (95% off) | $15.00 | No | Implicit only | 2,050 tokens |
| gemini-4-carbon | $4.00 | $0.200 (95% off) | $20.00 | No | Implicit only | 2,050 tokens |
First, all Gemini 4 models and the Interactions API support implicit caching only. Developers cannot create explicit cache objects with guaranteed TTLs (that feature stays restricted to Gemini 3 and Gemini 2.5 on generateContent).
Second, Google lists implicit retention as best-effort only: up to 24 hours in memory and up to 12 hours in encrypted SSD storage after eviction, with no cost-saving guarantee even if callers send keep-alive pings.
Third, Gemini 4 enforces a 4,096-token minimum floor plus a trailing 2,050-token recompute tax on every turn. When a multi-turn agent follow-up adds fewer than 2,050 new tokens, Gemini reprocesses the last 2,050 tokens of the prior turn at the full $3.00/M rate. Short, chatty API loops silently bleed full-price tokens on every step.
What should engineering teams change today?
Interactive coding and agent loops: Run Gemini 4 Neon inside Google Antigravity rather than a custom direct-API wrapper until Google confirms API cache parity. Antigravity’s harness already captures the 94% hit regime and stretches fixed subscription quotas by roughly 75%.
Production API workloads stuck on direct calls: Audit total_cached_tokens / total_input_tokens in production logs immediately. Lock thinking_level, system_instruction, non-deferred tools, and shared file URIs at the front of every request, move timestamps or request IDs to the final message, and enable defer_loading: true tool search so dynamic schemas do not bust the prefix. Batch small tool responses instead of firing sub-2,050-token turns.
Cost-sensitive pipelines: Shift non-frontier steps off gemini-4-neon onto gemini-4-hydrogen ($1.50 uncached, $0.075 cached, $7.50 output, plus a free tier), cutting both hit and miss exposure in half immediately. See the Gemini 4 coding-agent prompt and tier guide for tested routing templates.
Quick answers
How much did Google’s Antigravity caching fix cut Gemini 4 Neon costs?
SemiAnalysis calculated that moving Gemini 4 Neon from ~70% to ~94% cache hits dropped effective workload cost by 60.6%, from $1,129 to $445 per billion input tokens. Combined with Antigravity harness changes, subscribers receive roughly 75% more Neon work from the same quota.
Did the Gemini 4 Neon caching fix roll out to the Gemini API?
Not yet. SemiAnalysis’s GDPx runs calling gemini-4-neon over the API remained flat at 89% on November 20-21 and 86% to 89% on November 24-27. Google Antigravity lead Varun Mohan confirmed on December 5 that work is still underway to raise API cache hit rates across the board.
How much extra does an 86% API cache hit rate cost compared to 94% in Antigravity?
At Google’s official $3.00/M uncached and $0.15/M cached Standard Tier rates, 1 billion pure input tokens cost $549 at an 86% hit rate versus $321 at 94%. That 8-point deficit costs API callers an extra $228 per billion input tokens, or 1.71x Antigravity’s pure-input bill.
Can developers pin explicit context caches on Gemini 4 Neon to stop misses?
No. Google’s official Context Caching documentation confirms that all Gemini 4 models and the Interactions API support implicit caching only, with best-effort retention, a 4,096-token minimum prefix, and a 2,050-token trailing recompute window billed at standard rates.