01Chapter 1: Step-by-step reasoning in language modelsChain-of-thought prompting asks a language model to write out intermediate steps before it gives a final answer. It is the idea that later led to reasoning models. This chapter covers what it is, why it helps, and where it stops working.3 min read
02Chapter 2: Spending compute at inference timeThis chapter assumes you have called an LLM API from code, know what tokens and context windows are, and can read short Python scripts. It covers one idea that the rest of the tutorial builds on. A model can improve its answer by doing more work when it answers, not only by being trained more.3 min read
03Chapter 3: What a reasoning model isThis chapter assumes you have called an LLM API from code, know what tokens, context windows and max output tokens are, and can read Python. It defines the term "reasoning model" and shows how to spot one in an API response.3 min read
04Chapter 4: Reasoning tokens: hidden, billed and countedThis chapter assumes you have called an LLM API from Python, know what tokens, context windows and max output tokens are, and can read short Python scripts. It covers what reasoning tokens are, how they show up in usage data, and where they surprise people.3 min read
05Chapter 5: Setting an effort levelThis chapter assumes you have called an LLM API from Python, know what tokens and max output tokens are, and have read the earlier chapters on reasoning models and reasoning tokens. Here you will set an effort level in a request and check what it changed.3 min read
06Chapter 6: Setting a thinking token budgetThis chapter assumes you have called an LLM API from Python and know what tokens, context windows and max_tokens mean. It also assumes you know that a reasoning model produces hidden reasoning tokens before its final answer. Here you will set a thinking budget in the Anthropic Messages API and rea3 min read
07Chapter 7: Output limits when reasoning shares the budgetThis chapter assumes you have called an LLM API from Python and know what tokens, context windows, and a maximum output setting are. It covers one narrow problem: reasoning tokens and the visible answer draw from the same output limit.3 min read
08Chapter 8: Seeing the reasoning: summaries and thinking blocksThis chapter assumes you can call an LLM API from Python, know what tokens and max output tokens are, and have read the earlier chapters on reasoning tokens, effort levels and thinking budgets.3 min read
09Chapter 9: Cost and latency trade-offsThis chapter assumes you can call an LLM API from Python and know what tokens, context windows and max output tokens are. It also assumes you have seen that reasoning models produce hidden reasoning tokens before the final answer.3 min read
10Chapter 10: Prompting reasoning modelsThis chapter assumes you can call an LLM API from Python, know what tokens and max output tokens are, and have written basic prompts. It covers how to prompt a model that already reasons before it answers.3 min read
11Chapter 11: Choosing when to reason and how muchThis chapter assumes you can call an LLM API from Python, know what tokens and max output tokens are, and have read the earlier chapters on reasoning tokens, effort levels and thinking budgets. Here you will turn those settings into a decision.3 min read
12Chapter 12: Overthinking and diminishing returnsThis chapter assumes you can call a reasoning model with an effort level or thinking budget, and that you know reasoning tokens are billed as output tokens. Those settings are covered in earlier chapters. Here the question is when more thinking stops helping.3 min read
13Chapter 13: Measuring effort settings on your own taskThis chapter assumes you can call a reasoning model API from Python. It also assumes you know what reasoning tokens, effort levels and thinking budgets are from the earlier chapters. Here you will turn the choice of an effort setting into a measurement.3 min read