deep · 5 min
Reasoning models
Models trained to think in tokens before answering. More accurate on hard tasks, slower and pricier.
updated 23 Sept 2026
Here's an experiment that was actually run. Take a base model that has
never seen a worked example of reasoning. Give it hard math problems with
known answers. Ask it to put its thinking inside <think> tags and its
answer after. Then score only the final answer: right gets a reward, wrong
gets nothing. Nobody grades the thinking. Nobody tells it how to reason.
What would you expect to happen to the thinking?
What the model did on its own
That's roughly how DeepSeek trained R1-Zero in 2025, and it's the most detailed public account we have of how a reasoning model gets made. Over thousands of training steps, three things happened.
Accuracy on a hard math competition (AIME 2024) went from 15.6% to 77.9%.
The thinking got longer. Nobody asked for that. The model found that longer reasoning paid off, and its responses grew to hundreds, then thousands, of tokens.
And it started checking itself. At some point the word "wait" suddenly became common in its thinking, as it caught a step and went back over it. The authors called it an "aha moment".
So that's a reasoning model: one trained, during post-training, to write a long stretch of thinking before it answers, and rewarded for thinking that ends in right answers. OpenAI's o1 and DeepSeek's R1 were the first to ship this way, and most labs followed during 2025.
Why a plain right-or-wrong check and not a smarter judge of the reasoning? DeepSeek had seen models learn to game learned reward models during long training runs. A correctness check is much harder to game. The flip side is that this works best where answers can be checked automatically: math with known answers, code with unit tests. For open-ended writing there's no cheap check, which makes the training much harder to apply.
Isn't this just chain-of-thought?
It looks like it. With chain-of-thought prompting we ask a regular model to think step by step, and it writes its working into the answer. Same idea of scratch paper.
The difference is the training. A regular model was never rewarded for working that lands on the right answer; it's imitating what working looks like. A reasoning model was trained on exactly that. And the thinking comes back as its own block, separate from the answer your users see.
Thinking is spending compute at answer time
Every thinking token is another pass through the network before the model commits. People call this test-time or inference-time compute.
Does more thinking always help? No. A 2024 study (on earlier ways of spending compute at answer time, before reasoning models were public) found that on easy and medium questions, a small model allowed to think more could beat a model 14 times its size. On the hardest questions, extra thinking barely helped, and the bigger model won. So thinking seems to help most on problems the model can already sometimes solve.
The models also adjust on their own, spending fewer tokens on simple tasks and more on hard ones. Not perfectly; R1 still overthinks easy questions sometimes.
What it does to your bill
Here's the part that matters when you build. As of 2026-09, OpenAI and Anthropic agree on the basics:
- Thinking is billed as output tokens, and it counts towards your output limit and your context window.
- You never see the raw thinking. At most you get a summary, and on Claude you're billed for the full thinking, not the summary.
- There's a dial. Both have an effort setting that makes the model think less, faster and cheaper. But effort is a hint. Only the output token limit is a hard cap.
Thinking runs anywhere from a few hundred to tens of thousands of tokens. On OpenAI's API, if it hits your output limit while still thinking, you can pay for the input and the thinking and get no visible answer at all. OpenAI suggests reserving at least 25,000 tokens when you start out. So check the usage data (that's where the cost hides) and handle responses that come back cut off.
Defaults differ, and they change fast. GPT-5.5 and 5.6 default to medium effort. Claude Opus 5.5 and Sonnet 5 have thinking on by default, and Opus 5.5 won't let you turn it off. Claude's older fixed thinking budget is rejected by Claude 4.7 and later. Check the docs for the exact model.
When to use one, and how to prompt it
OpenAI's way of putting it works well: reasoning models are the planners, regular models the workhorses. Use a reasoning model for complex, ambiguous, multi-step work where accuracy matters more than speed. Use a regular model, or low effort, for lookups, classification and chat. Many systems use both, a reasoning model to plan and regular models to carry out the steps. Start with low or medium effort and raise it only if your own evals get better.
Prompting changes too. Don't ask them to think step by step; they already do, and old tricks like that can even make things worse. Try without examples first. DeepSeek found few-shot examples consistently made R1 worse. Give the goal, the constraints and the output format, and let the model work out the steps.
Back to the "aha moment"
So the model learned to say "wait" and go back over its work. Does that mean we can read its thinking to see why it answered? Be careful. With chain-of-thought, the written reasoning doesn't always reflect what drove the answer, and both providers only show a summary anyway.
What we do know is that the reasoning is good enough to teach. DeepSeek took 800,000 examples of R1's thinking and used them to fine-tune small open models, with no reinforcement learning at all. The smallest, 1.5 billion parameters, scored 28.9% on that same math competition, against 9.3% for the 2024 GPT-4o. How far that copying can go is the question behind distillation.
Further reading
- DeepSeek-R1, DeepSeek-AI, 2025. The experiment above, in full. Read section 2.3 for the aha moment.
- Reasoning and Inference-Time Scaling, Nathan Lambert, 2026. The plainest explanation of rewarding checkable answers, and how it links to thinking longer.
- Scaling LLM Test-Time Compute Optimally…, Snell et al., 2024. When thinking more beats a bigger model, and when it doesn't.
- Reasoning models, OpenAI docs. Effort levels, billing and the 25,000-token advice.
- Thinking, Anthropic docs. How Claude's thinking is switched on, summarised, billed and steered.
- Reasoning best practices, OpenAI docs. Planners versus workhorses, and how prompting changes.