Skip to content
AgenticAIWiki
  1. Learn
  2. Part 2
  3. 13. Chain of thought and output steering
  4. 13.6

Lesson 13.6 · 6 of 6 · 5 min read · Reviewed 24 Nov 2026

Reasoning models and effort settings

By the end, you can

  • Describe what a reasoning model does differently from prompting for chain of thought.
  • Choose an effort level or thinking budget for a task and check the choice with an eval.

Lessons 13.1 to 13.5 asked the model to reason in its visible reply. Reasoning models build that step in. Before the answer, the model writes a stretch of internal reasoning, often called thinkingExtended thinking: A mode in which the model reasons step by step in thinking blocks before giving its final answer., and then the final reply. Most providers now offer this, under names such as extended thinking or reasoning effort.

What you control

APIs expose the amount of thinking in one of two ways:

Control What you set Example
Thinking budget A maximum number of tokens the model may spend thinking “up to 8,000 thinking tokens”
Effort level A coarse setting the provider maps to an amount of thinking low, medium, high

Either way, thinking tokens are output tokensOutput tokens: The tokens the model generates in its reply, including any tool calls and thinking.. You pay for them and you wait for them, even when the API returns only a summary of the thinking or none at all.

Worked example: one app, three tasks

A finance assistant has three jobs. Illustrative results from a 50-case evalEval: A repeatable test that measures how well an AI system performs on a set of cases with defined success criteria. per task:

Task Low effort High effort Choice
Tag a transaction by category 97% 97%, 3x slower Low
Explain a single fee to a customer 91% 93% Low or medium
Reconcile two ledgers with rules and exceptions 62% 88% High

The same model, three settings. Effort pays off where the task has many dependent steps and checks. On a lookup or a label, it mostly adds latencyLatency: The time from sending a request until you get the response, or until the first token arrives when streaming..

Prompting a reasoning model

A reasoning model already plans its own steps, so the prompting style shifts:

  • State the goal, inputs and constraints clearly. “Reconcile these ledgers. Flag every mismatch over 5 credits. Rules are in <rules>.”
  • Skip scripted steps at first. “First do A, then B, then C” can box in a model that would have found a better path. Add guidance only if the eval shows a gap.
  • Keep the output format explicit. Thinking happens separately, so you still need to say what the visible answer should look like.
  • Do not ask for chain of thoughtChain of thought: Asking or allowing the model to reason step by step before giving its final answer. on top in the visible reply. It doubles the reasoning cost for little gain.

Choosing a setting

  1. Start low for high-volume or latency-sensitive tasks, and higher for complex, rare ones.
  2. Run your test set at two or three settings and record accuracy, latency and tokensToken: The unit a model reads and writes: a word, part of a word, a space or a symbol, mapped to an integer id..
  3. Pick the lowest setting that meets your target. Note it next to the prompt version (15.4).
  4. Re-check after a model upgrade, because the same label can mean a different amount of thinking.

On other providers

The control has a different name on each API. OpenAI reasoning models take a reasoning effort setting. Gemini thinking models take a thinking budget in tokens or a thinking level, depending on the model. Claude uses effort with adaptive thinking. All of them bill thinking as output tokens (3.2) and report the count in usage, so the per-route advice above carries over unchanged.

Common mistakes

  • One global setting. The cheapest fix for many slow apps is lowering effort on the easy endpoints.
  • Too small a token cap. If max_tokens is close to the thinking budget, the answer can be cut off after the thinking (14.8).
  • Treating thinking as an audit logAudit trail: A tamper-resistant record of who did what, when, and with which model and prompt version.. The thinking text, where you can see it, helps debugging, but it is not guaranteed to be a faithful record of how the answer was reached. Check the answer itself.
  • Assuming more is always better. Like chain of thought (13.4), more thinking can occasionally talk a model out of a correct simple answer. Measure.

Key points

  • Reasoning models think in a separate step before the visible answer; you control how much with a token budget or an effort level.
  • More effort usually helps hard multi-step tasks and wastes time and tokens on simple ones.
  • With a reasoning model, give a clear goal and constraints rather than scripting every reasoning step.
  • Set effort per task, not per app, and confirm each setting on your test set.
Hands-on labRuns in the Playground

Pick the lowest effort that passes

Choose a reasoning effort level per task from eval results, balancing accuracy targets against latency.

You will have: A per-task effort choice table, with the reason, from illustrative eval runs at three effort levels.

Steps

  1. Read the illustrative results: accuracy and median latency per task at low, medium and high effort.
  2. Complete choose so it returns the lowest effort that meets the task's accuracy target and latency budget.
  3. Return 'none meets target' when no level qualifies, so a person looks at the task.
  4. Print the choices and check they match the pattern in the lesson.

Done when

  • Transaction tagging chooses low; ledger reconciliation chooses high.
  • A task with no qualifying level prints 'none meets target'.
  • The script prints one line per task with its chosen effort.

Open in the Playground No API key needed.

Starter code (Python)
LEVELS = ["low", "medium", "high"]
# Illustrative eval runs: accuracy and median seconds per call at each effort level.
RESULTS = {
    "tag transaction":   {"target": 0.95, "budget_s": 2,  "low": (0.97, 0.8), "medium": (0.97, 1.6), "high": (0.97, 2.9)},
    "explain a fee":     {"target": 0.92, "budget_s": 5,  "low": (0.91, 1.2), "medium": (0.93, 2.4), "high": (0.93, 4.8)},
    "reconcile ledgers": {"target": 0.85, "budget_s": 60, "low": (0.62, 3.0), "medium": (0.78, 9.0), "high": (0.88, 25.0)},
    "draft legal reply": {"target": 0.95, "budget_s": 10, "low": (0.80, 2.0), "medium": (0.86, 5.0), "high": (0.90, 12.0)},
}

def choose(task):
    # TODO: return the first level in LEVELS whose accuracy >= target and latency <= budget_s.
    # Return "none meets target" if there is none.
    return "high"

for name, r in RESULTS.items():
    print(f"{name:18} -> {choose(r)}")
Show a solution
LEVELS = ["low", "medium", "high"]
# Illustrative eval runs: accuracy and median seconds per call at each effort level.
RESULTS = {
    "tag transaction":   {"target": 0.95, "budget_s": 2,  "low": (0.97, 0.8), "medium": (0.97, 1.6), "high": (0.97, 2.9)},
    "explain a fee":     {"target": 0.92, "budget_s": 5,  "low": (0.91, 1.2), "medium": (0.93, 2.4), "high": (0.93, 4.8)},
    "reconcile ledgers": {"target": 0.85, "budget_s": 60, "low": (0.62, 3.0), "medium": (0.78, 9.0), "high": (0.88, 25.0)},
    "draft legal reply": {"target": 0.95, "budget_s": 10, "low": (0.80, 2.0), "medium": (0.86, 5.0), "high": (0.90, 12.0)},
}

def choose(task):
    for level in LEVELS:
        acc, secs = task[level]
        if acc >= task["target"] and secs <= task["budget_s"]:
            return level
    return "none meets target"

for name, r in RESULTS.items():
    print(f"{name:18} -> {choose(r)}")
Quick checkA team moves every feature to the highest reasoning effort. Latency triples on a simple tagging endpoint with no accuracy change. What should they do?
How sure are you?
Pick an answer and how sure you are

Finished the chapter? Take the chapter check.