Sub topic 11
Choosing when to reason and how much
What this chapter assumes
You 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 reasoning at all, and if so, how much.
Reasoning is a per-request choice
A reasoning model spends hidden tokens working through a problem before it answers. Those tokens are billed as output, they add latency, and they count against your output limit. You pay for them whether or not they improve the answer.
So the question is not "is the reasoning model better?" It is "does this request gain enough accuracy to justify the extra cost and wait?" The answer can differ between two requests that go to the same product. A support bot that classifies a message needs no reasoning. The same bot, asked to work out a refund across three overlapping promotions, may need a lot.
The decision has two steps:
- Decide whether to use reasoning at all.
- If yes, pick a starting effort level or budget, then adjust from measurements.
Step 1: does the task need reasoning?
Reasoning helps most when the answer depends on a chain of dependent steps, where an early mistake ruins the later ones. It helps little when the answer is retrieved, copied or judged by feel.
Tasks that usually benefit
- Multi-step arithmetic and word problems, such as scheduling, unit conversions and billing rules.
- Code that must satisfy several constraints at once, and debugging where the fault is not on the line that fails.
- Logic puzzles, constraint satisfaction and planning with ordering rules.
- Questions that require comparing several documents or clauses and resolving conflicts between them.
- Agent steps where choosing the wrong tool call is expensive to undo.
- Tasks where you can check the final answer but cannot easily check how the model reached it.
Tasks that usually do not
- Classification, tagging and routing with clear labels.
- Extraction of fields from text, where the answer is present verbatim.
- Rewriting, translating, summarizing and tone changes.
- Simple factual lookups and short chat replies.
- Anything where latency is the product, such as autocomplete or voice responses.
Reasoning does not add knowledge the model lacks. If the model does not know a fact, thinking longer produces a more elaborate wrong answer, and retrieval or a tool is the fix.
Signals that a task is hard
| Signal | What it suggests |
|---|---|
| A human would reach for scratch paper | Reasoning likely helps |
| A non-reasoning model is right some of the time on the same prompt | Reasoning likely raises the hit rate |
| The model gets the same prompt right or wrong across repeated runs | Instability points to a reasoning gap |
| Wrong answers are confident but have a flawed step | Reasoning can catch the flawed step |
| The answer is a label chosen from a short list | Reasoning probably adds cost only |
| The output is mostly a transformation of the input | Reasoning probably adds cost only |
Step 2: how much reasoning?
Effort levels and budgets are coarse controls. The model decides how much of the allowance to use, so a high setting on an easy question does not always burn the full budget. It still raises the ceiling, and ceilings produce occasional expensive outliers.
Start low and move up only when measurements show a gain. Starting high and moving down is the common mistake, because you rarely notice what you are overspending.
| Situation | Starting point |
|---|---|
| Simple task, but a reasoning model is already your default | Lowest effort available, or a small budget |
| Moderate multi-step task, user waiting | `low` effort, or a budget of about 1,024 to 2,000 tokens |
| Hard task, errors are costly, latency is flexible | `medium`, then test `high` |
| Batch or offline work with a verifiable answer | `high`, if accuracy gains justify the cost |
These are starting points, not rules. The next chapter covers measuring them on your own data. Providers have limits that shape your choices. For example, Anthropic's thinking budget has a minimum of 1,024 tokens, and max_tokens must be larger than budget_tokens.
A decision flow
Encoding the decision in code
If your application serves many kinds of request, put the policy in one function. That makes it visible, testable and easy to change when your measurements change. The sketch below is provider-neutral. It returns None when the standard path should be used, or an effort label that you map to your provider's parameter.
from dataclasses import dataclass
@dataclass
class TaskProfile:
steps_needed: int # rough count of dependent steps
checkable: bool # can code verify the final answer?
user_waiting: bool # is a person watching a spinner?
error_cost: str # "low", "medium" or "high"
def choose_effort(profile: TaskProfile):
"""Return None for a standard call, or "low", "medium" or "high"."""
if profile.steps_needed <= 1 and profile.error_cost == "low":
return None
if profile.error_cost == "high" and not profile.checkable:
return "high"
if profile.steps_needed <= 3 and profile.user_waiting:
return "low"
return "medium"
examples = {
"tag a support ticket": TaskProfile(1, True, True, "low"),
"compute a prorated invoice": TaskProfile(3, True, True, "medium"),
"review a contract clause": TaskProfile(8, False, False, "high"),
"nightly data reconciliation": TaskProfile(8, True, False, "medium"),
}
for name, profile in examples.items():
print(f"{name}: {choose_effort(profile)}")Running it prints:
tag a support ticket: None
compute a prorated invoice: low
review a contract clause: high
nightly data reconciliation: mediumThe order of the rules matters. The high-stakes, unverifiable case is checked before the latency rule, so a worried user waiting does not downgrade a risky decision. Whether that is the right order for your product is a judgment, and writing it as code forces you to make it explicitly.
To apply the result, translate the label into the provider call. With the OpenAI Responses API you pass reasoning={"effort": label}. With Anthropic you map labels to budgets, for instance {"low": 1024, "medium": 4000, "high": 12000}, and raise max_tokens above the chosen budget each time.
Routing across models
Choosing "no reasoning" does not have to mean the same model with reasoning off. Many teams keep two tiers:
- A fast standard model for classification, extraction and chat.
- A reasoning model for the requests that pass a difficulty check.
The difficulty check can be rules like the ones above, or a cheap model call that labels each request as simple or complex. A cheap classifier that is wrong 5% of the time sends some hard requests to the fast tier. Measure that error rate before trusting it, and consider a fallback: if the fast answer fails a validation step, retry on the reasoning tier.
Edge cases and common errors
- Applying reasoning to everything. Output tokens cost more than input tokens, and reasoning tokens are output tokens. A feature that makes a million simple calls a day can multiply its bill with no accuracy gain.
- Judging by one example. A single hard prompt that succeeds at
highand fails atlowis an anecdote. Models are nondeterministic, so run each setting several times on a set of cases. - Raising effort to fix missing information. If the prompt omits the data the model needs, more thinking will not supply it. Fix the context first.
- Ignoring tail latency. Average latency can look fine while a few requests think for a very long time. Watch the 95th percentile and set client timeouts that fit it.
- Truncated answers. If the output limit is too small, reasoning can use up the allowance and leave little or nothing for the visible answer. Raise the limit when you raise effort.
- Tuning once and never again. Models change. A setting that was needed for last year's model may be wasteful on a newer one. Re-run your comparison when you switch models.
- Streaming expectations. With reasoning on, users may see nothing for several seconds before the first visible token. If that delay is unacceptable, reduce effort or show a progress indicator.
A worked decision
Suppose you build an assistant that reads a customer's order history and decides whether a return qualifies under a policy with five conditions.
The task has several dependent steps: it compares dates, checks item categories and applies exceptions. An error means a wrongly denied or wrongly approved refund, so the error cost is medium to high. A rule engine could verify part of the result but not the interpretation of free-text notes. A user is waiting in a chat window.
A reasonable first setting is low effort for the live path, with a test of medium. In a batch job that audits past returns overnight, nobody waits, so high is affordable if it improves agreement with human reviewers. These are two different settings for the same task, because the latency constraint differs. This is why the decision belongs in code that sees the context, not in a single global constant.
Exercise
Exercise
A product makes 200,000 calls a day to extract an order number and a date from emails. Accuracy is 99% with a standard model. A teammate proposes switching all calls to a reasoning model at high effort "to be safe". What should you recommend, and what would change your mind?
Show answer
Keep the standard model. Extraction pulls values that are present in the text, so reasoning is unlikely to improve a 99% baseline, and it would raise cost and latency on 200,000 calls a day. To change the recommendation, measure the failures. If the remaining 1% come from ambiguous emails that need multi-step interpretation, route only those cases (for example, those that fail validation) to a reasoning model at low effort, and keep the standard path for the rest.
Exercise
You set an Anthropic thinking budget of 3,000 tokens with max_tokens of 3,000, and the final answers come back cut off or the request is rejected. What is wrong, and how do you fix it?
Show answer
maxtokens must be larger than budgettokens, and the thinking tokens share the output allowance with the visible answer. Raise max_tokens well above the budget, for example to 6,000 or more, so there is room for the answer after the thinking is done.
Exercise
Why is it better to start at a low effort level and move up than to start at high and move down?
Show answer
Overspending is hard to notice because high effort usually still returns correct answers. Starting low makes any accuracy gap visible in your measurements, so each step up is justified by a measured improvement instead of an assumption.