Skip to content

AI Industry & Models

Reasoning Tokens Can Make the Cheapest AI Model Cost More

A model’s published token rate no longer predicts the bill for a hard task. Compare the cost of accepted answers, including internal reasoning, retries, verification, and wait time.

Tobias LundIndustry & Models Writer

November 13, 2026 · 7 min read

Laptop beside a test log and spreadsheet comparing model usage, retries, verification results, and elapsed time.
Laptop beside a test log and spreadsheet comparing model usage, retries, verification results, and elapsed time.

A pricing page can tell you what 1 million output tokens cost. It cannot tell you how many output tokens a reasoning model will consume before solving your particular problem, because some of that computation happens in an internal reasoning trace rather than the text returned to the user.

That distinction matters on a concrete job: repairing a Python invoice-reconciliation function from its source files, traceback, failing tests, and written accounting rule. The accepted answer must make the existing test suite pass without weakening a test or changing the stated rule. This is narrow enough to verify, difficult enough to trigger internal reasoning, and repeatable across APIs.

Run that task once and the cheapest model may appear obvious. Run it repeatedly, include failed patches and verification, and the ranking can change.

The unprinted output on the bill

A reasoning token is an output token a model uses while working toward an answer but does not necessarily expose in the final response. Vendors use different names and interfaces, yet their documentation establishes the same purchasing problem: visible answer length is no longer a reliable proxy for billed output.

OpenAI’s API documentation reports reasoning usage under `output_tokens_details.reasoning_tokens`, with those tokens charged as output. Google’s Gemini API documentation exposes thought usage through `thoughtsTokenCount` and treats thought tokens as billable output. Anthropic documents extended thinking as output-token usage and notes that, where a model returns summarized thinking, billed usage can reflect more thinking than the summary shows.

The variability is not a surcharge with one fixed percentage. Two models can receive the same invoice-reconciliation prompt, return patches of similar length, and report very different output usage because one spent more tokens reasoning. The same model can also vary between runs. A lower per-token price therefore wins only if token consumption, retries, and acceptance rates stay favorable.

Vendor controls do not remove the problem. Some APIs offer model-dependent settings such as reasoning effort or thinking budgets, but lowering one can reduce token use while increasing the chance of a bad patch. A cap changes the tradeoff; it does not establish the cheapest setting.

This makes a new comparison practical. Teams can use the usage metadata already returned by the APIs to calculate cost per accepted result, rather than estimating cost from the few hundred words visible in a chat window.

Build the test around an accepted answer

Start by freezing the invoice-reconciliation task. Put the source files, dependency lockfile, traceback, tests, and accounting rule in one versioned directory. Record a hash of that directory so each model sees identical material, then prohibit network access during execution unless network use is part of the workload being purchased.

Define acceptance before opening a model response. For this task, the patch must run in the pinned environment, pass the original suite, and survive an additional held-out test that checks the accounting rule. A patch that edits the tests fails. So does an explanation without executable code.

That binary gate matters because subjective scoring can make a verbose answer look better than a correct short one. It also gives verification a measurable cost: the test runner consumes compute and time, while any model used to inspect the patch creates another API charge.

Use 10 independent runs per model as a screening pass, with the same maximum of two attempts per run. The first attempt contains the original package. If it fails, the second receives only the same standardized failure report, such as the test name, exception, and relevant stack trace. Do not quietly improve one model’s prompt after seeing its mistake.

Ten runs will expose obvious instability, though it is too small a sample for confident tail-latency claims. If two contenders remain close, expand both to 30 runs without changing the prompt, acceptance test, or retry policy. Record the median and slowest completion during screening; calculate more formal latency percentiles only after collecting enough observations to make them meaningful.

The invoice repair now has a clear unit of purchase: one accepted patch. A model that produces nine acceptable patches with no retries has delivered something different from one that produces nine only after repeated correction, even if their published token rates match.

Price every attempt, including the failed ones

For each API call, capture the vendor’s reported uncached input, cached input where applicable, visible output, internal reasoning or thought usage, and any separately priced tool calls. Multiply each category by the matching rate on the vendor pricing page at the time of the test, preserving the page or a dated export because rates and cache rules can change.

The call-level calculation is:

`call cost = input charge + cached-input charge + billed output charge + tool charges`

For vendors that include reasoning in billed output, the output charge must use the API’s billed count rather than a tokenizer applied to the visible answer. A local tokenizer cannot reconstruct internal tokens that the service did not return.

Then calculate the workload figure:

`cost per accepted patch = total cost of all attempts and verification / number of accepted patches`

The numerator includes first attempts, retries that still failed, successful retries, verifier-model calls, and sandbox execution charged by an external service. Keep human review time in minutes unless the organization already has an agreed internal cost for it. Inventing an hourly rate to force everything into dollars makes the comparison look more precise while adding an assumption that may dominate the result.

