Reasoning Models and Thinking Budgets
Models that think before answering trade latency and tokens for accuracy on hard problems; know when that trade is worth it.
Intermediate · about 3 hours · difficulty 2/5
Learn first: Sampling, Temperature and Determinism
Reasoning models (sometimes called thinking models) generate an internal chain of reasoning before producing the final answer. Most major providers now offer this, either as separate model families or as a toggle with a configurable thinking budget.
When they help
- Multi-step math, logic, planning and debugging.
- Agentic tasks where the model must decide what tool to call next and recover from errors.
- Complex code generation and review.
When they do not
- Simple extraction, classification, rewriting or chit-chat. Extra thinking adds latency and cost without better answers.
- Latency-critical paths such as autocomplete or voice.
Engineering implications
- Tokens: thinking tokens are usually billed as output tokens, so costs can rise sharply. Set a budget.
- Latency: time to first visible token increases. Stream progress or show a thinking indicator in the UI.
- Prompting changes: you often need less step-by-step instruction; state the goal and constraints clearly and let the model plan.
- Visibility: some providers return summarized reasoning, some hide it. Do not build product logic that depends on parsing raw reasoning text.
Good enough to move on
You can enable reasoning on a model API, set a budget, and measure whether it improves accuracy on a small set of hard tasks enough to justify the extra cost and latency.
Key concepts
- Thinking vs non-thinking modes
- Thinking budgets and effort settings
- Cost and latency trade-offs
- Prompting reasoning models
- Test-time compute concepts
Mini project
Pick 15 tricky logic or math questions, run them with reasoning off and on at two budgets, and produce a table of accuracy, tokens used and latency.
Check yourself
For a customer support classifier that routes tickets into five categories, would you enable extended reasoning? Justify with cost and latency.
Free resources
- Anthropic docs: extended thinking (Anthropic)
- OpenAI docs: reasoning models (OpenAI)
- Gemini API: thinking (Google)