Basics

Reasoning tokens

Reasoning tokens are the tokens a model generates while it thinks through a problem, before it writes its answer. They are billed as output tokens, even when the API doesn't return their text.

Also called Thinking tokens, Extended thinking, Reasoning effort

Checked November 29, 2026

At a glance

Billed as
Output tokens
Visible
No; a summary at most
Counts toward
Max tokens and the context window
Effort settings
reasoning.effort (OpenAI), output_config.effort (Claude on the Messages API)
On /model
Billed as output; Claude's thinking blocks come back without text

OpenAI's reasoning models think before they answer. The reasoning tokens aren't visible through the API, but they occupy space in the context window and are billed as output tokens; you can ask for a summary of the reasoning instead (OpenAI). Anthropic calls it thinking: Claude's answer carries summarized thinking blocks next to its text blocks (Anthropic).

What they cost

Because reasoning is output, a hard question can cost several times what its short answer suggests. The usage says how much was reasoning: output_tokens_details.reasoning_tokens at OpenAI, and output_tokens_details.thinking_tokens on Claude, which counts how many of the billed output tokens were reasoning (Anthropic).

Setting the effort

Both makers let you trade thinking for speed and cost. At OpenAI, reasoning.effort guides how much the model thinks; its values depend on the model and can include none, minimal, low, medium, high, xhigh and max, and lower effort favours speed and fewer tokens (OpenAI). Claude takes an effort setting on Anthropic's Messages API.

Thinking on /model

  • Thinking is billed as output tokens and counts toward max_tokens: leave room for it (Thinking).
  • On /v1/messages, output_config.effort sets how hard Claude tries: low, medium, high, xhigh or max. On /v1/chat/completions, Claude decides by itself, and reasoning_effort is refused for Claude models.
  • Claude's thinking blocks come back without their text, so read the answer from the text blocks. In a tool loop, send the thinking blocks back unchanged.
  • Models that think first get 90 seconds, instead of 30, to start answering on each channel (Limits and timeouts).

Where it applies on /model

Questions

Why was I billed for more output tokens than the answer has?

The model thought before it answered. Reasoning tokens are billed as output but not shown, so the bill counts more tokens than the text you got.

How do I make Claude think less?

Lower the effort: on /model's /v1/messages, set output_config.effort to low or medium. On /v1/chat/completions, Claude decides how much to think by itself.

Sources

The makers' own pages, each opened on November 29, 2026.

One key for every model here.

Top up from $10, change one URL, and pay only for the tokens you use.