7 min read

N5
Deep Dive · Reasoning & Test-Time Compute

Inference-Time Scaling

The second scaling axis is priced, and the price depends on the shape of your request rather than on the models.

Substituting a cheap model plus more thinking for an expensive model is affordable in long agent loops and barely affordable in short generative ones — at November 2026 list prices the same swap buys a 22× thinking budget at a 100:1 prompt-to-output ratio and a 2.1× budget at 1:2. Caching the prefix collapses that 22× to about 3×, which makes prompt caching and test-time compute substitutes rather than complements. The research result is denominated in FLOPs; your decision is denominated in tokens, and the exchange rate is a vendor price table.

Step 1Two ways to spend a FLOP, and only one of them lands on your invoice.

For a fixed accuracy target you can spend on parameters — train or rent a larger model and pay for it on every token forever — or on test-time compute, keeping the model and spending more FLOPs per hard query. DeepMind's 2024 compute-optimal result and its successors show these trade against each other: on many reasoning tasks a smaller model given a compute-optimal test-time strategy matches a much larger model run greedily, and test-time scaling can make overtraining a smaller model the compute-optimal choice.

That result is about compute. You do not buy compute. Pretraining is amortised across every customer of a hosted model and reaches you pre-digested as a per-token price; test-time compute is billed to you, per query, mostly at the output rate. So the substitution the papers describe is real in FLOPs and is a separate question in dollars, and the dollar question has a clean answer you can compute from a price table. Getting it wrong is the most common way a "use the cheap model and let it think" decision turns out to cost more than the model it replaced.

Step 2The exchange rate is one line of algebra over the published ladder.

Take Anthropic's November 2026 list prices per million tokens as a worked ladder: Claude Haiku 5.5 at $0.10 in / $0.50 out for prompts up to 100,000 tokens, Claude Sonnet 5.5 at $2 / $10, Claude Opus 5.5 at $4 / $20, Claude Fable 5.2 at $8 / $40. Adjacent rungs near the top sit at a flat 2×; the bottom rung is 20× below the next one on output.

Now substitute cheaper model A for model B on a request with P input tokens and O output tokens, where A needs m times as many output tokens as B — m is the thinking multiplier, reasoning tokens included. The swap is cheaper while:

# break-even thinking multiplier
m* = out_B/out_A  +  (in_B - in_A) * P / (out_A * O)
     └─ the price ratio ──┘   └── the input-side credit ──┘

The first term is the number everyone reasons with: the output price ratio between the two rungs. The second term is the one that decides the answer in practice, and it is not a property of the models at all. It is the input-rate saving the cheaper model hands you, multiplied by your prompt-to-output ratio — so the affordable thinking budget scales with how input-heavy your request is.

The algebra says nothing about whether A can reach B's accuracy at any multiplier. That is the empirical question, and on plenty of tasks the answer is no at any price — see the jagged frontier. m* tells you how much headroom you are allowed to spend looking, not that looking will work.

Step 3Work both shapes, because the same swap changes affordability tenfold.

Hold the models fixed — Sonnet 5.5 replacing Opus 5.5, a flat 2× on both input and output — and vary only the request shape:

output-heavy generation   P = 2,000   O = 4,000   P/O = 0.5
  Opus 5.5   0.002M x $4  = $0.0080 in
             0.004M x $20 = $0.0800 out    total $0.0880
  m* = 2 + 0.2(0.5) = 2.1
  Sonnet 5.5 at m=2.1: 8,400 out tokens     total $0.0880

agent loop                P = 100,000  O = 1,000   P/O = 100
  Opus 5.5   0.100M x $4  = $0.4000 in
             0.001M x $20 = $0.0200 out    total $0.4200
  m* = 2 + 0.2(100) = 22
  Sonnet 5.5 at m=22: 22,000 out tokens     total $0.4200

same two models. 2.1x of thinking affordable in one shape,
22x in the other.

This inverts the usual intuition about where thinking is expensive. In output-heavy work — drafting, summarising, long-form generation — the budget is essentially the bare price ratio, and a reasoning model whose hidden chain routinely runs several times the length of its visible answer blows through 2.1× on the first call. In an input-heavy agent loop, where a large prompt is re-sent every turn and the answer is a tool call, the input-rate saving funds a thinking budget an order of magnitude larger.

Which is the opposite of how the knob gets used. Teams tune reasoning effort on short, dense prompts where the budget is thinnest, and leave it at a default inside long agent loops where it is cheapest. The lower rung is more forgiving still: Haiku 5.5 to Sonnet 5.5 starts at a 20× price ratio before any input credit, which is why down-ladder substitution so often survives contact with the invoice at the bottom of the stack and so rarely does at the top.

