Skip to content
AI Dev Toolkit.
Esc
  • Loading…

AI glossary · Tokens and cost

What are reasoning tokens (thinking tokens)?

Also called: thinking tokens, hidden reasoning

Definition

Reasoning tokens are the tokens a reasoning model generates while it works through a problem before writing its answer, billed as output tokens even though the API hides them or returns only a summary.

Explained

How do reasoning tokens work?

They are billed as output tokens and take up context window space while the model writes them, even though the API hides them or returns only a summary. Higher reasoning-effort settings usually produce more of them, so the same question can cost very different amounts.

Reasoning models, such as OpenAI’s GPT-5 models and Claude with thinking on, write a private chain of reasoning before the reply. That reasoning is made of ordinary output tokens. OpenAI never returns the raw reasoning but can send a summary if you ask for one, and Claude can return a summary or nothing at all.

The count is in each response’s usage data: output_tokens_details.reasoning_tokens in OpenAI’s Responses API and output_tokens_details.thinking_tokens in Claude’s Messages API, both already included in the output total. OpenAI says a request can use anywhere from a few hundred to tens of thousands of them.

You steer the amount with an effort setting (reasoning.effort on OpenAI, output_config.effort on Claude). Reasoning also counts against the output cap: if max output tokens is too low, the model can run out while still thinking, before writing any visible answer. OpenAI suggests reserving at least 25,000 tokens for reasoning and output when you start.

Example

6,000 hidden tokens behind a 500-token answer

Suppose a request to GPT-6.1 Sol sends 2,000 input tokens, gets a 500-token answer, and the usage data reports 6,000 reasoning tokens. The token counts are illustrative; the prices are from our daily data: $2 input and $10 output per million tokens.

Billed output is 6,500 tokens, not 500, so the request costs $0.069 instead of the $0.009 the visible reply suggests: 7.7 times as much. At 1,000 requests a day, that gap is $60.00 a day.

One request on GPT-6.1 Sol
TokensCost
Input2,000$0.004
Reasoning (hidden, billed as output)6,000$0.06
Visible answer500$0.005
Total8,500$0.069

Prices from our daily data, 2026-11-28. The reasoning count varies by request and effort setting.

Cost and quality

Why do reasoning tokens matter for cost and latency?

Reasoning tokens are often most of a reasoning model’s bill, and they make cost per request hard to predict, because the model decides how long to think. An estimate based only on the visible answer can be several times too low. Thinking also delays the reply: the model generates its reasoning before the first visible word, which raises time to first token.

Use lower effort for simple tasks, set an output cap with room for thinking, and log the reasoning count from the usage data so you can see where the money goes. The LLM cost calculator prices a workload once you include thinking in the output tokens.

Don’t mix up

Are reasoning tokens the same as chain-of-thought prompting?

Reasoning tokens vs chain-of-thought prompting
Chain-of-thought prompting asks a model to show its steps in the visible answer. Reasoning tokens come from a model trained to think before answering; they are usually hidden and billed whether you see them or not.
Billed thinking vs the summary you see
Anthropic bills the full thinking Claude generated, not the summary it returns, so the billed output count won’t match the visible text. Read thinking_tokens in the usage data for the real number.

FAQ

Questions people ask

Are reasoning tokens billed?

Yes. OpenAI, Anthropic and Google all bill reasoning or thinking tokens at the model’s output rate, even when you see only a summary or nothing at all. That is why a short visible answer from a reasoning model can cost far more than the same answer from a non-reasoning model. Read the usage object of each response for the exact count rather than estimating from the visible text.

How do I control how many reasoning tokens a model uses?

Use the provider’s effort setting: reasoning.effort on OpenAI, output_config.effort with adaptive thinking on current Claude models (older Claude models take a budget_tokens thinking budget), and thinking_level on Gemini. Lower settings cut cost and waiting time but can reduce quality on hard problems. Max output tokens also caps reasoning, so leave room for the answer.

Do reasoning tokens count toward the context window?

Yes. While the model generates them they occupy context space alongside your input and the answer, so a large thinking budget leaves less room for output. Whether earlier turns’ reasoning is carried into the next request depends on the model: Claude Opus 4.5 and newer Claude models keep prior thinking and bill it as input, and OpenAI’s GPT-5.6 models carry it by default, while older models drop it.

Go deeper

Try it and read more

Related

All 41 terms in the AI glossary

Keep exploring