Opus 真的比較貴嗎?標價與每任務實際成本
一份寫給一般讀者的 Anthropic Claude 模型定價指南:為什麼 Opus 與 Sonnet 每個 token 的標價,很少等於每個任務的真實成本,以及該如何在兩者之間分配工作。定價與能力皆比對 Anthropic 官方公布的費率(2026 年 7 月快照);基準測試的比較僅供方向性參考,不追求精確。
By Claude
Model economics · Insights
Is Opus Actually More Expensive? Sticker Price vs. Cost Per Task
When we compared Anthropic Claude models for our own workloads, the assumption we started with was simple: Opus costs more, so use Sonnet by default. It turned out to be true for some work and wrong for others. The sticker price per token is only the starting point. Token efficiency, retry rates, and a quiet tokenizer change all bend the real bill. Here is how to think about it, with the figures we could verify against Anthropic and the ones we deliberately kept directional.
Opus vs. Sonnet cost per task pricing snapshot · July 2026
The per-token price of the Opus tier is higher than Sonnet, but that does not settle the cost question. For complex, multi-step agent work, a more capable model can finish in fewer steps and fewer retries, so its cost per task can match or beat the cheaper model. For document generation, research synthesis, and everyday coding, Sonnet is the right default. Route by task type, log every call, and let your own numbers decide where Opus earns its premium.
The short answer: the assumption holds, but only for certain kinds of work. On complex agentic coding, the Opus tier can cost less per completed task because it needs fewer retries and fewer tool calls. On document generation and research synthesis, Sonnet is the correct default and is often just as capable. The trap is treating sticker price as final cost.
The sticker prices
[1]Start with what Anthropic publishes. The figures below are the list prices as of July 2026 and are billed per million tokens, split into input and output. They move over time, so treat them as a snapshot and check the pricing page before you budget.
| Model | Input / 1M | Output / 1M | Context | Best fit |
|---|---|---|---|---|
| Claude Opus (4.7 / 4.8) | US$5.00 | US$25.00 | 1M tokens | Complex agents, frontier coding, deep reasoning |
| Claude Sonnet 4.6 (default) | US$3.00 | US$15.00 | 1M tokens | Document generation, research, everyday coding, RAG |
| Claude Haiku 4.5 | US$1.00 | US$5.00 | 200K tokens | Routing, classification, tagging, high throughput |
[5]One more list-price fact worth knowing: the Batch API runs asynchronous work at half the standard rate, which brings the Opus tier down to roughly US$2.50 input and US$12.50 output per million tokens. For overnight, non-latency-sensitive jobs that changes the arithmetic, and we return to it below.
The hidden multiplier: the tokenizer
[6]Here is the part that does not show up on any price card. Starting with the Opus 4.7 generation, Anthropic shipped a new tokenizer. The rate card did not change, but the same text is now cut into more tokens than it was on earlier models. Since you are billed per token, an unchanged price per token can still produce a larger bill.
Anthropic advises that the newer tokenizer can turn the same content into roughly 1x to 1.35x as many tokens compared with the previous generation, and that the exact effect depends on the shape of your content. There is no single blanket multiplier to apply. Before adopting a newer model for text-heavy workflows, run the token-counting endpoint on your own production prompts, date the figure, and re-baseline your cost dashboards rather than assuming the old counts still hold.
The practical takeaway is not that the newer model is a bad deal. It is that the real gap between Sonnet and the Opus tier on text-heavy work can be wider than the rate card alone suggests, and the only way to know your gap is to measure your own content.
Does a smarter model use fewer tokens?
This is the load-bearing question, and it is where sticker price and real cost part ways. The argument for the Opus tier being cheaper than it looks rests on a single idea: a more capable model can often reach the same result in fewer steps, with fewer wrong turns and fewer retries. When that happens, the higher price per token is spread across less total work, and the cost per completed task can land at or below the cheaper model.
We want to be honest about the strength of the evidence. The direction of this effect is well established and matches Anthropic guidance that more recent models tend to reason more and call tools less to reach the same answer. The precise percentages that circulate in third-party writeups, however, vary widely by workload and are hard to verify, so we are not going to quote specific benchmark deltas as if they were settled. Treat the direction as reliable and the magnitude as something you must measure for your own tasks.
For multi-step agent work, the dominant cost driver is usually not how verbose the output is. It is the failure rate. One agent call that fails and needs a retry, a fallback, or a human to step in can cost several times what it would have cost to route the task to a stronger model in the first place. This is why cost per task, not price per token, is the number that matters for agentic workloads.
The effort dial
[4]The Opus and Sonnet tiers expose an effort setting that directly trades quality against token spend. Lower effort means less reasoning overhead and terser output; higher effort means deeper deliberation and more tool use. Calibrating this well is one of the most direct levers you have on cost, and it can offset much of the tokenizer overhead described above.
-
Low
Least reasoning overhead. Good for short, scoped, latency-sensitive tasks that are not intelligence-sensitive: chat, simple lookups, classification.
-
Medium
A cost-saving step down from the default that keeps most of the quality for many everyday tasks.
-
High
The default. Full reasoning; the recommended minimum for most intelligence-sensitive work, balancing quality and token efficiency.
-
xHigh
Introduced on the Opus 4.7 generation. The recommended setting for the hardest coding and agentic tasks. Give it a generous output budget so it has room to think and act.
A cost-per-task model you can play with
The chart and calculator below make the argument concrete. Both are an illustrative model, not a benchmark. They apply a token-efficiency factor that scales with task complexity and a retry-cost factor, using the verified list prices above. The point is to show the shape of the tradeoff, not to predict your exact bill. Plug in numbers that resemble your own workload, then confirm against real logs.
{ "type": "line", "title": "Illustrative cost per task by complexity (US$)",
"data": { "labels": ["1","3","5","7","9","10"],
"datasets": [
{ "label": "Opus", "data": [0.098,0.089,0.080,0.072,0.063,0.059] },
{ "label": "Sonnet", "data": [0.059,0.059,0.059,0.059,0.059,0.059] } ] } }
In this illustrative model, Sonnet holds roughly flat near US$0.059 per task regardless of complexity. Opus starts higher, near US$0.098 on simple tasks, and falls as complexity rises, reaching parity with Sonnet only at the top of the complexity scale. Simple work favours Sonnet on cost; the gap closes as tasks get harder.
{ "inputs": [
{ "name": "inTok", "label": "Input tokens per task", "type": "number", "default": 6000 },
{ "name": "taskN", "label": "Tasks per month", "type": "number", "default": 5000 },
{ "name": "cmpx", "label": "Task complexity (1 simple to 10 complex agent)", "type": "range", "min": 1, "max": 10, "default": 5 },
{ "name": "retry", "label": "Sonnet failure / retry rate (percent)", "type": "range", "min": 0, "max": 10, "default": 3 } ],
"outputs": [
{ "name": "sonnetCost", "label": "Sonnet est. monthly cost (US$)", "formula": "inTok * 9.3 / 1000000 * (1 + retry / 100 * 2) * taskN" },
{ "name": "opusCost", "label": "Opus est. monthly cost (US$)", "formula": "(inTok * 5 + inTok * 0.42 * (1 - (cmpx - 1) / 9 * 0.55) * 25) / 1000000 * (1 + retry * max(0.2, 1 - cmpx / 10 * 0.8) / 100 * 2) * taskN" } ],
"checks": [
{ "expr": "cmpx <= 10", "message": "Complexity must be between 1 and 10" },
{ "expr": "retry >= 0", "message": "Retry rate cannot be negative" } ],
"chart": { "type": "bar", "series": ["sonnetCost","opusCost"] } }
Example: 6,000 input tokens per task, 5,000 tasks per month, complexity 5 of 10, 3 percent retry gives Sonnet about US$296 per month and Opus about US$402 per month. Push complexity to 10 and retries to 5 percent and the two converge, with Opus near US$298 and Sonnet near US$307. The model is deliberately simple and illustrative; use it to build intuition, not to forecast an invoice.
Routing by workload
Rather than pick one model for everything, route each kind of work to the tier that fits it. These are our defaults, framed at the tier level so they stay useful as specific model versions change.
| Workload | Better default | Why |
|---|---|---|
| Complex agentic coding: multi-file refactors, architecture decisions, wide codebase changes | Opus tier | Fewer wrong turns and retries on long, multi-step work can make the per-task cost competitive despite the higher token price. |
| Everyday coding and pull requests: feature work, debugging, code review, test writing | Sonnet | Covers the vast majority of routine coding at a lower cost, with quality that developers are frequently happy with. |
| Document generation: reports, proposals, structured long-form output | Sonnet | Office-productivity and structured writing is a strong Sonnet use case; the Opus premium rarely buys better output here. |
| Research and synthesis: analysis, structured surveys, data reports, RAG pipelines | Sonnet | For classification, extraction, and structured synthesis, Sonnet is the well-supported default at a lower cost. |
| Long-horizon autonomous agents: sessions beyond 30 minutes, multi-agent chains | Opus tier | Coherence over long runs reduces the chance of a lost agent, which is where the retry tax hurts most. |
| Batch and overnight processing: nightly summaries, enrichment, evaluation sweeps | Depends on complexity | At the Batch API half-rate, complex batch work can favour Opus; simple batch work still favours Sonnet. |
Where each model tends to win
[2]You will find plenty of benchmark tables online that put precise scores on Opus versus Sonnet across a dozen evaluations. We are choosing not to reprint specific figures, because the ones circulating are hard to verify and move with every release. What is durable is the shape of the tradeoff: which tier tends to win at which kind of work. For exact, current numbers, go to the model cards Anthropic publishes rather than any secondhand table, including this one.
| Kind of work | Tends to favour |
|---|---|
| Office productivity and structured writing | Sonnet |
| Everyday and mid-complexity coding | Sonnet |
| Business and financial analysis | Sonnet |
| Frontier and multi-step agentic coding | Opus tier |
| Deep and abstract reasoning | Opus tier |
| Command-line agents and computer use | Opus tier |
Any benchmark you rely on for a purchasing decision should trace back to a primary model card. Directional tables like the one above are useful for orientation; they are not a substitute for testing on your own tasks.
A decision framework
Put it together as two lists. Default to Sonnet, and escalate to the Opus tier on measurable triggers rather than on a hunch.
Route to the Opus tier when:
- The task is a complex cross-file refactor, migration, or architecture decision.
- An autonomous agent makes many tool calls per task or runs for a long horizon.
- Sonnet shows a measurable failure or retry rate above a couple of percent on the task.
- The work needs deep, abstract, or specialist reasoning where quality is critical.
- It is a large asynchronous batch job that can run at the Batch API half-rate.
Route to Sonnet when:
- You are generating documents, reports, or structured long-form output.
- You are doing research synthesis, RAG, or large-scale question answering.
- It is everyday coding: features, debugging, tests, pull requests.
- The task is classification, routing, extraction, or content moderation.
- It is cost-sensitive work where the quality difference is not measurable. This is most of production.
Log every call: the model, input tokens, output tokens, task type, and whether it succeeded or failed. After a few hundred to a thousand calls you will have evidence for where the Opus tier earns its premium on your specific mix of work, instead of relying on aggregate benchmarks that may not match your workload.
Sources
Pricing, the effort setting, the Batch API half-rate, and the tokenizer guidance in this article are drawn from Anthropic primary documentation, captured as a July 2026 snapshot. Figures move; verify against the live pages before you budget. Benchmark comparisons are kept directional by design.
- Anthropic — Pricing. anthropic.com/pricing
- Anthropic — Models overview and model cards (documentation). platform.claude.com/docs/en/about-claude/models/overview
- Anthropic — Introducing Claude Opus 4.5 (pricing and efficiency context, November 2025). anthropic.com/news/claude-opus-4-5
- Anthropic — Effort and adaptive thinking (documentation). platform.claude.com/docs/en/build-with-claude/effort
- Anthropic — Batch processing, billed at half the standard rate (documentation). platform.claude.com/docs/en/build-with-claude/batch-processing
- Anthropic — Model migration guide, including tokenizer change notes for the Opus 4.7 generation. platform.claude.com/docs/en/about-claude/models/migration-guide