Strategic Intelligence

You're Counting the Wrong Column

One production session burned 76 million tokens. Breaking the bill out by class showed the biggest line was not the expensive one.

Corrected November 2026. The first version of this page counted most turns two or three times. Every figure below counts each request once. What changed is in a note at the end.

I built one episode of a video series last week. The same session also ran a weekly news brief and a planning doc. Counted from the transcript, its 210 turns and its subagents came to 75,748,932 tokens. That number reads like a fire alarm. My first instinct was to go find the biggest line and cut it.

That instinct would have cost me money. When I broke the session out by token class and priced each class at published API rates, the largest line item by volume turned out to be the cheapest thing I bought, and the line I would have ignored turned out to be more than half the bill.

Here is the full breakdown. Every token count comes from a real production run, not a model.

Token class Tokens Share of volume Cost Share of cost
Cache reads 70,264,381 92.8% $34.46 38.6%
Cache writes 5,115,329 6.8% $46.75 52.3%
Output 354,123 0.5% $8.11 9.1%
Uncached input 15,099 0.02% $0.04 0.04%
Total 75,748,932 100% $89.35 100%

One production session, each request counted once, modeled at published API list rates (the same in July and October 2026). Opus 4.8 in the main loop, Sonnet 5 in the subagent fan-out.

Why 93% of the Volume Costs So Little

Every turn in a long session sends the whole conversation back to the model. Turn 200 re-sends everything from turns 1 through 199. That is why the totals get enormous: a session that runs 210 turns has re-read its own history more than two hundred times.

Prompt caching is what keeps that from being ruinous. The provider stores the processed state of a prefix it has already seen, so the next turn that starts with the same prefix reuses the stored work instead of reprocessing it. Reads against that stored state bill at roughly a tenth of the base input rate. Writing to the cache costs more than base input, because storing the state is the expensive part.

So the mechanic that makes long sessions possible also makes the aggregate number misleading. Cache reads pile up fast and cost almost nothing each. That is 70 million tokens for $34.46, which works out to about fifty cents per million. Meanwhile the writes, 7% of the volume, carry a multiplier in the other direction.

The mechanism

Cache reads bill at approximately 0.1x the base input rate. Cache writes bill at 1.25x on a five minute time to live, or 2x on a one hour time to live. That is a 20x spread between the cheapest and most expensive class of the same underlying thing.

The Inversion

Look at the two middle columns of that table together. Cache reads are 92.8% of the volume and 38.6% of the cost. Cache writes are 6.8% of the volume and 52.3% of the cost. The ranking flips completely depending on which column you read.

Anyone optimizing this session by volume goes straight for the cache reads, because they are the obvious target at ninety three percent. Cutting them in half saves about seventeen dollars. Cutting the writes in half saves twenty three. The smaller line has more money in it.

The same pattern showed up in the model tier split. This session ran twelve subagents in a verification fan-out, plus one test run I killed, and my assumption going in was that the fan-out was where the money went. It was 3% of the spend: $2.60 against $86.75 for the main loop. Every hour I might have spent tuning agent count would have been an hour spent on three percent of the problem.

The line you would optimize first was 93% of the volume and 39% of the cost. The line you would skip was 7% of the volume and more than half the bill. Averaging across classes hides the inversion in both directions at once.

The Cheap Option That Might Cost More

The cache write number invites an obvious fix. The main conversation ran on a one hour cache lifetime, which bills writes at 2x base input. The five minute lifetime bills at 1.25x. The subagents already used it. The main conversation's writes on the shorter lifetime would have cost $28.20 instead of $45.12, a seventeen dollar saving.

The catch is idle time. A five minute cache dies whenever the session sits idle for five minutes. The next turn then rebuilds the whole cached prefix at the write rate instead of reading it at a tenth. So I counted the idle gaps in the transcript. Eleven ran between five minutes and an hour.

Three were renders. Four were me reading or answering a question. Two were a fact-check workflow running. Two were stalls, where the session hung in the middle of a turn. No turns happen during a render, and the three master renders ran 57, 52 and 41 minutes.

At the prefix sizes the transcript recorded, rebuilding after all eleven would have added about nineteen dollars. That is two dollars more than the saving. But the two stalls are worth almost three dollars each, and the transcript shows something touched the cache during both. My record can't tell me whether it stayed warm. If it did, the rebuilds come to about thirteen dollars and the short cache wins by four.

So I can't say which side of the line I was on. The renders alone, about six dollars, were never going to decide it. And most of the rate card's seventeen dollars disappears either way. The only way to see that was to look at the shape of the work rather than the price of the unit.

Why the shape mattered

Per-unit price promised a clear saving. Total cost came out close to even, because of a variable that appears nowhere on a pricing page: the gap between turns. Eleven idle stretches ate most or all of a seventeen dollar saving.

Why Almost Nobody Sees This

I pay a flat monthly rate. My invoice is one number, and that number stays the same whether a session runs 76 million tokens or two million. The breakdown above cost me nothing extra, and my own bill would never have shown it to me.

That is the reason this finding stays buried. A flat plan collapses every cost class into a single line, so the people running the heaviest sessions usually have the worst instrument. The people on metered billing can see the class breakdown, but most of them are not running single sessions at this scale, so the inversion never gets large enough to notice.

The overlap of those two groups is small. I ended up in it by accident, because a video pipeline produces long sessions and I happened to pull the class-level telemetry out of curiosity rather than necessity.

On the numbers

Every dollar figure here is modeled at published API list rates, not an invoice. The renders alone ran about two hours and forty five minutes for this episode. They and the voice generation cost real money at zero tokens, so this total is not the full cost of producing the episode.

