Topic 1 of 4 · 5 min read
Setting effort levels and thinking budgets
Goal: Choose an effort or thinking-budget setting per task by measuring quality, latency and cost at two or more levels.
A reasoning model lets the model think before it answers, and you control how much with one setting: an effort level or a thinking budget. Pick it per task by measuring, not by habit.
Check yourself · 1 of 3
What does an effort setting such as reasoning.effort control?
Why it matters
Thinking is not free. Every thinking token adds latency before the first visible word and adds to the output bill. The default is tuned for a typical request, not for yours. A support-ticket classifier and a migration planner should not share a setting.
The three styles of control
- Effort level. Claude takes
output_config.effort(levels fromlowup tohighand beyond, depending on the model). OpenAI takesreasoning.effort. Gemini takesthinking_level. You say how hard to try, and the model decides how many tokens to spend. - Adaptive thinking. The model decides for each request whether to think at all and how much. On current Claude models this is the recommended mode, and effort is your main control over it.
- Fixed budget. Older Claude models took
thinking: {type: "enabled", budget_tokens: N}. The budget had a minimum of 1,024 tokens and had to stay belowmax_tokens. Anthropic now marks this style as legacy, and newer Claude models reject it with a 400 error. Treat budgets as something you meet in older code.
Level names and defaults differ by vendor and by model, so read the page for the model you call.
How to choose
- Build a small eval set: 20 to 50 real inputs with a way to score the answers.
- Run it at two or more settings, for example
lowandhigh. - Record quality, median and slowest latency, and tokens per request.
- Take the cheapest setting whose quality is still acceptable. Re-run when you change model.
Before and after
# Before: one global setting copied from a demo
client.messages.create(
model=MODEL, max_tokens=4096,
output_config={"effort": "high"},
messages=[{"role": "user", "content": ticket_text}],
)
# After: effort chosen per task from the eval table
EFFORT = {"classify_ticket": "low", "plan_migration": "high"}
client.messages.create(
model=MODEL, max_tokens=4096,
output_config={"effort": EFFORT[task]},
messages=[{"role": "user", "content": ticket_text}],
)
What goes wrong
- Max everywhere. Top effort on easy tasks adds seconds and cost for no quality gain, and on some models it can overthink simple extraction.
- Copying a setting across vendors.
highon one platform is not the same amount of thinking ashighon another. - Changing effort without re-testing. A new model version may behave differently at the same level.
- Ignoring caching side effects. On Claude, changing effort or thinking settings between requests can invalidate prompt cache breakpoints.
Examples
An eval table decides the setting
A team tests three tasks at low and high effort on 30 inputs each.
| Task | Quality low | Quality high | p95 latency low | p95 latency high |
|---|---|---|---|---|
| Ticket tagging | 96% | 97% | 1.1 s | 4.8 s |
| SQL generation | 78% | 91% | 2.4 s | 9.0 s |
Tagging ships at low: one point of quality is not worth four extra seconds. SQL generation ships at high because 13 points of quality matter more than the wait.
Same intent, three vendors
{"anthropic": {"output_config": {"effort": "medium"}},
"openai": {"reasoning": {"effort": "medium"}},
"gemini": {"generation_config": {"thinking_level": "medium"}}}
The three fields look alike but are separate controls. Each vendor decides what medium costs, so measure each one.
Key points
- Effort or thinking level sets how hard the model tries; the model decides the actual number of thinking tokens.
- Adaptive thinking lets the model decide whether to think per request, and effort is the main control over it.
- Fixed budget_tokens is legacy on newer Claude models and is rejected there, so check the docs for your model.
- Choose a setting by running a small eval at two or more levels and comparing quality, latency and tokens.
- Level names are not portable across vendors; test each provider and model on its own.
Common mistakes
- Setting the highest effort everywhere because the demo used it.
- Choosing a level from a blog post instead of measuring your own inputs.
- Assuming a level name means the same thing on a different vendor or model.
- Passing a fixed thinking budget to a newer Claude model that rejects it.
Check yourself · 2 of 3
A team runs a 40-input eval at low and high effort. Quality differs by one point, but high is four times slower. What should they do for this task?
Check yourself · 3 of 3
As of 2026, new code calls a Claude model numbered 4.7 or later with thinking.type: "enabled" and a fixed budget_tokens. What happens?
Practice items, not counted towards your mastery.
Start here
- Effort (Claude) (opens in a new tab)DocsFree
The output_config.effort levels, which models support them and how effort shapes thinking depth, latency and cost.
- Building with extended thinking (Claude docs) (opens in a new tab)DocsFree
The manual budget_tokens rules (minimum 1,024, below max_tokens), tool-use behaviour and the move to adaptive thinking.
- Steering thinking and cost (Claude) (opens in a new tab)DocsFree
How adaptive thinking decides when to think, how to steer it, and how thinking tokens are billed.