AI Reasoning Models and Extended Thinking: How They Work and When to Use Them

Macro photo of a microchip, representing the processing behind AI reasoning models

An AI reasoning model is a language model trained to generate an internal chain of reasoning, often called “thinking,” before it writes its final answer, which makes it noticeably better at multi-step problems such as math, debugging and planning. Extended thinking is the API feature that turns this on and controls how much reasoning the model does. The trade-off is that thinking tokens take time and are billed as output tokens, so reasoning models are worth using for hard tasks and wasteful for simple ones.

Featured image: “Intel 8742” by Ioan Sameli, licensed under CC BY-SA 2.0.

This guide explains how reasoning models differ from standard ones, compares the thinking controls in the Claude, OpenAI and Gemini APIs, and shows how prompting changes, with a before-and-after example.

How a reasoning model differs from a standard model

A standard model starts writing the answer immediately and produces it token by token in one pass. A reasoning model first produces a separate block of reasoning tokens in which it can break the problem down, try an approach, notice a mistake and backtrack, and only then writes the visible answer. The reasoning happens in the same model; it is not a second system checking the first.

What makes this more than a prompt trick is training. When OpenAI introduced its o1 model in 2024, it described training it with large-scale reinforcement learning to use its chain of thought productively, and reported that performance kept improving both with more training compute and with more time spent thinking at inference time (OpenAI, Learning to reason with LLMs). That second finding, often called test-time compute, is why reasoning effort is now a dial you can turn per request.

Reasoning models vs chain-of-thought prompting

Chain-of-thought prompting is a technique you apply in the prompt: you ask any model to show its steps before answering. It works because the written steps give the model more tokens to work through the problem. Reasoning models internalize that behavior, so the reasoning happens in a dedicated thinking block, it is usually longer and more self-correcting, and you control it with an API parameter rather than wording. For standard, non-reasoning models, chain-of-thought prompting is still the right tool.

How the three major APIs expose thinking

All three major providers now offer reasoning, but they name and control it differently, and the controls have changed several times. The table summarizes what each provider’s documentation says as of October 2026; check the linked docs before building, because model lineups and defaults change often.

AspectAnthropic ClaudeOpenAIGoogle Gemini
Main controlthinking: {type: "adaptive"} plus output_config.effort on current models; older models use type: "enabled" with budget_tokensreasoning.effort (values such as low, medium, high; support varies by model)thinking_level on Gemini 3 and later (e.g. low, medium, high; some models add minimal)
Can the model skip thinking on easy requests?Yes, in adaptive mode, especially at lower effortDepends on effort level and modelLower levels reduce thinking; defaults vary per model
What you seeSummarized or omitted thinking, depending on model and the display settingReasoning tokens are not returned as text; reasoning items are opaque (encrypted in stateless mode)Optional thought summaries via thinking_summaries
BillingFull thinking tokens billed as output, even when summarized or omittedReasoning tokens billed as outputFull thinking tokens billed as output
Where to count themusage.output_tokens_details.thinking_tokensoutput_tokens_details.reasoning_tokenstotal_thought_tokens
Tool usePass thinking blocks back unchanged; adaptive mode thinks between tool calls automaticallyPass reasoning items back with function call outputsResend thought signatures unchanged in stateless mode

Sources for the table: Claude extended thinking docs, OpenAI reasoning guide and Gemini thinking docs. For a parameter-by-parameter comparison, see our article on budget_tokens, reasoning_effort and thinking_level.

Claude: from fixed budgets to adaptive thinking

Claude’s original extended thinking used a fixed token budget: you set budget_tokens (minimum 1,024, and less than max_tokens) and the model reasoned up to roughly that amount. Anthropic’s documentation now recommends adaptive thinking, where Claude decides whether and how much to think on each request and you steer depth with an effort setting. The manual mode is deprecated on the 4.6 models and rejected with an error from Claude 4.7 onward, so code written against older examples may need updating. A minimal adaptive request looks like this:

{
  "model": "claude-sonnet-4-6",
  "max_tokens": 16000,
  "thinking": {"type": "adaptive"},
  "output_config": {"effort": "high"},
  "messages": [
    {"role": "user", "content": "Find the bug in this function and explain the fix: ..."}
  ]
}

Two details from the docs are easy to miss. Changing the thinking configuration between requests invalidates prompt cache breakpoints, so keep it stable within a conversation. And when Claude thinks between tool calls, which our guide to interleaved thinking in Claude’s API covers, the thinking blocks must be passed back unmodified in the next request or the multi-turn protocol breaks.

OpenAI: effort levels and reserved space

OpenAI’s reasoning models take a reasoning.effort setting, and each model supports a subset of levels with its own default. Reasoning tokens are not visible, but they occupy the context window and count against max_output_tokens. If that limit is too low, the response can come back marked incomplete before any visible text is written. OpenAI’s guide recommends reserving at least 25,000 tokens for reasoning and output when you start experimenting.

Gemini: thinking levels and thought signatures

Gemini 3 and later models use thinking_level, and the default differs by model: some default to high, lighter models to minimal. Google’s docs note that pricing is based on all the thought tokens the model generates, and that max_output_tokens covers thinking plus answer, so a low cap can truncate the response.

Can you see the reasoning?

Usually you see a summary or nothing, not the raw chain of thought. OpenAI chose not to show raw reasoning when it launched o1 and shows a model-written summary instead. Anthropic’s current docs describe summarized thinking as a summary of the full process, produced by a different model, and newer Claude models default to omitting the thinking text entirely unless you request summaries. In both cases you are billed for the full reasoning, so the token count in your bill will be larger than the text you see.

