Skip to content
Forward Deployed

Forward Deployed
Lessons and contents
Learn

Reasoning-effort levers and cost

Source
From the RAG & Agents Engineering course
By
Sourav Banerjee
Last updated
9 Nov 2026

Report an issue

Cost vs accuracy

reasoning_effort changes one thing: how many reasoning tokens the model is willing to spend before it commits to an answer. The model, the prompt and the output format stay the same. More reasoning tokens mean more latency and more cost at the output rate, and a better answer only when the task had something to deliberate about. The notebook sweeps o4-mini at low, medium and high; the installed openai 2.54.0 also types none, minimal, xhigh and max, and the notebook says to trim the list to what your model accepts.

The sweep is six problems at three levels with TRIALS = 1: 18 calls, a few cents. The problems mix easy and hard on purpose (a train arrival time, retry backoff, the deployment puzzle from lesson 3 of T2.2, LRU eviction, a syllogism, a coin-weighing puzzle), because one question gives a coin flip, not a measurement.

The effort sweep Six problems run through o4-mini at low, medium and high effort and are graded by substring. With the lab’s representative inputs each level gives a row: low 4 of 6 at $11.44, medium 5 of 6 at $31.24, high 5 of 6 at $79.64 per 10,000 answers. The marginal table prices each step: low to medium $1.19 per point, medium to high no gain, so the knee is medium. 6 problems Pick effort Call o4-mini Grade mixed easy and hard low, medium, high 18 calls in all expected text in reply per 10,000 answers low: 4 of 6, $11.44 medium: 5 of 6, $31.24 high: 5 of 6, $79.64 next effort Marginal step low to medium: $1.19 a point medium to high: no gain knee: medium
  1. Six problems, some a competent model solves without thinking and some that need the working.
  2. Pick the first effort level, low.
  3. Send every problem to o4-mini with that reasoning_effort. Three levels make 18 calls.
  4. A reply is correct when it contains the expected text.
  5. The level becomes one row: accuracy, seconds, mean reasoning tokens and cost. In the lab, low gets 4 of 6.
  6. Repeat at medium and high. The bill keeps climbing; accuracy stops at 5 of 6.
  7. Price each step up in dollars per accuracy point. Medium to high buys nothing.
  8. The knee is the last step you would pay for: medium, at a $2 threshold.

Each step up the dial gets one line in the notebook's marginal table:

$ per +1pp = (cost of this level - cost of the level below) / (accuracy gain * 100)

A step with no accuracy gain reads no gain, and the notebook's rule is that every step after one is pure cost. The knee is the last step whose price per point you would pay. The usual shape, in the notebook's words, is "a step then a plateau": a real gain from low to medium, much less from medium to high, while cost and latency keep climbing.

The interactive lab prices that sweep with the notebook's own cost and marginal code, adds gpt-4o-mini from lesson 3 of T2.2 as the first rung, and scales each figure to 10,000 answers. The notebooks save no outputs, so the accuracy and reasoning-token inputs are representative: 3, 4, 5 and 5 problems right, and 250, 700 and 1,800 reasoning tokens per call. The prompt and answer tokens are counted from the notebook's six problems. With those inputs:

Setting Correct of 6 Hidden share of output Per 10,000 answers Step up from the row above
gpt-4o-mini 3 0.0% $0.06
o4-mini, low 4 99.5% $11.44 +17 points, $0.68 per point
o4-mini, medium 5 99.8% $31.24 +17 points, $1.19 per point
o4-mini, high 5 99.9% $79.64 no gain
Interactive lab: Where effort stops paying. Open full screen (opens in a new tab)

Three things to take from the table:

  • The knee depends on what a point is worth to you. At $2 per point per 10,000 answers the lab stops at medium. Below $1.19 it stops at low, and below $0.68 the fast model wins. Going to high costs $48.40 more per 10,000 answers than medium for nothing.
  • Six problems make a coarse ruler. Each problem is 17 points, so one flipped answer moves the knee. The notebook's TRIALS raises the count at linear cost; a production sweep wants 20 or more questions drawn from real traffic.
  • Audit the grader before the dial. The notebook grades by substring: the expected text must appear in the answer. Its LRU problem expects c, but in a 4-entry LRU cache with accesses A B C D A E, inserting E evicts B; C goes only when B comes back. A model that answers B is marked wrong at every level and caps at 5 of 6, while a wrong C, or any reply containing the letter c such as "B is evicted", earns the point.

When effort is the wrong lever

The notebook's last task cannot be solved by thinking: What was the total refund value processed by our EU billing service last Tuesday?, with the instruction to reply INSUFFICIENT DATA when the data is missing. Every level should reach the same reply, and the higher levels pay more reasoning tokens to get there. Flat accuracy with climbing reasoning tokens is the signature of the wrong lever; the lab's Wrong lever shape shows its bill.

The notebook's table of real fixes, as a chain:

Diagram: Is a fact missing?; Retrieval, a tool call or a database; Is the question ambiguous?; A clearer prompt or a required output schema; Is the task mechanical?; A non-reasoning model or plain code; Genuinely hard: now raise effortDiagram: Is a fact missing?; Retrieval, a tool call or a database; Is the question ambiguous?; A clearer prompt or a required output schema; Is the task mechanical?; A non-reasoning model or plain code; Genuinely hard: now raise effort

Only the last box is an effort problem. For the Larkspur assistant, How much was my last refund? is the first box: the amount lives in the billing system, so the fix is a tool call to the account API (T7.1), and Can I get a refund after 45 days? is the last box, where effort is worth sweeping.

Run the notebooks

The code for this lesson is in these notebooks. Colab runs one in your browser: install the packages its first cell imports and set the API keys it reads. To run every notebook as written, clone the repository and use its uv environment.

Notebook GitHub Colab
Reasoning Effort Levers Open on GitHub Open in Colab

Key Takeaways

  • reasoning_effort changes only how many reasoning tokens the model spends. Sweep it, price each step in dollars per extra accuracy point, and stop at the last step you would pay for.
  • Expect a step then a plateau. Six problems make a coarse ruler, so use 20 or more real questions and audit the grader before trusting the knee.
  • Flat accuracy with climbing reasoning tokens means effort is the wrong lever. Fix missing facts with retrieval or a tool, ambiguity with a clearer prompt, and mechanical tasks with a cheaper model or code.

Check yourself

1. How does the notebook price each step up the effort dial, and when does a step count as pure cost?

Each step's price is the cost of that level minus the cost of the level below, divided by the accuracy gain times 100: dollars per extra percentage point. A step with no accuracy gain reads no gain, and every step after it is pure cost. The knee is the last step whose price per point you would pay.

2. Using the lab's table, which setting do you pick if one extra accuracy point is worth $1 per 10,000 answers?

o4-mini at low. The step from gpt-4o-mini to low costs $0.68 per point, which is under $1; the step to medium costs $1.19 per point, which is over it. High adds no gain and costs $48.40 more per 10,000 answers than medium.

3. Across low, medium and high, accuracy stays flat while reasoning tokens climb. What does that signal for a question such as last Tuesday's EU refund total?

Effort is the wrong lever: the fact is missing, so every level reaches INSUFFICIENT DATA and the higher ones pay more to get there. Fix it with retrieval, a tool call or a database, such as a tool call to the account API (T7.1) for a customer's last refund. Raise effort only for a task that is genuinely hard.

Rate your confidence and keep notes on the module page.