Developer tools

Model routing is cheap now. Cache misses still cost you

Google spent this week making per-step model routing look obvious. On November 11 it shipped the Gemini Decisions API, a $0.10-per-million-token endpoint that answers up to 1,000 closed-set questions in one pass at…

Google spent this week making per-step model routing look obvious. On November 11 it shipped the Gemini Decisions API, a $0.10-per-million-token endpoint that answers up to 1,000 closed-set questions in one pass at 150–250 ms. On November 12 it shipped Gemini 4 Hydrogen and, inside Antigravity, an Orchestrator that switches between Carbon and Hydrogen mid-session without you picking a model.

The pitch writes itself: send the easy calls to the cheap model, send the hard ones to the frontier model, collect the savings. Every lab is telling you some version of this. The part the price table leaves out is that every switch throws away your prefix cache, and the cache was where a lot of your savings actually lived.

What actually shipped

Three announcements matter this week, and they stack.

Gemini 4 Hydrogen (Nov 12, Google) is the new mid-tier default: 1M-token input and output, four thinking levels, and flat pricing of $1.50 per million input tokens and $7.50 per million output across the whole context window. Google claims 57% on Terminal-Bench 4.1 versus 18.2% for Gemini 3.8 Flash, at 2.5× the speed. Vendor claim — the benchmark link is public but the harness details are not.

Orchestrator (Nov 12, Google Antigravity) is the more interesting piece. Instead of a static router that guesses difficulty from the first prompt, it hands a session back and forth: Carbon plans in a read-only phase, Hydrogen writes edits and runs tests, and if Hydrogen hits friction it hands control back to Carbon to repair the plan. Google says this reaches near-Carbon task success on Terminal-Bench while using 24% less quota and finishing 19% faster. Vendor claim, no per-task data published.

Gemini Decisions API (Nov 11, Google DeepMind) turns routing itself into a cheap primitive: one shared multimodal input, up to 1,000 yes/no, multiple-choice, or rubric questions, calibrated probabilities back, no output tokens billed. Google claims it is nearly 5× cheaper than Gemini 3.5 Flash-Lite for the same decisions. Simon Willison tested it the same day and confirmed the mechanics work, though the model returns graded probabilities (0.92 for "robot") rather than clean 0/1 answers. Vendor claim on price and latency; behavior independently observed.

Put together, the direction is clear: routing decisions get fast and nearly free, and the orchestration layer starts making them for you.

The tax nobody puts in the price table

KV cache is per model. When a router sends the next call to a different model, that model has never seen your 60K-token repository context. It has to prefill it from scratch, at full input price, before it emits a single token.

A Microsoft Azure Research preprint published November 9 measures exactly this. SHADOWPREFILL (arXiv:2611.13176, Qiu, Mahapatra, Fonseca, Russinovich) traces per-step routing across 24 model pairs and five agentic benchmarks, including a production coding-agent trace with a mean context of 63K tokens. Their finding: prefix cache hit rate falls from 80–89% on same-model calls to 44–65% after a switch, and a switched call takes 1.5–3.2× as long. Evidenced, preprint — not peer reviewed.

That is the number to sit with. You did not just pay for a cheaper model. You paid to re-read a large chunk of your context, and you paid in latency too.

Their fix is clever and, for most teams, unavailable: prefill the session on the model the router did not pick, using idle capacity, so the next switch finds the prefix already warm. It cut routed token cost by 22.5–46.1% with energy up only 0.4%. But that is a serving-infrastructure change inside vLLM, not a flag you set on a hosted API.

Google's own caching docs make the constraint concrete for their stack. Gemini 4 models support implicit caching only — no manual cache objects. Hits need at least 4,096 input tokens, and on multi-turn agent loops the full previous request is cached only if the new turn adds at least 2,050 tokens. Anything smaller and Gemini re-processes the last 2,050 tokens at the standard input rate. Cache hits show up in usage.total_cached_tokens, which most teams never look at.

Why coding agents get hit hardest

Routing savings are usually sold on short chat turns, where re-prefill is cheap. Coding agents are the opposite shape. Long system prompt, tool schemas, retrieved files, conversation history that grows every turn — and per-step routing fires on every tool call.

So the arithmetic changes. Carbon is $2/$10 per million through November 30, then $4/$20 — at which point Hydrogen at $1.50/$7.50 is about 2.7× cheaper on both input and output. But if a switch sends 30K cached tokens back through prefill, and that happens several times per task, you can burn a meaningful share of the difference on tokens you had already paid for once. Whether routing still wins depends on how much context you carry and how often the router flaps.

Which means the two numbers worth arguing about are not price per million tokens. They are cost per completed task and cache hit rate. Neither is on a pricing page.

What to do Monday

  • Log usage.total_cached_tokens next to input and output tokens on every call. If you cannot compute your cache hit rate per session, you cannot evaluate a router.
  • Measure cost per accepted change, not per token. Include retries, failed builds, and the tokens spent re-reading context after a switch.
  • Turn off routing for the hot loop. Keep the same model for read-search-edit-test cycles and route at task boundaries instead. Fewer switches, fewer cold prefills.
  • Put the stable stuff first. System prompt, tool schemas, and repo map at the front, volatile content last, so prefixes actually match.
  • Give the router a floor. Send ambiguous decisions to a human or a fallback model rather than letting a cheap router guess on a low-confidence score.
  • Run one A/B with your own traces. Vendor benchmarks use different harnesses; your context length distribution is the only one that matters.

Routing is becoming free and automatic. Cache reuse is not. Treat the second number as a first-class metric and the first one stops being a trap.

Unverified claims and gaps

  • Orchestrator's "24% less quota, 19% faster" and Hydrogen's Terminal-Bench numbers are vendor-reported; no per-task results or harness configuration were published. The blog.google post attributes the Orchestrator numbers to Terminal-Bench 4.0, the Antigravity post to 4.1, so treat the exact benchmark version as unresolved.
  • The SHADOWPREFILL numbers come from a preprint and a simulated/production trace; independent replication is not available.
  • No public data yet on how Orchestrator handles prefix caching across a Carbon↔Hydrogen handoff.
  • The Decisions API latency claim (150–250 ms) is vendor-reported; Willison's test confirms behavior, not latency at scale.

Sources

  1. Introducing Gemini 4 Hydrogen — Google, Nov 12, 2026 — https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-hydrogen/
  2. Gemini 4 Hydrogen and Orchestrator — Google Antigravity, Nov 12, 2026 — https://antigravity.google/blog/gemini-4-hydrogen-in-google-antigravity
  3. Gemini Decisions API — Google, Nov 11, 2026 — https://blog.google/innovation-and-ai/technology/developers-tools/gemini-decisions-api/
  4. ShadowPrefill: Keeping Your Next Model Warm for Per-Step Model Routing in Agentic LLM Serving — arXiv:2611.13176, Nov 9, 2026 — https://arxiv.org/abs/2611.13176
  5. Gemini API context caching — Google, retrieved Nov 13, 2026 — https://ai.google.dev/gemini-api/docs/caching
  6. Gemini Decisions API (hands-on note) — Simon Willison, Nov 11, 2026 — https://simonwillison.net/2026/Nov/11/gemini-decisions-api/
  7. Gemini 4 Carbon is now available — Google, Nov 10, 2026 — https://blog.google/innovation-and-ai/models-and-research/gemini-models/gemini-4-carbon-now-available/
Next essay

A Brazilian court just put a dollar figure on prompt injection. Your document pipeline has the same hole

6 min read