01Chapter 1: Step-by-step reasoning in language modelsThis chapter covers chain-of-thought prompting, the technique that reasoning models later built into the model itself. You will see why writing out intermediate steps improves answers, which variants exist, and where the technique fails. The later chapters on reasoning tokens, effort levels and budg6 min read
02Chapter 2: Spending compute at inference timeThis chapter assumes you have called an LLM API from code, know what tokens, context windows and max output tokens are, and can read short Python programs. It follows the chapter on step-by-step reasoning and comes before the chapter that defines reasoning models.7 min read
03Chapter 3: What a reasoning model isThis chapter assumes you have called an LLM API from code, that you know what tokens, context windows and maximum output tokens are, and that you can read short Python programs. It builds the working model that the rest of the tutorial relies on. Later chapters cover the controls (effort levels, thi7 min read
04Chapter 4: Reasoning tokens: hidden, billed and countedThis chapter assumes you have called an LLM API from code and can read Python. It also assumes you know what tokens, context windows and a maximum output setting are. The previous chapters covered what a reasoning model is. This chapter covers what its thinking costs you in tokens, where those token6 min read
05Chapter 5: Setting an effort levelThis chapter covers the effort parameter: what it controls, how to set it in the OpenAI Responses API, how to confirm it changed anything, and which mistakes to avoid. It assumes you can call an LLM API from Python, that you know what tokens, context windows and max output tokens are, and that you k6 min read
06Chapter 6: Setting a thinking token budgetThis chapter assumes you can call an LLM API from Python, know what tokens, context windows and max_tokens are, and have read the earlier chapters on reasoning tokens and effort levels. Here you will learn how a thinking token budget works, how to set one, and what can go wrong.6 min read
07Chapter 7: Output limits when reasoning shares the budgetYou should already know what a token is, what a context window is, and what a maximum output token setting does in a standard chat call. You should also have read the earlier chapters on reasoning tokens and on effort levels and thinking budgets. This chapter covers one consequence of that design: t6 min read
08Chapter 8: Seeing the reasoning: summaries and thinking blocksReasoning models think before they answer, but the API does not always show you that thinking. This chapter covers what each major API returns, how to request it, and what you can and cannot do with it.6 min read
09Chapter 9: Cost and latency trade-offsThis chapter assumes you can call an LLM API from Python, know what input and output tokens are, and have read the earlier chapters on reasoning tokens and effort settings. It covers what extra thinking costs in money and waiting time, how to estimate both before you ship, and which levers reduce th7 min read
10Chapter 10: Prompting reasoning modelsThis chapter assumes you have called an LLM API from Python, that you know what tokens and max output tokens are, and that you have written prompts for standard chat models. It also assumes you know that a reasoning model spends hidden reasoning tokens before it answers. Here you will learn how to c6 min read
11Chapter 11: Choosing when to reason and how muchYou have called an LLM API from Python and know what tokens, context windows and max output tokens are. You have read the earlier chapters on reasoning tokens, effort levels and thinking budgets, so you know how to set those parameters. This chapter covers the decision: whether a request should use 7 min read
12Chapter 12: Overthinking and diminishing returnsThis chapter assumes you have called a reasoning model through an API, that you know the effort and thinking-budget settings from the earlier chapters, and that you can read short Python functions. It covers what happens when you give a model more thinking than a task needs, how to spot that, and ho7 min read
13Chapter 13: Measuring effort settings on your own taskThis chapter assumes you can call an LLM API from Python and know what tokens and max output tokens are. It also assumes you have read the earlier chapters on effort levels, thinking budgets and cost. Here you will build a small experiment that picks an effort setting from measurements instead of ha6 min read