This is where sticker-price rankings reverse. A model with the lower advertised output rate can lose if the invoice task makes it generate more internal reasoning, retry more often, or require a second model to check an unreliable patch. No universal multiplier captures those effects. The run log does.

Cached-input discounts deserve separate treatment. The fixed source package may qualify for prompt caching on repeated calls, while a changing stack trace or retry message may not. Apply only the usage category reported by the vendor rather than assuming every repeated byte received the cache rate.

Keep cost, quality, and waiting time visible

Cost per accepted patch is the primary number, but collapsing every consideration into one score hides operational constraints. Report acceptance rate and end-to-end latency beside it.

End-to-end latency starts when the original invoice package is submitted and stops when the patch passes verification or exhausts the two-attempt limit. It includes model generation, retry generation, queueing visible to the client, and the test run. The time-to-first-token metric sometimes shown by API dashboards does not answer how long an engineer waits for usable code.

Quality needs one further check beyond passing tests. Review accepted patches blind, with model names removed, for unauthorized scope changes or brittle hard-coding to the supplied fixture. Record rejection reasons as labels rather than converting them into an elaborate score. For this workflow, a patch either satisfies the accounting rule after review or returns to the failed pool.

A practical comparison sheet therefore has one row per run, not one row per model. Store the model identifier returned by the API, reasoning setting, usage fields, attempt count, verification result, elapsed time, and rejection label. Aggregate only after preserving those raw records.

Return to the invoice repair whenever a proposed metric feels abstract. If one model costs less per API call but makes the engineer wait through a second attempt on many runs, that delay belongs in the decision. If another spends more reasoning tokens yet reliably produces a patch that passes immediately, the extra internal computation may be the cheaper purchase.

Choose from the workload frontier

The result should not declare one model universally cheapest. It should identify the models that remain competitive for this pinned workload, a set often called the Pareto frontier: each surviving option is better on at least one important measure without being worse on all the others.

A team running invoice repairs in a background queue may choose the lowest cost per accepted patch even if completion takes longer. An engineer waiting during an incident may reject that option and pay more for lower end-to-end latency. If no candidate reaches the minimum acceptance rate set before testing, none is worth deploying, regardless of token price.

Reasoning settings can then be tested as separate candidates. Treat a model at low reasoning effort and the same model at a higher setting as two configurations, run both through the identical package, and retain the lower setting only if its reduced token bill survives the retry and acceptance calculation.

The spreadsheet becomes stale when a vendor changes a model alias, pricing category, cache policy, or reasoning control. Save the returned model identifier and rerun the invoice package after any documented change. That is less convenient than comparing two numbers on pricing pages, but it measures the product being bought: a verified answer under a fixed retry policy.

Questions people ask

Are reasoning tokens always billed as output tokens?

Not across every provider and product. OpenAI, Google, and Anthropic document billable reasoning or thinking usage in their APIs, commonly through output accounting, but field names and treatment differ. Use the usage object and current pricing documentation for the exact model rather than inferring billed tokens from visible text.

Can

I estimate reasoning cost from the answer length?

No reliable ratio exists. A short patch may follow substantial internal computation, while a longer answer may require less. Capture the provider’s reported reasoning or thought count for every call, then include failed attempts when calculating cost per accepted patch.

Should

I always lower the reasoning setting to save money?

Only if workload tests show that the saving survives lower acceptance and extra retries. Run the invoice-repair package at each supported setting as a separate configuration, using the same two-attempt cap and verification gate, then compare total cost and end-to-end latency.

What number should replace the advertised token price?

Use cost per accepted result for the pinned workload. Keep acceptance rate and end-to-end latency beside it, because a low average cost can conceal exhausted retries, slow completions, or too few acceptable answers to support deployment.

ShareFacebook
ai pricing and accessmodel evaluationreasoning modelstoken billingmodel evaluationapi pricing

One story a day

The story of the day, in your inbox

One real story about AI each morning — no hype, no alarm, just company for the road.

Read next

A laptop displaying a vendor-risk PDF beside extracted text with matching page labels and a highlighted footnote.

AI Industry & Models

AI Can Read a PDF Page and Still Lose the Document

Rendered pages help multimodal models see tables and diagrams. They do not reliably preserve footnotes, repeated sections, or references that cross page boundaries.

Tobias Lund · 8 min read

A laptop showing a support ticket beside a routing log with accepted and escalated decisions.

AI Industry & Models

A Model Router Saves Money Only If It Escalates in Time

A cheaper model can handle routine work, but one confidently wrong answer can cost more than several escalations. This routing test measures the failure that pricing tables omit.

Tobias Lund · 7 min read