Step 4Caching the prefix spends the money that was paying for the thinking.

The input-side credit is the whole budget in an agent loop, and prompt caching is designed to delete it. Cache hits on both Claude Opus 5.5 and Claude Sonnet 5.5 are priced at 0.05× the base input rate, which is $0.20 and $0.10 per million tokens respectively. The rate differential that funded 20× of extra output collapses from $2.00 to $0.10:

agent loop, P/O = 100, Sonnet 5.5 replacing Opus 5.5

uncached prefix   in_B - in_A = $4.00 - $2.00 = $2.00
                  m* = 2 + 0.2(100)  = 22

cached prefix     in_B - in_A = $0.20 - $0.10 = $0.10
                  m* = 2 + 0.01(100) = 3

the cache did not make thinking more expensive.
it removed the saving that was paying for it.

So the two optimisations everyone reaches for are substitutes over the same pool of money, not complements. A team that lands prompt caching and then expands the thinking budget on the cheaper model has spent the same saving twice and will see it in the bill. The order matters too: cache first and the cheap-model swap looks marginal; swap first and caching looks like it broke the economics. Neither is a regression — it is one saving being claimed twice. The caching side of this is developed in context-caching economics, and the hit-rate assumptions it rests on in cache affinity.

The same caution applies to any per-request pricing step. A cheap model with a long-context tier — Haiku 5.5 moves to $0.50 in / $2.50 out above a 100,000-token prompt — reprices the exact regime where the input credit was largest, and the threshold selects a rate for the whole request rather than the overage, which is the cliff in the price cliff above the context threshold.

Step 5Both ways of buying thinking share one shape, and past the bend it bends down.

Internal: a model trained to produce a long private chain before answering, scaled with an effort or thinking-level setting; the search and verification are baked into the weights. External: sampling, best-of-N, beam and tree search with a verifier around an ordinary model — the four preceding essays in this group. Internal is simpler to operate and better calibrated per token; external gives you an inspectable verifier and exact budget control. They compose, and they share one curve.

That curve is concave and saturating for the reason the self-consistency curve is: marginal thoughts increasingly retrace explored reasoning. It can also turn over. On four identifiable task shapes accuracy falls as reasoning length rises, and the effect splits by model family, which makes effort part of a model's identity rather than a tuning parameter — the case made in inverse scaling in test-time compute. Two practical corollaries follow. The knob itself is no longer a token count: budget_tokens has given way to effort and thinking-level settings whose mapping is the vendor's, not yours, which is adaptive thinking and effort budgets. And more budget widens whatever the model was already doing unless it can see its remaining allowance, which is why a plateau is an allocation problem — budget awareness, not budget size.

"It is a reasoning model, so give it maximum effort" is both a cost and an accuracy mistake, and the cost half is now arithmetic rather than intuition: at a 1:2 prompt-to-output ratio the entire budget between adjacent rungs is 2.1×, and the reasoning tokens you cannot read are billed at the output rate. Measure the knee per task class and stop at it.

Step 6Route on shape as well as difficulty.

The original advice for test-time compute — build the difficulty router before raising the budget — still holds, because spending a uniform large budget buys almost nothing on the easy majority. What the pricing adds is a second input. Difficulty tells you whether a query has headroom; shape tells you what converting that headroom costs:

# route on both, not just difficulty
d    = estimate_difficulty(q)          # calibrated, cheap
m    = break_even_multiplier(q, rung)  # prices + P/O + cache state

if   d < LO:      ans = model.call(q, effort="low")
elif m >= 8:     ans = down_rung(q, effort="high")   # budget is wide
else:            ans = model.call(q, effort="high")  # stay, think

Inference-time compute is real, substitutable scaling, but it is bought at the output rate, and what you can afford is set by your prompt-to-output ratio and your cache state rather than by the two models you are choosing between. That makes the decision computable before the experiment: a swap with a break-even multiplier of 20 is worth a week of evaluation, and a swap with a break-even multiplier of 2 is worth a conversation about whether the task needs the frontier model at all. Reconciling what you actually spent needs the reasoning-token accounting in accounting for reasoning tokens, because the thinking is the one line on the invoice with no matching object in your logs.

Compute m* for your three highest-volume request shapes this week, with your real cache hit rate in the input term. Where it comes out above about 8, the down-ladder swap deserves a proper evaluation and you should run it at high effort, not low. Where it comes out near the bare price ratio, stop considering the swap and tune effort on the model you have — or question whether the task was ever a frontier task. Then record m* next to each route in your model metadata, because it moves whenever a price, a tier threshold or your cache hit rate moves, and a routing decision justified by last quarter's arithmetic is the quiet way this axis starts losing money.