esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

How Do Reasoning Tokens Affect Cost and Latency?

What hidden thinking costs and how it slows a reply, with a worked contract example and a cap that can backfire, for your AI interview.

In short

Reasoning tokens are the working a model does before it replies. You pay for them as output tokens, even though the model's API (the developer interface) hides the full text, and the user waits while they are written, so they raise both the bill and the wait.

11 min readIntermediateCommon · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

Reasoning tokens are the working a model writes before it answers. You pay for them as output tokens, and the user waits while they are written. So a harder setting raises both the bill and the delay. I pick the effort on purpose, cap the total output, and log the reasoning count for each check, so the cost stays predictable.

What are reasoning tokens, in plain words?

A model that thinks first writes working steps before it gives you the reply. Those steps are reasoning tokens. A token is a small piece of text, so the model is writing out pieces of its own thinking before it writes the answer you read.

Think of a solicitor who does hours of research before writing a client letter. The client only sees the letter, yet the hours are billed. Our real case is a procurement team at a mid-size manufacturer. It checks supplier contracts against company policy, and each check reads about 3,000 tokens of clauses and rules. The numbers in this answer are made up.

Key words

Reasoning tokens
The hidden working a model writes before its reply.
Visible answer
The text the user reads. It is billed as output too.
Effort setting
A dial that tells the model how hard to think.
Output tokens
The pieces of text the model writes back. They are billed.
Latency
How long the user waits before the reply appears.

Two things follow. The scratch paper is billed, and it takes time before the reply can start.

Why do reasoning tokens cost money?

OpenAI's developer guide says reasoning models add reasoning tokens on top of input and output tokens. The API does not show you that text, yet those tokens still take up space in the context window, which is the room a model has to read and write at once. They are billed as output.

Where the output bill goes

Case file in

Read first, billed as input

Model output

Hidden thinking

Not shown, but billed as output

Visible answer

The part you can read

Billed output

Both parts add up here

  1. 1The model reads the case file and starts working.
  2. 2The hidden thinking is billed as output tokens.
  3. 3The visible answer is billed as output tokens too.
Where one check's billed output comes from. The hidden thinking and the visible answer are both billed as output, and they add up in the same bill.

The amount swings a lot. OpenAI says a model may write anywhere from a few hundred to tens of thousands of reasoning tokens, depending on how hard the problem is. So a feature's bill depends on how hard its inputs are, as well as on how many people use it.

Why do reasoning tokens make a reply wait?

OpenAI's guide says reasoning models use internal reasoning tokens before they produce a response. With a thinking budget (a target for how much Claude may think), Claude thinks before it starts its final answer, so the user waits for that thinking first.

  • “Reasoning models use internal reasoning tokens before producing a response.”

    OpenAI

  • “Higher budgets allow more comprehensive reasoning, with diminishing returns that depend on the task, and at the cost of increased latency.”

    Anthropic

Anthropic's text says the same about its thinking budgets. A bigger budget buys more careful thinking, but the gains shrink and the wait grows.

To see the scale, use a made-up speed of 100 tokens a second. A 400-token answer with no reasoning takes 4 seconds. The same answer after 6,000 hidden tokens waits about 60 seconds for its first word, then 4 seconds more.

Same check, two waits

No reasoning

Answer, 400 tokens

Starts at once, done in 4 s

High reasoning

Hidden thinking, 6,000

About 60 s with no visible text

Visible answer, 400

Then about 4 s of text

Reader gets the reply

Done at 4 s or at 64 s

  1. 1A quick model writes its answer straight away.
  2. 2The hidden thinking runs first, and the reader sees nothing.
  3. 3The visible answer reaches the reader after the wait.
Two replies to the same check. The quick model finishes in about 4 seconds at a made-up speed of 100 tokens a second. The reasoning model shows nothing for about 60 seconds, then the same 4 seconds of text.

What does one contract check cost at each setting?

Here is one check at four settings. The script uses only the standard library, and the output is pasted exactly as it printed. The speed and sizes are made up.

Python
# A made-up procurement check: what reasoning adds to one contract review.
SPEED = 100   # made-up: tokens written per second
ANSWER = 400  # made-up: tokens in the visible answer

def check(name, thinking, cap=None):
    billed = thinking + ANSWER
    if cap is not None and billed > cap:
        # The cap stops the run mid-thought: nothing visible is written, and the tokens are still billed.
        print(f"{name:<22} billed {cap:>5,}  visible answer 0 tokens (cut off)")
        return
    print(f"{name:<22} billed {billed:>5,}  first word after {thinking / SPEED:>3.0f} s  done after {billed / SPEED:>3.0f} s")