A practical consequence: do not ask the model to copy its reasoning into the answer to “see what it was thinking.” Anthropic’s docs advise reading the thinking blocks instead, and some models may refuse requests that try to extract internal reasoning into the response text. If your users need to see how an answer was reached, ask for a short justification of the conclusion as part of the answer format.

When a reasoning model is worth it

Reasoning pays off when the answer depends on getting intermediate steps right. OpenAI’s best-practices guide frames reasoning models as planners for complex, ambiguous, high-accuracy work and faster standard models as the workers that execute well-defined steps, and many systems combine the two.

TaskReasoning helps?Why
Multi-step math, logic puzzles, scheduling with constraintsYesEach step depends on the previous one; checking and backtracking catch errors
Debugging code from a stack trace and sourceUsuallyThe model has to form and test hypotheses about cause
Agentic tasks with many tool callsUsuallyReasoning between calls helps decide the next action and when to stop
Reviewing a contract or policy against a checklistOftenMany conditions must be checked without skipping any
Classification, extraction, reformattingRarelySingle-step tasks; thinking adds latency and cost without changing the result
Short creative writing, casual chatRarelyNo intermediate steps to get wrong
Factual lookupsNoReasoning does not add knowledge the model lacks; retrieval does

If your traffic mixes both kinds of request, you do not have to choose one model for everything. A router can send hard requests to a reasoning configuration and easy ones to a fast model; see our guide to AI model routers. With adaptive thinking, part of that routing happens inside the model.

Prompting a reasoning model: before and after

Prompts written for standard models often contain instructions that are unnecessary or counterproductive for reasoning models. OpenAI’s guidance is to keep prompts simple and direct, avoid “think step by step” instructions because the model already reasons internally, use delimiters to separate inputs, and state constraints and success criteria explicitly. Here is an illustrative prompt for a capacity-planning question, before and after applying that advice.

Before: a standard-model prompt

You are a world-class cloud architect with 30 years of experience.
Think step by step. First, list all the facts. Second, consider each
option carefully. Third, think about the pros and cons. Fourth,
double-check your math. Then show all your reasoning in detail
before giving the answer.

We have a service on 6 VMs that's running hot at peak. Should we
scale up or out? Give a thorough answer.

After: a reasoning-model prompt

Decide whether to scale this service vertically or horizontally
for the next 6 months.

<context>
- 6 identical VMs, 4 vCPU / 16 GB each, behind a load balancer
- Peak CPU 85-90% for ~2 hours daily; memory peaks at 60%
- Expected traffic growth: about 40% over 6 months
- App is stateless except for an in-memory session cache
- Hard limit: monthly compute budget may grow by at most 30%
</context>

Success criteria:
- Peak CPU stays under 70% at the end of the 6 months
- Stays within the budget limit
- No single VM failure takes out more than 20% of capacity

Output:
1. Recommendation in one sentence
2. The numbers that justify it (show the capacity arithmetic)
3. The one assumption most likely to make this wrong
4. What to change first if the session cache blocks scaling out

What changed and why:

  • The step-by-step script is gone. The model plans its own reasoning; prescribing the steps can constrain it and, per OpenAI’s guidance, sometimes hurts performance.
  • “Show all your reasoning” is gone. The reasoning lives in the thinking block. Asking for it in the answer duplicates tokens and, on some models, may be refused. The answer instead asks for the specific arithmetic a reader needs to trust the result.
  • Facts are concrete and delimited. Reasoning models are good at using numbers, but only the numbers you give them. The <context> tags separate input from instruction.
  • Success criteria are measurable. “Under 70% CPU” and “at most 30% budget growth” give the model something to check its plan against while it reasons, which is where reasoning models do better than standard ones.
  • The output format asks for a weak point. “The one assumption most likely to make this wrong” makes the uncertainty explicit instead of burying it.

Few-shot examples deserve a note too. OpenAI suggests trying zero-shot first with reasoning models and adding examples only if needed, keeping them closely aligned with your instructions. Examples that show a particular reasoning path can anchor the model to that path even when a better one exists.

Common mistakes with extended thinking

  1. Leaving effort at maximum for everything. High effort on a classification endpoint adds latency and output-token cost for no gain. Set effort per use case, and measure quality at each level on your own examples.
  2. Setting max_tokens too low. Thinking counts toward the output limit on all three platforms. A low cap produces truncated or empty answers that look like model failures.
  3. Estimating cost from visible text. Summarized or omitted thinking is still billed in full. Use the usage fields listed in the table above for cost tracking.
  4. Stripping thinking blocks or signatures in tool loops. Code that filters the response to text blocks only will break multi-turn tool use. Pass reasoning items, thinking blocks and signatures back exactly as received.
  5. Expecting reasoning to fix missing knowledge. A model that does not know your internal API will reason confidently about the wrong one. Provide the documentation through retrieval or the prompt.
  6. Copying old code samples. Parameters such as fixed thinking budgets have been deprecated or replaced on newer models. Check the current docs for the exact model you call.

Are reasoning models always more accurate?

No. They tend to be clearly better on tasks with many dependent steps and offer little or no advantage on simple lookups, short creative tasks and single-step transformations, where they mostly add delay. They can also overthink: spending many tokens on an easy question, or talking themselves out of a correct first answer. The reliable way to decide is to run the same evaluation set at different effort levels and compare quality, latency and cost together, then pick the lowest setting that meets your quality bar.

Sources

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top