Haiku, Sonnet, and Opus
Three names, three sizes of the same AI family. Learn what each one is good at, how they differ in speed, skill, and cost, and how to pick the right one for every job.
If you have used Claude, you have probably seen three unusual names in the model picker: Haiku, Sonnet, and Opus. They sound like words from a literature class, not from a software menu. Yet choosing between them is one of the most important decisions you make when you use or build with AI. It shapes how fast answers arrive, how good they are, and how much each one costs.
The idea behind the names is simple. Anthropic, the company that makes Claude, offers its AI in several sizes. A small one is quick and cheap. A medium one balances everything. A large one is the most capable, but it is slower and costs more. It is like choosing between a scooter, a car, and a truck: all three move you from place to place, and the right choice depends on the trip.
This guide explains the three tiers from the ground up. Every new term is explained when it first appears, every big idea gets an everyday comparison, and the advice is practical enough to use in real projects. Model versions and features change quickly, so for the very latest details, always check Anthropic’s official documentation at docs.claude.com and the Claude help center at support.claude.com.
1Three Names, One Family
Haiku, Sonnet, and Opus are three levels of the same AI family, built so you can trade a little power for a lot of speed, or the other way around.
What a model family is
A language model is a computer program trained on huge amounts of text so that it can read questions and write answers. A model family is a group of such models that come from the same maker, share the same general design and values, and differ mainly in size and strength. Claude is the family name. Inside it, Anthropic sorts its models into tiers, and the three main tiers are Haiku, Sonnet, and Opus.
The one-sentence version of each tier
Haiku is the smallest and fastest tier. It is built for quick answers at a low price, especially when you have a lot of requests to handle. Sonnet is the middle tier. It aims to be smart enough for most real work while staying fast and affordable. Opus is the largest tier. It is meant for the hardest problems, where getting the best possible answer matters more than saving time or money.
Think about how a hospital is organized. The nurse at the front desk handles quick, routine questions for a huge number of patients every day. The general doctor handles most illnesses well and sees patients without a long wait. The specialist is called in for the rare, complicated cases where deep expertise is needed. All three are trained medical people who care about patients, but you would not send every cough to the specialist, and you would not ask the nurse to perform surgery. Haiku, Sonnet, and Opus fit those three roles.
Where you can meet them
You can use these models in several ways. The Claude apps on the web, desktop, and phones let you chat with them, and you can switch models during a conversation. Claude Code is a tool that helps software engineers write and fix code. Developers can also build their own products using the Claude API, which is a way for one program to send questions to Claude and get answers back. Some cloud platforms, such as Amazon Bedrock and Google Cloud Vertex AI, also offer Claude models.
The tier name tells you the size class, and a version number tells you how new it is. A newer Sonnet can be better than an older Opus on many tasks. So always read both parts of a name, not just the poetic word.
2Where the Names Come From, and How the Family Grew
The names are not random. They hint at size, and the history shows how the tiers keep improving.
The meaning behind the words
All three names come from the world of writing and music. A haiku is a very short poem, traditionally just seventeen syllables long. A sonnet is a longer poem of fourteen lines with a careful structure. An opus is a large, major work, such as a symphony or a great book. So the order of the names is also the order of size: small, medium, large. You can remember the whole family just by thinking of a short poem, a longer poem, and a grand masterpiece.
Imagine three kinds of written messages. A haiku is like a quick text message: short, sharp, and sent in a second. A sonnet is like a well-written email: more room to explain, still reasonable to read. An opus is like a full report or book: it can hold deep and complex ideas, but it takes longer to produce. The names remind you that bigger models can do more but need more time.
A short timeline
March 2023: Claude arrives
Anthropic releases the first Claude models to the public. At this stage there was no neat three-tier system yet. Claude 2 followed in July 2023.
March 2024: The three tiers appear
The Claude 3 family launches with Haiku, Sonnet, and Opus together. For the first time, developers can choose a small, medium, or large model from one family.
June 2024: A middle model beats the old top
Claude 3.5 Sonnet arrives. Anthropic reported that this new mid-tier model beat the older Claude 3 Opus on many tests, while being faster and cheaper. This showed that a newer middle model can outrun an older top model.
2025: Claude 4 generation
Opus and Sonnet get a major upgrade in May 2025, and later releases such as Sonnet 4.5, Haiku 4.5, and Opus 4.5 refresh every tier. Anthropic described Haiku 4.5 as reaching coding ability close to the earlier Sonnet 4 at a lower cost and higher speed.
2026: The 5.x series
The family moves into its fifth generation. As of November 2026, the latest Haiku, Sonnet, and Opus are all at version 5.5, and a newer Mythos class of models sits above Opus.
A pattern is easy to see in this history. Each new generation lifts every tier. What was once only possible with the biggest model slowly becomes possible with a smaller, cheaper one. That is why you should revisit your model choices every few months instead of choosing once and forgetting.
Dates, version numbers, and features in AI move fast. Treat the timeline above as a map of the big ideas, and confirm current model names on Anthropic’s documentation before you build anything important.
3The Triangle: Capability, Speed, and Cost
Every model choice is a balance between three things, and you rarely get all three at once.
Capability
Capability means how well the model handles hard work: following long and tricky instructions, reasoning through multi-step problems, writing careful code, understanding subtle meaning, and avoiding mistakes. Larger models generally have more of it. Capability matters most when a task is complicated or when a wrong answer would be costly.
Speed
Speed has two parts. Latency is the wait before the answer starts to appear. Throughput is how many answers the system can finish in a given time. Smaller models usually respond faster, because there is less computing work behind every word they write. Speed matters most when a human is waiting, such as in a live chat, a voice assistant, or an auto-complete box.
Cost
Models are usually billed by the token, which is a small piece of text the model reads or writes. Smaller models generally cost less per token than larger ones. At a few requests, the difference is tiny. At millions of requests, it decides whether a product is profitable. If tokens are new to you, think of them as the small units of text that every AI service counts and charges for.
Picture three places to eat. A street food stall serves in two minutes and costs very little, which is perfect when you are hungry and in a hurry. A good family restaurant takes longer and costs more but gives a solid meal for almost any occasion. A fine-dining kitchen takes the longest and costs the most, but it can create something special that the others cannot. You do not eat at the fine-dining kitchen every day, and you would not serve a wedding feast from a street stall. The right place depends on the occasion.
| Question | Haiku | Sonnet | Opus |
|---|---|---|---|
| Relative speed | Fastest | Fast | Slower |
| Relative price per token | Lowest | Middle | Highest |
| Depth on hard problems | Good for simple to moderate tasks | Strong on most real-world tasks | Strongest on the hardest tasks |
| Best known for | Volume and responsiveness | All-round balance | Maximum quality |
The words in the table are relative on purpose. Exact prices, speeds, and scores change with every release, and they are published on Anthropic’s pricing and model pages. What stays stable is the ordering: within one generation, price and depth generally rise from Haiku to Opus, while speed generally falls.
People often assume the biggest model is always the best answer. It is only the best answer when the task truly needs that depth. For a simple job, a bigger model gives the same result more slowly and at a higher price.
4Meet Haiku: The Fast Helper
Haiku is the small, quick tier, designed for tasks where speed and low cost matter most.
What Haiku is
Haiku is the smallest model in the family. It is like the nurse at the front desk: it answers quickly, handles a very large number of routine questions, and rarely keeps anyone waiting. Because it is cheap to run, it lets you use AI in places where a bigger model would be too slow or too expensive.
What Haiku does well
Classification and labeling
Deciding whether a message is a complaint, a question, or praise; tagging thousands of support tickets; or sorting emails into folders.
Extraction
Finding names, dates, amounts, and other fields in text and returning them in a neat, consistent format.
Quick summaries
Turning long messages, reviews, or notes into a few short lines when you need many summaries fast.
Real-time experiences
Chat assistants, voice helpers, and in-app suggestions where a person is waiting and every second counts.
Worker in a bigger system
Handling many small sub-tasks for a larger system, such as scanning many documents in parallel for a stronger model to review.
Screening and moderation
Checking inputs or outputs quickly for unwanted content before they reach a user or a more expensive model.
Strengths
- The lowest price per token in the family, so big volumes stay affordable.
- The quickest replies, which makes products feel instant.
- Good fit for clear, well-defined tasks with simple instructions.
- Easy to run many requests at once without huge bills.
Limits to respect
- Less depth on tangled, multi-step reasoning than the larger tiers.
- May need clearer, more detailed instructions to stay on track.
- Higher chance of slips on rare, tricky, or ambiguous cases.
- Not the best choice when one mistake would be very costly.
When using Haiku, write clear and specific instructions, give one or two examples of the output you want, and ask for a fixed format. Small models shine when the job is described precisely.
5Meet Sonnet: The Balanced All-Rounder
Sonnet is the middle tier and the default choice for most everyday work.
What Sonnet is
Sonnet sits between the other two. It is like the general doctor: capable enough to handle the large majority of problems, quick enough that nobody waits long, and affordable enough to use all day. For many teams it is the first model they try, and for many tasks it is also the last model they need.
What Sonnet does well
Everyday coding
Writing functions, fixing bugs, explaining code, and writing tests. Many coding tools use a Sonnet-class model as their main engine.
Documents and communication
Drafting emails, reports, and articles, and improving tone and clarity while following detailed style instructions.
Analysis of long text
Reading contracts, papers, or logs and answering questions about them with sensible reasoning.
Agents and tool use
Following multi-step plans, calling tools such as search or databases, and checking its own progress along the way.
Working with images
Reading charts, screenshots, and scanned pages along with text when the model supports image input.
Capable chat assistants
Support and tutoring bots that need good judgment and natural conversation without a long delay.
A good family car is not the fastest or the fanciest vehicle on the road. But it takes you to work, carries the groceries, and survives a long holiday trip. That is why most households own one. Sonnet plays the same role: it is the model you can rely on for most journeys without worrying about the fuel bill.
Strengths
- Strong quality across a wide range of tasks.
- A sensible middle price that suits production use.
- Fast enough for interactive products.
- A natural starting point when you are unsure which tier to pick.
Limits to respect
- Costs more than Haiku, which adds up at very high volume.
- May still fall short of Opus on the hardest reasoning or research tasks.
- Not as quick as Haiku for tiny, simple jobs.
- Quality depends on how well the task is described.
6Meet Opus: The Deep Thinker
Opus is the most capable of the three, kept for problems where depth and accuracy matter most.
What Opus is
Opus is the largest tier in the core family. It is like the specialist doctor: you do not see it for every small problem, but when a case is complicated, rare, or serious, its depth is worth the extra time and cost. It tends to handle long chains of reasoning, subtle trade-offs, and large, messy tasks better than the smaller tiers.
What Opus does well
Complex engineering
Large refactors across many files, tricky bugs, system design, and long coding sessions where the model must keep many details straight.
Deep analysis
Comparing many sources, weighing evidence, spotting contradictions, and writing careful, well-reasoned reports.
Work where errors are costly
Legal, financial, or technical reviews where a human expert will check the result but needs a strong first draft.
Leading other models
Acting as the planner in a larger system, breaking a goal into steps and directing faster models to do the pieces.
Extended agent work
Running for many steps on its own, recovering from errors, and staying focused on a goal over a long session.
Subtle judgment
Handling vague requests, conflicting instructions, and delicate wording where the obvious answer is not the right one.
Think of a heavy-duty truck. It can carry loads that a car could never move, and for building a house you absolutely need it. But taking it to buy milk would waste fuel, take longer to park, and cost far more than necessary. Opus is the heavy-duty truck of the family: wonderful for the big loads, silly for the small errands.
Strengths
- The deepest reasoning and the best results on the hardest tasks.
- Better at long, complicated instructions with many moving parts.
- Useful as a careful reviewer or planner for other models.
- Can reduce the number of retries on difficult work.
Limits to respect
- The highest price per token in the core family.
- Slower replies, which can frustrate people in live chat.
- Overkill for simple, repetitive tasks.
- Still not perfect, so important output needs human or automated checking.
Some Claude models offer an extended thinking mode, where the model spends extra tokens reasoning before it answers. Those thinking tokens usually count toward output usage, so deeper thinking costs more and takes longer. Use it for hard problems, not for simple ones.
7Reading a Model Name: Generations, Versions, and Tiers Above Opus
A model name is a small label with three parts, and each part tells you something useful.
The parts of a name
Take the name “Claude Sonnet 5.5”. The first word, Claude, is the family. The second word, Sonnet, is the tier, which tells you the size class. The number, 5.5, is the generation and version, which tells you how new the model is. Two models with the same tier but different numbers are not the same. The higher number is usually newer and usually better.
Names inside the API
Developers refer to models by a short text code called a model ID or model string. It is the exact name you type into your program to tell the service which model to use. The current ones follow a simple pattern, as the table shows.
| Friendly name | Model ID used by developers | Role |
|---|---|---|
| Claude Haiku 5.5 | claude-haiku-5-5 | Fast and affordable |
| Claude Sonnet 5.5 | claude-sonnet-5-5 | Balanced everyday model |
| Claude Opus 5.5 | claude-opus-5-5 | Most capable of the core three |
| Claude Fable 5.1 | claude-fable-5-1 | Mythos-class model with extra safety measures |
The tier above Opus
Anthropic has also described a Mythos tier that sits above Opus. The first of these models, Claude Mythos Preview, is not open to the public and is used by a small number of trusted organizations as part of a program called Project Glasswing. The current Mythos-class models, Claude Mythos 5.1 and Claude Fable 5.1, share the same underlying model, but Fable has extra safety measures for biology, cybersecurity, and AI research. For most people and most projects, Haiku, Sonnet, and Opus remain the everyday choices.
Model names work like the labels on phones. The brand is Claude, the model line is Sonnet or Opus, and the year number tells you how recent it is. Nobody buys an old flagship phone without checking whether last year’s budget model is already faster. Check the number as carefully as the name.
Why version pinning matters
When your app calls a model, it is wise to name an exact version, and to test again before moving to a new one. Providers occasionally retire older models after giving notice, so a quiet change in the model underneath your product can change its behavior. Pinning a version and planning upgrades keeps your results steady.
Do not copy a model ID from an old tutorial. Names change with every generation, and old IDs may stop working. Always take the current ID from Anthropic’s model documentation.
8What Is the Same and What Differs Inside
All three tiers follow one basic recipe. They differ mainly in how much brainpower is packed into them.
The shared recipe
All Claude models are large language models built on a design called the transformer. During a first stage called pretraining, the model reads enormous amounts of text, cut into tokens, and practices guessing the next token over and over. After that, it goes through further training in which humans and written principles guide it toward being helpful, honest, and careful. Anthropic uses a method it calls Constitutional AI, where a written set of principles helps shape the model’s behavior.
flowchart LR
A["Huge text collection"] --> B["Tokenizer turns text into tokens"]
B --> C["Pretraining: learn to predict the next token"]
C --> H["Smaller model: Haiku tier"]
C --> S["Medium model: Sonnet tier"]
C --> O["Larger model: Opus tier"]
H --> D["Fine-tuning with human feedback and written principles"]
S --> D
O --> D
D --> E["Safety testing and release"]
E --> F["Access through apps, Claude Code, API, and cloud platforms"]
The picture shows one shared path that splits into three model sizes and then comes back together for tuning, testing, and release. Anthropic does not publish the exact sizes or training recipes of its models, so nobody outside the company can say precisely how many parameters, which are the adjustable numbers inside a model, each tier has. What matters in practice is the behavior you can measure: speed, price, and quality on your own tasks.
What stays the same across tiers
Safety goals
All tiers are trained toward the same goals of being helpful, honest, and harmless, and they are tested for safety before release.
Common abilities
Models in the family can generally write, reason, code, and call tools. Image input is available on many of them. Always check the current model page for the exact list.
Token-based pricing
Usage is counted in tokens, with output tokens usually priced higher than input tokens, and a lower price for cached repeated input on supported models.
Prompting basics
Clear instructions, good examples, and structured formats help every tier. A prompt that works well on one tier is a good starting point for another.
What changes across tiers
The biggest changes are depth, speed, and price. Larger tiers usually follow long and complicated instructions better, hold more details in mind at once, and make fewer reasoning slips. Smaller tiers answer quicker and cost less. Features can also differ by model and by generation, such as the maximum size of the context window, which is the number of tokens a model can handle in one request, and the maximum length of an answer.
Imagine three engines made by the same car company. All of them follow the same safety rules, run on the same kind of fuel, and fit into the same family of cars. But one has a small engine for city driving, one has a medium engine for everything, and one has a huge engine for towing. The design principles match; the power is different.
Token counts can differ between model generations because tokenizers can change. If you switch models, re-measure your token usage instead of assuming your old numbers still apply.
9How a Request Travels: Routing Across the Tiers
In a well-built product, not every question goes to the same model. A small piece of logic decides who should answer.
A router is a small piece of software that looks at each incoming request and decides which model should handle it. The router can be very simple, such as a rule that says “short questions go to Haiku.” It can also be a tiny model of its own that rates how hard the request looks. Either way, its job is to send easy work to the cheap, fast tier and save the expensive tier for the problems that truly need it.
When you walk into a busy hospital emergency room, the first person you meet is not the surgeon. A triage nurse looks at you for a moment and decides whether you need a quick check, a regular doctor, or the specialist right now. Routing in AI works the same way. A fast first look sends each patient, or each request, to the right level of care.
flowchart TD
U["User request"] --> R["Router: simple rules or a small classifier"]
R -->|Simple and high volume| H["Haiku tier"]
R -->|Everyday complexity| S["Sonnet tier"]
R -->|Hard or high stakes| O["Opus tier"]
H --> V["Quality check"]
S --> V
O --> V
V -->|Passes| A["Answer returned to the user"]
V -->|Fails| E["Retry on a stronger tier"]
E --> O
The diagram has three stages. First, the router sorts requests by difficulty. Second, the chosen tier produces an answer. Third, a quality check, which can be a rule, a test, or another model, decides whether the answer is good enough. If it is not, the request is retried on a stronger tier. This design is often called a cascade, because requests fall from cheap options toward expensive ones only when needed.
The life of one request
Receive and prepare
The app collects the user’s message, the instructions, and any needed context, and counts the tokens to make sure everything fits.
Route
The router picks a tier using rules such as request type, length, user plan, or an estimated difficulty score.
Generate
The chosen model writes the answer one token at a time, and the app can stream it to the user as it appears.
Check
The system validates the answer with format checks, tests, or a reviewing model. Failures can be retried or escalated.
Log and learn
The app records tokens, time, cost, and outcome, and uses these records to improve the routing rules later.
You do not need a clever router on day one. Begin with one model, record how often it succeeds, and add routing only when the data shows a clear chance to save money or time.
10Trade-offs: The Good and the Not-So-Good
There is no free lunch in model choice. Each strategy gains something and gives something up.
Using one big model for everything
- Simple to build and easy to reason about.
- High quality on hard tasks, with fewer surprises.
- One set of prompts to test and maintain.
- Fewer places where routing mistakes can hide.
The price of that choice
- You pay top prices even for trivial requests.
- Slower replies for everyone, including simple questions.
- Harder to scale when traffic grows quickly.
- Rate limits can bite sooner at high volume.
Using one small model for everything
- Lowest cost and fastest responses.
- Easy to handle large volumes.
- Great for narrow, well-defined jobs.
- Little worry about running out of budget.
The price of that choice
- More mistakes on hard or unusual requests.
- More time spent on prompt tuning and workarounds.
- Risk of poor results where quality matters most.
- Hidden costs from retries and human cleanup.
A worked example with practice numbers
To see why mixing tiers can save money, use some made-up relative costs. These are not real prices. Suppose one Haiku task costs 1 unit, one Sonnet task costs 3 units, and one Opus task costs 5 units. Imagine a product that handles one million tasks, where careful testing shows that 70 percent are simple, 25 percent are medium, and only 5 percent are hard.
| Strategy | Cost per task (units) | Cost for one million tasks |
|---|---|---|
| Everything on the Opus tier | 5.00 | 5,000,000 |
| Everything on the Sonnet tier | 3.00 | 3,000,000 |
| Routed: 70% Haiku, 25% Sonnet, 5% Opus | 1.70 | 1,700,000 |
The routed cost per task is 0.70 plus 0.75 plus 0.25, which is 1.70 units. Compared with sending everything to Opus, that is a saving of about 66 percent. The routed design also answers most requests faster, since most go to the quick tier. The catch is that you must keep checking that the routing is accurate, because a wrongly routed hard request can produce a poor answer.
A delivery company does not send a heavy truck to drop off a single envelope. It uses bikes for envelopes, vans for parcels, and trucks for furniture. The company saves money on fuel, and customers get their envelopes sooner. But the company must label each package correctly at the start, or the sofa will end up on a bicycle.
The savings only count if quality holds. Always measure answer quality per tier on your own examples before you trust a cost-saving plan.
11Choosing the Right Tier: A Practical Guide
A handful of simple questions will usually point you to the right model.
Is a person waiting for the answer?
If yes, speed matters a lot. Start by testing Haiku or Sonnet. Opus can still be right if the task is hard enough to justify the wait.
How many requests will you send?
If you will send millions, small savings per request become large. That pushes you toward Haiku, or toward a routed mix.
How hard is the thinking?
Tasks with many steps, subtle rules, or large amounts of material usually need Sonnet or Opus. Simple labeling or extraction often works with Haiku.
What does a mistake cost?
If an error is cheap and easy to fix, a faster tier is fine. If an error is expensive or risky, use a stronger tier and add human review.
Does it pass your own test?
Run each tier on real examples from your work. Choose the cheapest tier that passes. Opinions and public rankings are only a starting point.
A quick starting guide
| Task | Good first try | Why |
|---|---|---|
| Tagging support tickets | Haiku | Simple, repetitive, and high volume. |
| Extracting fields from invoices | Haiku | Clear format and quick checks. |
| Live customer chat | Haiku or Sonnet | Speed matters; pick by difficulty. |
| Writing and editing documents | Sonnet | Good style and judgment at a fair price. |
| Everyday coding help | Sonnet | Strong coding with good speed. |
| Multi-step agents using tools | Sonnet, or Opus for hard ones | Needs planning and steady focus. |
| Large refactors, deep research | Opus | Depth and long reasoning matter most. |
| Reviewing risky or legal text | Opus plus human review | Mistakes are costly. |
A useful method is to prove the task works on a strong tier first, then try the cheaper tiers one step at a time. If the cheaper tier still passes your tests, you have found savings with evidence.
12Design Patterns: Combining the Tiers
The real power comes from using the tiers together, each doing what it does best.
Route by difficulty
A router sends easy requests to Haiku, normal ones to Sonnet, and hard ones to Opus. This is the cheapest way to cover a wide range of work.
Cascade and escalate
Try a cheap tier first. If an automatic check fails, retry on a stronger tier. Most requests never reach the expensive step.
Planner and workers
A strong model plans the work and fast models carry out the pieces in parallel. The planner then merges and checks the results.
Draft and review
A faster tier writes the first draft, and a stronger tier reviews it for errors. Reviewing is often cheaper than writing from scratch.
Gatekeeper
Haiku screens requests first, filtering spam, unsafe text, or out-of-scope questions before costly models see them.
Cache and batch
Reuse long, repeated instructions through prompt caching, and send non-urgent jobs through a batch interface, which providers offer at lower cost for work that can wait.
The planner and workers pattern in detail
In this pattern, one strong model acts as a team leader. It reads the goal, breaks it into small jobs, hands those jobs to several faster models working at the same time, and then combines what comes back. Anthropic has written about building a research system in this style, where a lead agent plans the search and several helper agents explore different parts of the question in parallel. Claude Code also lets you choose the model, and tasks handed to helper agents can run on a different model from the main one.
flowchart TD
G["Goal from the user"] --> L["Lead agent on a strong tier plans the work"]
L --> W1["Worker agent A on a fast tier"]
L --> W2["Worker agent B on a fast tier"]
L --> W3["Worker agent C on a fast tier"]
W1 --> M["Lead agent merges and checks the results"]
W2 --> M
W3 --> M
M --> F["Final answer to the user"]
The diagram shows a fan-out and a fan-in. The leader spreads the work out to several workers, which saves time because the pieces run side by side, and then pulls everything back together. The expensive model is used only twice, at the start and at the end, while the cheaper models do the bulk of the reading and searching.
Think of a newspaper. An experienced editor decides what stories to cover and assigns them. Several reporters go out at the same time and bring back their pieces. The editor then reads everything, fixes problems, and builds the final front page. The editor is not out in the field collecting every fact, and the reporters are not deciding the headline. Each person does what suits their role.
Systems with many agents can use a lot of tokens, because every worker reads its own context. Measure the total, not just the price of one call, and make sure the extra quality justifies the extra tokens.
13Security, Privacy, and Safety Across the Tiers
Choosing a bigger model does not remove the need for careful engineering. Safety belongs to the whole system, not just the model.
Prompt injection
Hidden instructions inside a web page, email, or file can try to take over the model. Anthropic works to make every tier resistant to such tricks, but no tier is immune, so treat outside text as untrusted.
Least privilege for tools
When a model can call tools, give it only the permissions it needs. A model that can only read cannot accidentally delete. Ask for human approval before risky actions.
Protect API keys
Keep keys on your server, never inside a web page or mobile app that users can inspect. Rotate them if they leak, and set spending limits.
Handle personal data with care
Remove names, ID numbers, and passwords that the task does not need. Read the data-handling terms for the product or plan you use, since they can differ.
Denial of wallet
Attackers or bugs can trigger huge prompts and long answers. Cap input size, output length, and usage per user, especially on the Opus tier.
Read the model documents
Anthropic publishes documents about its models, including safety testing, which help teams understand strengths and known limits.
Hiring a brilliant assistant does not mean you hand over your bank password and the keys to every room. You give them the access their job needs, you check important work, and you keep sensitive things locked away. The smarter the assistant, the more useful they are, but good security habits stay the same.
Human review for high stakes
Even the strongest tier can make mistakes, invent details, or misread a situation. For medical, legal, financial, or safety-related work, treat the output as a draft for an expert to review rather than a final decision. This habit costs little and prevents the rare but serious failures.
A bigger model is usually more careful, but it is not a replacement for validation, permissions, logging, and review. Build those layers no matter which tier you use.
14Monitoring, Evaluation, and Version Management
You cannot improve what you do not measure. A short testing loop keeps your model choices honest.
An evaluation, often shortened to an eval, is a set of example tasks with known good answers or clear checks, used to score a model. Evals are the single most useful tool for choosing a tier. They replace guesswork and marketing claims with evidence from your own work. A small set of fifty to a few hundred real examples is a good start.
flowchart LR
A["Collect real examples"] --> B["Write expected answers or checks"]
B --> C["Run each tier on the examples"]
C --> D["Score quality, speed, and cost"]
D --> E["Pick the cheapest tier that passes"]
E --> F["Deploy and monitor"]
F --> G["New failures found in production"]
G --> A
The diagram is a circle on purpose. You start with real examples, test each tier, choose the cheapest one that passes, and then watch it in production. Every failure you find in the real world becomes a new example in your test set. Over time, the tests become a more faithful copy of your real work.
Metrics worth tracking
| Metric | What it tells you | Why it matters |
|---|---|---|
| Quality score per tier | How often answers pass your checks | Shows whether a cheaper tier is good enough. |
| Time to first token | How long users wait before text appears | Drives how fast the product feels. |
| Total response time | How long a whole answer takes | Important for tasks with long outputs. |
| Tokens per task | Input and output size | The base of your cost estimate. |
| Cost per successful task | Spend divided by good results | Includes retries, so it is more honest than price per call. |
| Escalation rate | How often work moves to a stronger tier | Shows whether routing is well tuned. |
| Error and refusal rate | Failed calls and declined requests | Catches limits, bad prompts, and outages. |
Managing versions over time
New versions arrive regularly, and old ones are eventually retired. Treat each upgrade like any other software change. Re-run your evals on the new version, compare quality and cost against the old one, roll out gradually, and keep the ability to go back. Because a new Sonnet may match what used to require an Opus, each upgrade is also a chance to move work to a cheaper tier.
A school does not decide which students are ready for the next grade by guessing. It uses regular tests, looks at the marks, and adjusts. Your evals are the school’s exam system for AI models: they show which one is ready for which job, and they are repeated whenever something new joins the class.
15Best Practices and Common Mistakes
Follow a few habits, avoid a few traps, and most of the pain disappears.
Habits that pay off
Test on your own data
Public rankings describe general skill. Your tickets, documents, and code are what matter, so measure on those.
Start with the right tier, then trim
Prove the idea on a strong tier, then move down step by step while quality holds.
Write clear prompts
Describe the goal, the audience, the format, and add a good example. Clear prompts help every tier, and help smaller ones most.
Control the length of answers
Ask for the size you need and set a maximum output length. Output tokens usually cost more than input tokens.
Pin versions and plan upgrades
Name exact model versions in production, and schedule time to re-test when a new generation arrives.
Add checks outside the model
Validate formats, run tests on generated code, and review high-stakes output. Do not rely on the model alone.
Mistakes to avoid
What people do
They pick the biggest model for everything because it sounds safest, and never test the smaller ones.
Why it hurts
Costs rise, replies slow down, and rate limits arrive sooner. Many simple tasks would have worked just as well on a faster tier.
Do this instead
Run the same examples on each tier and choose the cheapest one that passes your quality bar.
What people do
They choose the smallest model for a hard task to save money, then patch the weak results with ever longer prompts.
Why it hurts
Prompts grow, retries multiply, and people spend hours on cleanup. The apparent savings disappear, and quality stays unreliable.
Do this instead
Count the real cost, including retries and human time. If a stronger tier cuts the retries, it may be the cheaper choice overall.
What people do
They trust a model name from an old blog post, or assume that “Opus is always better than Sonnet” without checking the version numbers.
Why it hurts
An outdated ID may stop working, and an older Opus can be beaten by a newer Sonnet on many tasks. Decisions based on stale facts waste money.
Do this instead
Take model names from the official documentation, compare current versions side by side, and re-check after each release.
16The Tiers in Real-World Scenarios
These typical situations show how teams combine the three tiers. They are illustrations of common patterns, not claims about any one company.
A customer support platform
Every incoming ticket is first labeled by a fast Haiku-tier step: topic, urgency, and language. Routine questions get quick answers from a Haiku or Sonnet-tier assistant. Complicated or emotional cases are passed to a stronger tier, which drafts a careful reply for a human agent to approve. Most of the volume stays cheap, and the hard cases get the best attention.
A software team using a coding assistant
For daily work such as small fixes, explanations, and tests, a Sonnet-tier model gives quick and reliable help. When engineers face a large refactor across many files or a stubborn bug, they switch to an Opus-tier model. Because tools like Claude Code allow switching models, the team can match the model to each task instead of paying top price all day.
A law or finance team reviewing documents
A Haiku-tier step scans hundreds of documents to find the relevant sections. A stronger tier then reads those sections closely and lists risks and questions. A human expert reviews the final summary. The cheap tier handles the volume, the deep tier handles the judgment, and the human keeps responsibility.
A research assistant that gathers information
A lead agent on a strong tier plans which questions to explore. Several faster agents search and read in parallel. The lead agent then merges everything into one report and checks for conflicts. This is the planner and workers pattern from the earlier chapter, used for a real research workflow.
A mobile app with live suggestions
An app that offers writing suggestions as a person types needs answers in a blink. A Haiku-tier model keeps the experience smooth and keeps costs low across millions of users. Occasionally, a user asks for a deep rewrite of a long document, and that single request is sent to a stronger tier.
17Tokens, Context Windows, and the Three Tiers
Tokens are the meter that runs behind every Claude request, and each tier reads that meter at a different rate.
A token is a small piece of text, often a short word or part of a longer word, that a model reads or writes. Every Claude request is measured in tokens. The tokens you send are called input tokens, and the tokens the model writes back are called output tokens. Providers charge for both, and output tokens usually cost more because the model must produce them one at a time.
The same request, three prices
The same prompt costs different amounts on different tiers, because each tier has its own price per token. The longer your prompt and the longer the answer, the bigger the gap between tiers becomes. To practice the idea, here are made-up prices in imaginary coins per million tokens. They are not real prices. Suppose Haiku charges 1 coin for input and 4 for output, Sonnet charges 3 and 12, and Opus charges 6 and 30. Now take one request with 800 input tokens and 200 output tokens.
| Tier (practice prices) | Cost of one request | Cost of 100,000 requests |
|---|---|---|
| Haiku | 0.0016 coins | 160 coins |
| Sonnet | 0.0048 coins | 480 coins |
| Opus | 0.0108 coins | 1,080 coins |
For Haiku, the input costs 800 times 1 divided by a million, which is 0.0008, and the output costs 200 times 4 divided by a million, which is also 0.0008, so the total is 0.0016. The other rows use the same steps. Notice that the cheapest and most expensive tiers differ by almost seven times for exactly the same request. This is why token-aware design matters.
Think of mobile data plans. Every plan lets you browse and watch videos, but each charges a different rate per gigabyte. A video that uses the same amount of data costs less on the budget plan and more on the premium plan. Tokens are the data, and the tiers are the plans. If you want to spend less, you can use fewer tokens, move to a cheaper plan, or both.
The context window
The context window is the maximum number of tokens a model can handle in a single request. Everything has to fit inside it: your instructions, the earlier messages, any documents, your question, and the model’s answer. The size of this window can differ between models and generations, so check the current model page instead of assuming it is the same for all tiers.
Ways to spend fewer tokens on any tier
Shorten repeated instructions
A long set of rules sent with every request is charged every time. Keep it tight and remove anything the model does not need.
Use prompt caching
Providers offer lower prices for repeated, unchanging input on supported models. Put fixed text at the start and changing text at the end.
Send only relevant material
Instead of pasting a whole document set, find the few passages that match the question and send those.
Cap the answer length
Set a maximum output length and ask for the format you need, since output tokens are usually the pricier part.
When a model uses extended thinking, the thinking tokens usually count as output. A hard problem on a strong tier with deep thinking can use many more tokens than a plain answer, so turn it on only where it earns its cost.
18Prompting Each Tier Well
A prompt is the set of instructions you give the model. Good prompts make every tier better, and they matter most for the smaller ones.
A simple recipe for a strong prompt
State the goal clearly
Say what you want done and why. A sentence like “summarize this complaint for a busy manager” beats a bare “summarize”.
Give the needed background
Include facts the model cannot guess, such as who the reader is, what the product does, and any rules to follow.
Show an example or two
One good sample of the output you want teaches the model the style and format faster than a long description.
Specify the shape of the answer
Ask for the length, the structure, and any labels. Separating parts of a prompt with clear markers helps the model tell instructions from material.
Test and refine
Run the prompt on several real examples, read the failures, and adjust one thing at a time.
Tier-specific tips
Be precise and concrete
Spell out the steps, give examples, and fix the output format. Smaller models perform best when little is left to guesswork.
Explain the purpose
Sonnet-class models handle richer instructions well. Describe the goal and the reasons behind your rules, and let the model use judgment.
Trust it with the big picture
For large, open-ended tasks, give the overall goal, the constraints, and the success test, and avoid over-managing every small step.
Ask for checks
Request that the model verify its work against your rules, and say it is fine to answer that it does not know instead of guessing.
Giving instructions to a new colleague works the same way. A beginner needs a clear checklist and a sample of finished work. An experienced person needs the goal and the limits, and then room to use their own judgment. If you give a veteran a checklist for every tiny step, you waste their talent. If you give a beginner only a vague goal, they will struggle.
Anthropic keeps a free prompt engineering guide in its documentation at docs.claude.com, with up-to-date advice and examples. It is the best place to learn current techniques.
19Honest Limits: What No Tier Can Do
Every model, even the largest, has limits. Knowing them early saves you from nasty surprises.
Mistakes and invented details
Any model can state something wrong in a confident voice. Larger tiers usually slip less often, but none are perfect, so check important facts.
Knowledge cutoff dates
A model only knows what was in its training data, which ends at a certain date. Newer events need a search tool or fresh documents supplied in the prompt.
No built-in memory between requests
Through the API, a model does not remember earlier chats by itself. Your app must send the needed history each time, within the context window.
Answers can differ run to run
Because the model picks tokens with some randomness, the same question can produce different wording. Lower settings reduce this but do not remove it.
Details can get lost
Very long inputs can make it harder to use every detail equally well. Placing key facts clearly and keeping inputs focused helps.
Calculations and counting
Models read pieces of text, not individual letters or digits, so exact arithmetic and letter counting can go wrong. Give them a calculator or code tool for precise work.
Even the most brilliant expert in town is not a perfect machine. They may remember a fact wrongly, they have not read this morning’s news, and they cannot do huge sums in their head. The sensible approach is to let them do what they do best, hand them a calculator and fresh papers when needed, and double-check the important parts.
Choose a stronger tier to lower the chance of mistakes, but never to remove the need for checking. Pair every important workflow with tests, tools, and human review.
20Frequently Asked Questions
Quick answers to the questions people ask most about Haiku, Sonnet, and Opus.
21Summary and Key Takeaways
Key Takeaways
- Haiku, Sonnet, and Opus are three sizes of the Claude family. Haiku is small and fast, Sonnet is balanced, and Opus is the most capable of the three.
- Every choice balances capability, speed, and cost. Within a generation, depth and price generally rise from Haiku to Opus, while speed generally falls.
- Read the whole name. The tier shows the size class and the number shows how new it is, so a newer Sonnet can outperform an older Opus.
- Match the model to the job. Use Haiku for high-volume simple tasks, Sonnet for most everyday work, and Opus for hard, high-stakes, or long tasks.
- Combine tiers for the best value. Routing, cascades, and planner-and-worker designs send each piece of work to the cheapest tier that can do it well.
- Measure with your own evals. Test each tier on real examples, choose the cheapest one that passes, and re-test with every new version.
- Safety is a system job. Protect keys and data, limit tool permissions, cap usage, validate outputs, and keep humans in the loop for important decisions, whatever tier you choose.