The Claude Model Ladder: Pick the Cheapest Model That Passes, Then Price the Month
Three SupportDesk workloads all run on Opus for $8,820 a month. An eval ladder keeps the cheapest model that passes per workload, batch prices the one that can wait, and the planned month comes to $3,000.
What you will learn
- Use four levers in order: evals, effort, cache and batch
- Walk a model ladder from Haiku up and stop at the first model that reaches the eval bar
- Price one steady-state call from its usage fields, then multiply by monthly volume
- See how volume multiplies the price of the rung you chose
Before you start
- Choosing Opus, Sonnet or Haiku
- Prompt caching basics
- Basic Python
A platform lead asks one question: what will this cost at volume? The easy answer is one model for everything. In this article you choose the model per workload instead, with an eval ladder, a cache, a batch and the volume. Test the rung, then price the month.
One choice, made on day one
SupportDesk has three workloads:
- Triage: 2,000,000 calls a month.
- Reply: 600,000 calls a month.
- Review: 40,000 calls a month, the smallest of the three.
All three run on Opus 5.5. It was a sound first choice, and nobody went back to it. One month of that costs $8,820, and nobody asked whether a cheaper model would pass. Starting capability-first is sound. Stopping there is the mistake.
Match the vehicle to the load
Think of a delivery fleet. An envelope goes by bike courier: that's Haiku 5.5, which the docs rate as the fastest. A sofa goes in a van: Sonnet 5.5, rated fast. A machine part needs a freight truck: Opus 5.5, rated moderate. You can start with the truck if you like. Then test whether the van does the job. (The latency words are the docs' own, relative to the lineup. For what each model is good at, see choosing Opus, Sonnet or Haiku.)
Four levers, in order
- Evals. A test set built from your own traffic.
- Effort. A dial inside one model, often a better lever than switching models.
- Cache. A repeated prefix is read back at a fraction of the input price.
- Batch. Half price, when the answer can wait.
Judge each choice by the price per completed task, not the price per token, and test again at every model release. The model is one lever of four, and the eval decides how far to pull it.
The rate card
The project runs against a stand-in: the Anthropic SDK on an httpx mock transport with scripted replies and usage (including cache fields), so no API key is needed and the replies show the design, not a real model's quality. The eval scores, volumes and token sizes are made-up scenario values. The rates in rates.py come from the Claude docs Pricing page:
"""The rate card, in dollars per million tokens (Claude docs, Pricing page). Haiku 5.5 rates are for prompts up to 100,000 tokens."""
RATES = { # input, 5m cache write, cache read, output
"claude-haiku-5-5": {"input": 0.10, "cache_write": 0.125, "cache_read": 0.01, "output": 0.50},
"claude-sonnet-5-5": {"input": 2.00, "cache_write": 2.50, "cache_read": 0.10, "output": 10.00},
"claude-opus-5-5": {"input": 4.00, "cache_write": 5.00, "cache_read": 0.20, "output": 20.00},
}
BATCH = 0.5 # the Batch API charges half price on input and output
def call_cost(model, usage, batch=False):
"""Dollars for one call: tokens in each usage field times that field's rate."""
r = RATES[model]
dollars = sum(usage[f] * r[f] for f in r) / 1_000_000
return dollars * BATCH if batch else dollars
One call costs its tokens times the rate, field by field: input, cache write, cache read and output. Batch is a multiplier of one half.
The planner
planner.py holds the ladder, cheapest first, and three functions:
"""Pick the cheapest model that passes the eval."""
import rates
# cheapest first
LADDER = ["claude-haiku-5-5", "claude-sonnet-5-5",
"claude-opus-5-5"]
FIELDS = ("input", "cache_write", "cache_read", "output")
def usage_of(r):
u = r.usage
return {"input": u.input_tokens,
"cache_write": u.cache_creation_input_tokens,
"cache_read": u.cache_read_input_tokens,
"output": u.output_tokens}
# Pass rate on one model, plus a steady-state call's usage
def evaluate(client, model, w):
passed, steady = 0, []
for i, expected in enumerate(w.cases):
system = [{"type": "text",
"text": f"SupportDesk {w.name} prompt",
"cache_control": {"type": "ephemeral"}}]
r = client.messages.create(
model=model, max_tokens=512, system=system,
messages=[{"role": "user",
"content": f"[{w.name}] case {i}"}])
passed += r.content[0].text.endswith(expected)
if i > 0:
steady.append(usage_of(r))
profile = {f: sum(u[f] for u in steady) / len(steady)
for f in FIELDS}
return passed / len(w.cases), profile
# Walk the ladder; stop at the first rung that reaches the bar
def pick(client, w):
for model in LADDER:
score, profile = evaluate(client, model, w)
print(f" {w.name:<7} {model:<18} pass {score:.0%} "
f"(bar {w.bar:.0%})")
if score >= w.bar:
return model, score, profile
raise RuntimeError("no rung reaches the bar: eval again")
# One steady call times calls, halved by batch
def monthly(w, model, profile):
cost = rates.call_cost(model, profile, batch=w.batch_ok)
return cost * w.calls
evaluateruns every eval case on one model and scores each reply against the expected answer, giving the pass rate. It keeps the usage of the calls after the first, because the first call writes the cache; the monthly price uses a steady-state call.pickwalks the ladder and stops at the first rung that reaches the workload's bar. If no rung passes, it raises instead of guessing.monthlyprices one steady call, multiplies by the volume, and halves it when the workload can run in batch.
Each workload in workloads.py carries its volume, token sizes, pass bar, and whether the answer can wait:
WORKLOADS = [
Workload("triage", 2_000_000, 1500, 200, 20, 0.90, False, [LABELS[i % 4] for i in range(20)]),
Workload("reply", 600_000, 1500, 400, 250, 0.90, False, [f"reply-{i}" for i in range(20)]),
Workload("review", 40_000, 0, 6000, 900, 0.90, True, [f"finding-{i}" for i in range(20)]),
]
Two plans, one month
Here is what run_all.py printed:
naive plan: Opus 5.5 for everything
triage claude-opus-5-5 $ 3,000 a month
reply claude-opus-5-5 $ 4,140 a month
review claude-opus-5-5 $ 1,680 a month
naive total $8,820
planned: cheapest model that passes the eval
triage claude-haiku-5-5 pass 95% (bar 90%)
reply claude-haiku-5-5 pass 70% (bar 90%)
reply claude-sonnet-5-5 pass 90% (bar 90%)
review claude-haiku-5-5 pass 40% (bar 90%)
review claude-sonnet-5-5 pass 75% (bar 90%)
review claude-opus-5-5 pass 95% (bar 90%)
triage claude-haiku-5-5 $ 90 a month
reply claude-sonnet-5-5 $ 2,070 a month
review claude-opus-5-5 $ 840 a month (batch)
planned total $3,000 | saving 66%
triage volume x3
naive $14,820 | planned $3,180
Workload by workload:
| Workload | Rung that passes | Planned a month | On Opus a month |
|---|---|---|---|
| Triage | Haiku 5.5 (95%) | $90 | $3,000 |
| Reply | Sonnet 5.5 (90%) | $2,070 | $4,140 |
| Review | Opus 5.5 (95%), in batch | $840 | $1,680 |
| Total | $3,000 | $8,820 |
Review needs Opus, so the model stays. But its answer can wait, so it runs in batch at half price. The planned total is $3,000, 66 percent less. Same three workloads: the eval picks the model, and batch prices the one that can wait. For routing on cost per correct answer in live traffic, see LLM model routing by cost per win.
The model choice sets the slope
Now triple the triage volume. The naive bill climbs from $8,820 to $14,820, so the Opus plan adds $6,000. The planned bill goes from $3,000 to $3,180, adding $180.
Volume multiplies the price of the rung you chose. Once the plan is live, track the real bill against it; see Claude usage and cost tracking.
The trap: shortcuts that skip a measurement
A fleet of workloads runs on one model, and the bill is too high. Three shortcuts are tempting:
- Move every workload one tier down. Review would drop to Sonnet, which scored 75 percent against a 90 percent bar.
- Compare models by list price per token. The price that matters is per completed task.
- Shorten the prompts, keep Opus, and hope the quality holds.
Each one skips a measurement. The architect's answer is to evaluate each workload up the ladder, then price the month with cache and batch at the volume you expect.
Quick recap
| Step | What it decides |
|---|---|
| Evals | The rung, one workload at a time |
| Ladder | Keep the cheapest model that reaches the bar |
| Cache and batch | The price of each steady call, and half price for work that can wait |
| Volume | The slope: it multiplies whatever rung you chose |
The project files for this lesson are in the community, free to join.
Try it yourself
In workloads.py, set batch_ok to True for triage, as if the labels could wait a day. Predict the new triage line before you run it. Then raise the reply bar from 0.90 to 0.95 and see which rung it lands on and what that does to the planned total.
Related course on Udemy
Claude Certified Architect - Professional (CCAR-P) Exam Prep
Architecting with Claude: design, models, context, integration, evals, governance and stakeholders.View on Udemy ↗: Claude Certified Architect - Professional (CCAR-P) Exam Prep (paid course, opens in a new tab)Related posts
The Claude Messages API: Your First Call, Field by Field
One request in, one Message out. The four fields of a Messages API call (model, max_tokens, system, messages), how to read content blocks, stop_reason and usage, and why every turn resends the history.
Claude Tool Use: How tool_use and tool_result Work in the Messages API
Follow one order question through Claude's tool round trip: define a tool, read the tool_use block, run your own function and send a matching tool_result back, including parallel calls and is_error.
Claude Client SDKs Wrap One REST API: Raw HTTP, Python, TypeScript and Async Calls Compared
Every Claude client SDK wraps the same REST request: a POST to /v1/messages with a JSON body. See it built by hand, through the Python and TypeScript SDKs, as typed errors, and as async calls that wait together.
Anthropic SDK Timeouts, Retries and Error Classes: Configure the Client Once, Then Give 429, 529, 400 and Timeouts Their Own Move
Configure the Anthropic SDK client (timeout, max_retries, with_options, async, pagination), see which errors it retries by itself, then repair a retry wrapper so a 429, a 529, a 400 and a timeout each get the move the docs support.