Three Frameworks From One Billing Table

Token pricing is the example. The transferable part is what the example demonstrates about measurement, and it shows up anywhere costs come in classes with different unit prices.

Framework 01

Class Before Aggregate

A total is only meaningful when every unit inside it is priced the same.

An aggregate number sums units. When those units have different prices, the sum answers a question nobody asked: how much stuff moved. The question that matters is where the money went, and a total cannot answer it because the expensive units are outnumbered by the cheap ones.

The mechanism is simple arithmetic that intuition gets wrong. If class A is 93% of volume at one tenth the unit price, and class B is 7% of volume at twenty times that price, class B wins on cost while losing badly on volume. The larger the volume gap, the more confidently the aggregate points at the wrong line.

This shows up outside token billing constantly. A law firm counting hours instead of realization rate. A warehouse counting units shipped instead of units by handling class. A marketing team counting sessions instead of sessions by acquisition channel cost. In each case the count is easy to produce and the class breakdown requires a query somebody has to write on purpose.

Use when: a single large number is driving a decision about where to cut, and you have not yet seen it split by unit price.
Framework 02

The Per-Unit Inversion Test

The cheaper option per unit is sometimes the more expensive option in total.

Unit price is a property of the thing you buy. Total cost is a property of how the work is shaped. When those two diverge, the pricing page will confidently recommend the wrong choice, because it has no visibility into your usage pattern.

The cache lifetime decision shows how close this can get. Five minutes costs 1.25x, one hour costs 2x, and the shorter lifetime looks cheaper by every measure available on the rate card. Add one fact that lives entirely on my side, how often the session sat idle for more than five minutes, and most of that gap closes. The rate card says the short cache saves seventeen dollars. The idle gaps take back somewhere between thirteen and nineteen.

The test itself is one question: what has to be true about my usage pattern for the cheaper unit price to also be the cheaper total? Then check whether it is true. Here, checking meant counting the idle gaps. Bulk discounts fail this test when the excess spoils. Cheaper materials fail it when they need replacing twice. Lower hourly rates fail it when the work takes three times as long.

Use when: two options differ on a published rate and you are about to choose the lower one.
Framework 03

Instrument Before Optimization

Your billing surface decides which problems you are able to see.

Measurement is not neutral. Every reporting surface makes some distinctions visible and flattens others, and the flattened ones become invisible rather than absent. A flat monthly plan is a good deal and a poor instrument: it hides the entire class structure that produced this article, because the whole point of a flat rate is that the structure stops mattering to the payer.

Before optimizing anything, check whether the instrument can even show the thing being optimized. I could see the class breakdown because the harness exposed per-class token counts, and I priced them against published rates. Without that telemetry I would have had a total, an assumption, and no way to test the assumption.

The uncomfortable version of this is that a comfortable billing arrangement often removes the pressure to build the instrument. Salaried headcount hides which projects consume capacity. Bundled software pricing hides which tool nobody uses. An unlimited plan hides the exact ratio that will hurt when the plan changes.

Use when: the reporting you have was built for billing rather than for decisions.

Running This On Your Own Numbers

The first pass took about twenty five minutes. A short script pulled the counts from the session transcript. The rest was a calculator and the published rate card. The recount added one step. If you're running agents at any volume, here's the sequence that produced the table above.

Sorting by cost is the step that does the work. Sorted by volume, this session's story is cache reads and nothing else. Sorted by cost, the story is cache writes, and the reads drop to a supporting role. Same data, opposite conclusion.

The model tier split deserves the same treatment, and it produced the second surprise of the session.

Tier Model Cost Share of spend
Main loop Opus 4.8 $86.75 97%
Subagents Mostly Sonnet 5 $2.60 3%

Twelve verification subagents on Sonnet 5, plus one killed test run on Opus 4.8, accounted for three percent of the session. The cost lived in one long conversation, not in the agents branching off it.

That result rules out an entire category of optimization. Routing work to cheaper models is the standard advice, and on this session it addresses three percent of the spend. Session length is the driver, which means the useful lever is structural rather than a model swap.

What I Changed

The class breakdown pointed at one structural fix. Cache writes get expensive because the prefix being stored keeps growing, and it grows because a single session carries its entire history forward. Splitting one long session into two shorter ones, with a written brief on disk as the handoff, means the second session starts from a file instead of a transcript. Most of the re-reading never happens.

I have not made that change yet, and the reason is worth stating plainly. At current pricing the session costs $89 modeled and effectively nothing on my actual plan, so adding a handoff step would buy friction I do not need. What the breakdown gives me is a mitigation I understand and can deploy on a day's notice if cache pricing ever moves toward parity.

That is the real return on counting properly. The immediate answer was that nothing needed fixing. The durable answer was knowing exactly which number would hurt if conditions changed, and having the fix already designed when it does.

Corrected November 2026

My first count was wrong. The session transcript writes each response as several lines, and every line repeats that response's full token usage. I summed every line, so most turns got counted two or three times. Every figure on this page now counts each request once. The total fell from 176 million tokens to 76 million, and the modeled cost from $234 to $89. The inversion held.

The cache lifetime claim did not. I wrote that three renders made the five minute cache cost far more than the fifty dollars it saved. Recounted, it saves about seventeen. The renders alone take back about six. All eleven idle gaps take back thirteen to nineteen, so my own record can't settle which way it went. Two smaller fixes came with it: a per-unit figure that was off by a factor of ten, and the render times.

Frameworks Turn One Finding Into a Repeatable Method

The billing table produced three transferable tests. That conversion, from a single observation to a method that works on the next problem, is what framework building actually is.

Explore How to Framework