check("No reasoning", 0)
check("Reasoning, low", 800)
check("Reasoning, high", 6000)
check("High, capped at 2,000", 6000, cap=2000)

for name, billed in [("No reasoning", 400), ("Reasoning, high", 6400)]:
    print(f"{name} a day, 10,000 checks: {billed * 10_000 / 1_000_000:.1f} million billed tokens")

Output

No reasoning           billed   400  first word after   0 s  done after   4 s
Reasoning, low         billed 1,200  first word after   8 s  done after  12 s
Reasoning, high        billed 6,400  first word after  60 s  done after  64 s
High, capped at 2,000  billed 2,000  visible answer 0 tokens (cut off)
No reasoning a day, 10,000 checks: 4.0 million billed tokens
Reasoning, high a day, 10,000 checks: 64.0 million billed tokens

The high setting bills 6,400 output tokens for an answer of 400 tokens, which is 16 times the output with no reasoning. At 10,000 checks a day, that is 64 million billed tokens instead of 4 million.

The capped row is the trap, and it is the one interviewers like. OpenAI says a run that reaches max_output_tokens comes back with the status incomplete, and that this might happen before any visible output tokens are produced. You then pay for the input and reasoning tokens and get no reply to show for it.

Tip

Size the cap for the thinking and the answer together. OpenAI recommends reserving at least 25,000 tokens for reasoning and outputs when you start experimenting.

How do you keep the bill and the wait under control?

  1. 1

    Choose the effort on purpose

    In OpenAI's API, the reasoning.effort setting says how much the model should think. OpenAI says lower effort favours speed and lower token usage. Use the lowest setting that passes your tests, and step up only where the tests show a gain.

  2. 2

    Cap the total output

    In OpenAI's API, max_output_tokens caps reasoning tokens and visible output together. Anthropic's max_tokens is the hard ceiling on total output, and thinking counts toward it.

  3. 3

    Log the reasoning count

    Both APIs report the reasoning count in the usage data. Anthropic's field is usage.output_tokens_details.thinking_tokens, which reports how many of the billed output tokens were internal reasoning. OpenAI reports its count under output_tokens_details.

  4. 4

    Read the budget as a target

    Anthropic's manual thinking budget is deprecated. Its budget is a target rather than a strict cap, and Claude might stop well before it. Adaptive thinking lets Claude decide whether and how much to think, with an effort setting.

  5. 5

    Send only hard cases to reasoning

    Route simple checks to a fast model and keep the reasoning setting for disputed clauses. Then measure quality and cost on past contracts before you roll it out.

Tip

For a faster first word in a latency-sensitive app, OpenAI suggests asking the model for a short preamble before its deeper reasoning.

What does the interviewer want to hear?

A strong answer covers

  • Reasoning tokens are hidden working, and they are billed as output tokens.
  • Both cost and wait rise, because the thinking comes first.
  • Name the levers: effort setting, output cap, and usage logging.
  • A cap that stops a run can bill you for no visible answer.
  • Send only hard cases to reasoning, and measure quality against cost.
  • Log the reasoning count, the time to first word, and the total time.

Common traps

  • Trap"Reasoning is free, the model just thinks."

    BetterIt is billed as output and it adds wait time. Log it for every case.

  • Trap"Turn the output cap down and the cost is fixed."

    BetterA cap that stops the run mid-thought bills tokens with no answer. Set it with room for both.

  • Trap"Use the highest effort for every check, to be safe."

    BetterHigher effort costs more and waits longer. Send only the hard cases to it.

Can you spot the cost trap?

Spot the fix

The output bill for contract checks rose 16 times after the team switched on high effort. Which change keeps it predictable?

Quick check

A check that used to finish in 4 seconds now shows nothing for about a minute, then the text arrives. What is the most likely cause?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q108When do you raise a reasoning-effort setting?10 min
  2. Q316TTFT vs tokens/sec vs total latency?12 min
  3. Q339Why do output tokens cost more?11 min
  4. Q187How do you control agent cost?13 min
  5. Q324How do you estimate token cost for a feature?11 min

Learn it in depth

Last updated on 27 November 2026

Building an AI feature where cost and speed both matter?

I design and build AI products and agents, including the interface and the system behind it. Book a short call and tell me the task, the volume and how long users can wait.