Claude API Pricing: How Do Medium, High and Max Change Task Cost?

Calculate cost per accepted result, including paid attempts that fail your tests. In the constructed example below, Medium costs $0.1600, High $0.1500 and Max $0.2222 per accepted result. These figures demonstrate the accounting with assumed usage and pass counts.

What effort changes in the bill

Anthropic’s effort documentation describes a setting that affects response token usage, including thinking and tool arguments. Set output_config.effort to compare levels while keeping the model, task, tools and output budget fixed. The documentation does not specify a universal cost ratio between Medium, High and Max.

For standard Fable 5.2 requests with uncached input, calculate (8 × input_tokens + 40 × output_tokens) / 1,000,000 USD using Anthropic’s model overview. Rates checked 2026-11-24. The worked example uses no cache writes, cache reads, server tools, Fast mode, Batch or geographic premiums. For a request with caching, use the five-component usage calculation for each attempt before adding the totals.

One task, three hypothetical usage ledgers

Use the same task at every level: implement merge_intervals(intervals) for closed integer intervals, merging overlaps and touching endpoints, sorting the result and preserving the input. Count a run as accepted only after every specified test passes. Here is a deliberately constructed scenario of ten independent runs per level. Every token count and accepted-run count in this table is an illustrative input chosen for the arithmetic. No model calls or benchmark measurements produced this table.

Illustrative inputs and calculated costs, USD
Effort labelInput / attemptOutput / attemptCost / attemptTotal spendAccepted / attemptedCost / accepted
Medium5,0001,000$0.0800$0.80005/10$0.1600
High5,0002,000$0.1200$1.20008/10$0.1500
Max5,0004,000$0.2000$2.00009/10$0.2222

Medium’s example attempt costs (5,000 × 8 + 1,000 × 40) / 1,000,000 = $0.0800. Ten attempts cost $0.8000, divided by five assumed accepted results gives $0.1600 each. High’s inputs yield $0.1200 per attempt, $1.2000 for ten and $0.1500 per accepted result when eight pass. Max’s inputs yield $0.2000 per attempt, $2.0000 total and $0.2222 per accepted result when nine pass, rounded to four decimals.

High is $0.0100 lower per accepted result than Medium in this constructed scenario. That follows from 0.1500 − 0.1600 = −0.0100. The example’s High-versus-Medium attempt-cost ratio is 0.1200 / 0.0800 = 1.5, while its accepted-result ratio is 0.1500 / 0.1600 = 0.9375. These are properties of the stated inputs. To compare your workload, replace them with recorded usage and actual acceptance results.

A small acceptance sheet for the same task

InputExpected result
[][]
[[1,3],[2,6],[8,10]][[1,6],[8,10]]
[[4,5],[1,4]][[1,5]]
[[1,10],[2,3]][[1,10]]
[[-3,-1],[-1,2]][[-3,2]]
[[2,2],[2,2]][[2,2]]

Also compare the input before and after the call to verify that it is unchanged. Fix this acceptance sheet before evaluating outputs. Use fresh copies of the same input and tests for each effort level. A truncated response or an implementation that fails any required check contributes its actual charge to spend and zero accepted results.

Replace the assumptions with your own ledger

effort,run_id,input_tokens,output_tokens,cache_write_5m,cache_write_1h,cache_read,accepted,charge_usd
medium,...,...,...,...,...,...,...,...
high,...,...,...,...,...,...,...,...
max,...,...,...,...,...,...,...,...

For each effort level, sum the charge of every attempt and divide by the count of accepted results. If your task is an agent session with multiple API calls, first sum all calls in that session, including the context resent on later turns. Associate that session total with one task result, then aggregate tasks by effort.

cost_per_accepted = sum(all_attempt_charges) / accepted_results
difference = candidate_cost_per_accepted − baseline_cost_per_accepted

If accepted results equal zero, report the spend and “no accepted result” for that level. Keep the ratio undefined. Use the final usage records for billing, since visible answer length alone leaves out other generated tokens. Record the model ID, effort, response stop reason and any retries beside the ledger, so the cost difference can be traced to the original responses.