Six billion tokens and a procurement lesson

A message landed in our engineering channel one morning: For the next week, use the new AI assistant for everything and go easy on the one we already have because finance is running a cost comparison in the background. The new tool arrived with a single headline number attached—early users on the team reported it was "60% less expensive with the same or better results."
That number is why I am writing this. It was technically true, and it still managed to steer us wrong for nearly a month.
What leadership measured
Leadership measured price per token. It is the headline figure on every vendor's pricing page: a single, clean metric that feels like an objective foundation for a procurement decision. The trial quickly turned into a race to confirm it. Access to our existing Claude instance was restricted while the test ran so the two invoices would not blur together.
Measured strictly by list rates, leadership had its answer within a day. On paper, the challenger was cheaper: the new model listed at $2.00 per million input tokens against the $5.00 cost of our existing Opus models. That represented a 60% reduction on input—matching the pitch almost exactly. Output tokens were also cheaper: $12.00 per million compared to $20.00–$25.00.
If the total bill consisted entirely of fresh input and visible output, switching would save approximately 60%, making the weeklong trial a mere formality.
But the bill isn't structured that way.
That structural reality is what a per-token sticker price conceals—and it turned out to be the factor that decided everything.
Pulling the raw receipts
Both tools keep a local record of every request. The new assistant writes a session log per run containing the API's reported token count, while our existing tool maintains a per-session transcript with identical usage metrics attached. Rather than relying on chat estimates or rough daily guesses, I aggregated two months of real personal usage from each tool, pulled directly from the local logs on my laptop.
The first revelation had nothing to do with unit price.
Context Distribution Across Workloads
┌─────────────────────────────────────────────────────────┐
│ Cached / Re-read Context: 96% to 98% │
├─────────────────────────────────────────────────────────┤
│ Fresh Input: 2% to 4% │
└─────────────────────────────────────────────────────────┘
Almost everything either tool processes is cached context: the same prompt and repository history re-sent on every turn of a complex task, then read back from the cache. Across eight weeks of Claude usage, fresh input totaled just 40,926 tokens out of six billion. Caching carried the rest.
This reframes the entire comparison. The input price driving the procurement decision applies only to fresh input, which accounts for just 2% to 4% of total volume. The remaining 96%+ of cached traffic bills on a separate line item—and that line item is where the actual expenditure lives.
The cost model inverted expectations
I applied each vendor's actual cache-aware rates to my usage ledgers. I did not use list input prices; I used the real rates billed across every bucket: cached reads, cache writes, visible output, and reasoning tokens.
Effective Price per Million Tokens (Real Workload)
Codex Terra ──► $0.299 / MTok
Claude Mix ──► $0.591 / MTok
The challenger yielded an effective rate of $0.299 per million tokens across 199 million tokens. The incumbent landed at $0.591 per million across six billion tokens.
When measured properly against real engineering workloads, the cheaper tool really was cheaper—by about half. That kills the convenient narrative where the low-cost tool turns out to be secretly expensive and the decision makes itself. If you cut the new tool to save money, your spreadsheet would prove you wrong.
Anyone reading this narrative expecting the incumbent to win on raw token cost has it backward. It did not. The initial spreadsheet simply failed to measure what actually mattered to the decision.
Where the money actually goes
Why was the incumbent's effective rate twice as high if both systems rely almost entirely on cached context? The answer comes down to two factors that rarely appear on a vendor pricing page.
Incumbent Cost Breakdown
┌─────────────────────────────────────────────────────────┐
│ Cache Reads: 61% │
├─────────────────────────────────────────────────────────┤
│ Cache Writes: 27% │
├─────────────────────────────────────────────────────────┤
│ Output: 12% │
└─────────────────────────────────────────────────────────┘
First, caching carries two distinct prices: reading and writing. You pay to populate the cache, and you pay to read from it. On the tool we kept, cache writes alone accounted for 27% of the total bill. The challenger structures cache billing differently: writing is free, and charges apply only when reading context back. That single structural difference explains most of the financial gap.
The remainder stems from model mix. Our current Opus setup reads cache at $0.20 per million tokens—matching the challenger's cached input rate exactly. On the bucket carrying almost all the expenditure, the tools tie. The higher read costs in our ledger came from older Opus models still in active rotation at $0.50 per million. The pitch of "60% cheaper" was measured against our legacy model mix, not the configuration we deploy today.
Second, sticker prices hide reasoning costs. The challenger's output appears cheap at $12.00 per million, but reasoning tokens—the internal processing executed before generating an answer—bill at that same output rate with zero cache discount. These tokens never appear on the user's screen. In my execution logs, hidden reasoning tokens constituted 51% of total output volume, incurring premium rates for generated text that never reached the user.
A raw per-token comparison leaves out most of the bill.
Who needed convincing
The decision had to win over three groups:
1. Finance leadership
The entire evaluation aimed to demonstrate that engineering could manage its budget responsibly. The implicit rule in our team channel was clear: failing to demonstrate cost discipline would quickly erode the goodwill supporting the trial.
2. Internal platform governance
Our tier for the challenger lacked administrative controls over model selection. To prevent engineers from running expensive models, an engineer built a custom local hook to block unauthorized execution. When triggered, the terminal output printed:
hook: UserPromptSubmit BlockedA governance model held together by local shell scripts is not a viable architecture to present when securing permanent budget approval.
3. The engineering team
The engineers using the tool every day were converted by hands-on experience. During the trial, team members regularly hit hard execution limits mid-task:
workspace is out of creditsTrust eroded further due to hallucinations. The new model confidently cited Azure Databricks documentation for features that did not exist. When prompted for source links, the URLs resolved to unofficial third-party mirrors rather than official vendor documentation.
The primary objective of using AI assistants is to reduce manual verification. A tool that forces developers back into manual verification increases operational friction—and that friction is a direct engineering cost.
What got cut along the way
The trial eliminated several inefficiencies before we reached a final decision. Before the evaluation, our workaround for heavy usage limits had been purchasing premium seats. The trial allowed us to eliminate both those stopgaps and their associated per-seat premiums.
An ambitious internal project was also shelved. One of our engineers had drafted a custom proxy controller to sit in front of the new tool. It was designed to route routine tasks to a lightweight model, reserve the frontier model for complex problems, and expose the per-thread usage metrics the vendor failed to provide.
That controller never shipped because the underlying platform was deprecated. On a Monday morning, user access to the challenger was revoked, and the legacy enterprise contract was canceled in favor of a model that cost less and performed better.
The line item that survived
We went looking for a new tool because heavy users repeatedly hit usage caps under a plan that combined fixed seat fees with metered, full-rate API consumption.
We solved the problem by altering our procurement structure rather than our toolchain. We transitioned to a flat per-seat enterprise plan that offers predictable costs, included usage allocations, and zero metered pass-through billing.
Once AI tooling shifted from a running meter to a fixed head-count cost, the per-token price war became irrelevant. The structure of the purchase erased the exact comparison we had spent a week evaluating.
When the next budget cycle arrived, the line item survived without resistance. Finance can easily forecast a flat per-head expense, allowing the allocation to renew unchanged. The tool did not survive by winning a per-token price comparison; our own telemetry proves it lost that benchmark. It survived because its cost model became predictable, its outputs required less manual remediation, and the unit metrics we spent a week tracking were never the metrics that drove the business decision.
What this analysis can't tell you
This analysis reflects a single engineer's usage profile rather than a controlled synthetic benchmark. The evaluation windows do not cover identical tasks, the challenger's metrics capture command-line activity while undercounting desktop app usage, and the pricing reflects public list rates rather than negotiated enterprise discounts.
Still, the raw totals come straight from each vendor's reported telemetry—and the core conclusion regarding which billing units to measure holds true regardless of volume discrepancies.
If your organization is evaluating enterprise AI tools, price the infrastructure components that actually appear on the invoice. For agentic workloads, that means evaluating cache reads, cache writes, and reasoning overhead—not the fresh input rate on the pricing page.
Most importantly, ask the question no per-token metric can answer: when the tool outputs an error, who catches it, and what does that remediation cost the business?































