# 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. Free notes, key concepts,...

Canonical: https://www.internhack.in/roadmaps/tracks/ai-engineer/reasoning-models
Last updated: 2026-11-28

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](https://www.internhack.in/roadmaps/tracks/ai-engineer/sampling-and-decoding)

**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](https://docs.anthropic.com/en/docs/build-with-claude/extended-thinking) (Anthropic)
- [OpenAI docs: reasoning models](https://platform.openai.com/docs/guides/reasoning) (OpenAI)
- [Gemini API: thinking](https://ai.google.dev/gemini-api/docs/thinking) (Google)

Previous: [Sampling, Temperature and Determinism](https://www.internhack.in/roadmaps/tracks/ai-engineer/sampling-and-decoding) · Next: [The Model Landscape and Choosing a Model](https://www.internhack.in/roadmaps/tracks/ai-engineer/choosing-models)

## More in How LLMs Work (An Engineer's View)

- [Tokens and Context Windows](https://www.internhack.in/roadmaps/tracks/ai-engineer/tokens-and-context)
- [Transformers and Attention, Intuitively](https://www.internhack.in/roadmaps/tracks/ai-engineer/transformers-attention)
- [How LLMs Are Trained and Aligned](https://www.internhack.in/roadmaps/tracks/ai-engineer/how-llms-are-trained)
- [Sampling, Temperature and Determinism](https://www.internhack.in/roadmaps/tracks/ai-engineer/sampling-and-decoding)
- [Reasoning Models and Thinking Budgets](https://www.internhack.in/roadmaps/tracks/ai-engineer/reasoning-models)
- [The Model Landscape and Choosing a Model](https://www.internhack.in/roadmaps/tracks/ai-engineer/choosing-models)

## Related

- [Roadmaps](https://www.internhack.in/roadmaps)
- [AI Engineer Roadmap](https://www.internhack.in/roadmaps/tracks/ai-engineer)
