One engineer at Rippling was spending $50,000 a month in AI tokens. One person.

Rippling discovered it was on track to burn 40 percent of its R&D headcount budget on AI tokens, with spending growing 80 percent month over month. Not because the engineer was doing anything wrong. Because nobody was watching. There was no console, no per-team breakdown, no model routing. Just a monthly bill that kept getting bigger.

"The Tokenmaxxing Hangover" (Note #114, June 30) named this problem. Uber blew through its entire annual AI coding token budget in a matter of months. Microsoft reined back its engineers' use of some third-party coding tools. The hangover is here. The fix is not a budget cut. The fix is architecture.

THE $50K ENGINEER

Rippling found that 10 to 15 percent of employees drove about 60 percent of total AI spend. The Pareto distribution applies to token consumption the same way it applies to every other resource. A small number of power users burn the bulk of the budget.

The $50,000 per month engineer was not malicious. They were productive. They found a workflow that worked, ran it constantly, and nobody told them what it cost. The problem is not the engineer. The problem is the absence of a system that makes cost visible before it becomes a crisis.

This is the core failure mode: companies have a tenuous grasp on how many tokens they are burning until they get their monthly bill. By then, the spend is historical. You cannot optimize what you cannot see in real time.

THE CANVA CAUTIONARY TALE

Canva slashed its 2026 revenue forecast by a third after over-relying on frontier models from other providers. CEO Melanie Perkins told shareholders several first-party models were not yet ready for release and pricing and consumption controls had not caught up with demand.

Canva's failure is the dependency trap. You rent frontier capability from a provider. You build your product on top of it. The provider raises prices or changes terms. Your first-party models are not ready. Your consumption controls do not exist. Your revenue forecast drops by a third.

The lesson: if your product depends on a model you do not control, your cost structure depends on a vendor you cannot negotiate with. This is not a risk story. It is a what-happened story.

THE 24X FORECAST

Goldman Sachs forecasts token consumption will increase 24 times between 2026 and 2030 to 120 quadrillion tokens a month. Microsoft reportedly reined back its engineers' use of some third-party coding tools. Uber tore through its AI coding token budget for a year in a matter of months.

The 24x forecast means the problem Rippling solved is coming for everyone. If your token spend is manageable today, it will not be at 24x current volume. The architecture you build now determines whether 24x is a scaling story or a survival story.

Note #129 ("Your Token Budget Is Coming," July 15) called this: companies will soon need to cap AI token usage per engineer. The era of unlimited inference is over. The question is whether you build the cap yourself or wait for the bill to force it.

THE ARCHITECTURE THAT WORKS

Rippling did four things. Each one is a concrete architectural decision.

AI gateway and model routing architecture diagram
AI gateway routing prompts to cheaper models

First, they built an AI Spend Console that maps employee, team, and role usage against productivity. You can see who is spending what, on which models, in real time. Not a monthly bill. A live dashboard.

Second, they negotiated spending caps with their providers. This is not a technical step. It is a procurement step. But it requires the data from step one to negotiate from a position of knowledge.

Third, they built an AI gateway that routes prompts to cheaper models. This is the architecture from Note #141 ("Your Router Is the Moat, Not Your Model," July 27). Rippling's CEO Parker Conrad noted that when his company benchmarked internal uses, Grok was the all-around leader but GLM 5.2 was 85 percent cheaper with nearly identical performance to frontier models.

Fourth, they deployed that router in production. In April, Rippling peaked at 605 billion tokens. In July, internal usage hit 600 billion tokens again, yet the cost of July's token spend was 37 percent of the cost of April's. Same usage. One third the cost. That is what routing does.

The result: token spend dropped from 40 percent to 15 percent of R&D headcount budget. Not by cutting usage. By routing it.

THE SPECIALIZATION LEVER

Microsoft open-sourced code-testing-generator, a polyglot unit-test agent that achieves 92.1 percent task completion versus 78.9 percent for stock Copilot. The specialized agent outperforms the general-purpose assistant on its focused task.

This is not just a quality story. It is a cost story. A specialized agent that does its job better and runs on a smaller model is cheaper per task and more accurate. The model router should route test generation to the test-generation agent, not to a frontier model doing everything poorly.

Naive raised $28.5 million to build a model router, memory system, and serverless runtime for agents. Its CEO Sean Dorje said inference optimization is one of its fastest-growing demand areas. Mirendil signed a $100 million plus Google Cloud deal, and co-founder Harsh Mehta said training is increasingly about matching the right workloads to the right chips. Workload routing is becoming a core architectural discipline, not a nice-to-have.

THE DECISION FRAMEWORK

Three bets for engineering leaders facing the token spend crisis:

  1. Ignore: Keep paying the monthly bill. Hope it stabilizes. Risk: at 24x growth, it will not. You will discover the problem when a single engineer's $50K per month habit becomes a $1.2 million per year line item.
  2. Budget cut: Cap spending per team. Tell engineers to use less AI. Risk: you cap the symptom, not the disease. The disease is routing every task to the most expensive model. Capping spend without routing models means your best engineers work with crippled tools.
  3. Architect: Build the spend console, the model router, and the gateway. Route tasks to the cheapest model that meets the quality bar. Measure per-team productivity against per-team spend. Risk: engineering effort up front. Reward: Rippling cut spend from 40 percent to 15 percent of headcount budget without cutting usage.

The framework: the fix is not less AI. The fix is routed AI.

WHAT TO DO TODAY

  • Build a spend dashboard before you build a router. You cannot route what you cannot see. Map every employee, team, and model to token consumption in real time.
  • Identify your $50K engineer. Ten to 15 percent of your team drives 60 percent of your spend. Find them. They are not the problem. They are the signal.
  • Evaluate GLM 5.2 or equivalent for 85 percent of your workloads. Rippling found it was 85 percent cheaper with nearly identical performance. Run the comparison on your own tasks, not on benchmarks.
  • Route specialized tasks to specialized agents. Microsoft's code-testing-generator hit 92.1 percent task completion versus 78.9 percent for general Copilot. Specialization is a cost lever, not just a quality lever.
  • Read Note #141. The router is the moat. This article is the production proof.
  • Audit your frontier model dependency. Canva cut its revenue forecast by a third because it over-relied on rented capability. If your product depends on a model you do not control, your revenue depends on a vendor you cannot negotiate with.

THE UNCOMFORTABLE QUESTION

You know your cloud bill. You know your salary costs. Do you know which engineer is burning $50,000 a month in tokens? Because Rippling did not. And it almost cost them 40 percent of their R&D budget.

The architecture you build today is the difference between scaling AI and drowning in it.

DEVELOPER DEEP-DIVES

The strategy above is production-proven. For a strict coding platform, the theory is only half the story. Here is the hands-on execution behind the architecture.

CODE-LEVEL IMPLEMENTATION: THE LIGHTWEIGHT GATEWAY

Rippling's third step was building an AI gateway that routes prompts to cheaper models. Here is a minimal Python implementation you can run in an afternoon. It classifies the task and routes to the cheapest model that clears the quality bar.

# gateway.py
from fastapi import FastAPI, Request
import httpx

app = FastAPI()
router = httpx.AsyncClient()

ROUTES = {
    "code_review": "glm-5.2",
    "test_generation": "glm-5.2",
    "architecture": "grok-3",
    "default": "glm-5.2",
}

@app.post("/route")
async def route(request: Request):
    body = await request.json()
    task = body.get("task", "default")
    model = ROUTES.get(task, ROUTES["default"])
    response = await router.post(
        "https://api.example.com/v1/chat/completions",
        json={"model": model, "messages": body["messages"]},
    )
    return response.json()

The pattern matters more than the provider names. Classify the task, pick the cheapest model that clears the quality bar, and log every call so the spend console has real data. That is the same loop Rippling runs in production.

LOCAL INFRASTRUCTURE: DEPLOYING OPEN-WEIGHT MODELS

For engineers who want to bypass centralized cloud dependency entirely, run the open-weight models on your own hardware. A single GPU workstation or a small server cluster is enough to handle the bulk of inference for GLM 5.2 class models. The comparison step from the article ("run the comparison on your own tasks") becomes trivial when the model lives in your own data center.

Use vLLM for high-throughput serving:

vllm serve glm-5.2 \
  --port 8000 \
  --max-model-len 8192

Then point your gateway at the local endpoint instead of the cloud provider. Your spend console now shows local inference at near-zero marginal token cost, with no per-token metering from a vendor. The gateway code above is unchanged; only the base URL in the router call moves from the cloud to localhost.

Model IDs change as new releases land, so confirm the exact tag for your chosen model before pulling. The architecture is stable even when the model name is not.

Enjoyed this article?

Buy Me a Coffee

Support PhantomByte and keep the content coming!

Build Real AI Infrastructure

PhantomByte teaches you to build real AI infrastructure yourself: local AI stacks, autonomous agents, multi-agent orchestration, web scraping, and custom tools. Step-by-step PDF tutorials you download, follow, and deploy. No subscriptions. No fluff. Just skills that ship.