What a task costs on Opus 5.5
https://claude.com/blog/what-a-task-costs-on-opus-5-5📌 Opus 5.5 憑什麼比 Opus 5 便宜三成?
TL;DR:Anthropic 拆解 Claude Code 任務的成本結構,說明 Opus 5.5 降價背後省的到底是哪筆錢。
同樣的每 token 單價,兩個模型跑同一個任務的帳單可以差到一倍以上,因為真正燒錢的不是「單價」,而是「跑了幾輪」。
🤔 一個任務的成本,其實是一個迴圈的成本
Anthropic 在這篇由 Addy Osmani 撰寫的文章中指出,Claude Code 裡的一個任務本質上是一個迴圈:模型讀取對話紀錄、呼叫工具、讀取結果,然後重複這個過程直到完成。每繞一圈就是一次 request,而每次 request 都會把「目前為止的對話」整包重送一次。也就是說,輪數(turns)愈多,重複傳送的成本就愈高,就算單價完全相同。
🧩 決定帳單的四個因素
文章把成本拆成四塊:
- 輪數(Turns):每一輪都要重送先前的對話,輪數愈少,處理的 input 就愈少。
- 快取讀取(Cache reads):大部分重送的內容其實是上一輪已經看過的文字,會以 cache read 計費,價格只有 input 價的一小部分。
- 輸出 token 類型:輸出(包含 thinking/推理過程)是最貴的 token 類型,文中提到約為 input 價的五倍;使用者只會看到摘要,但這些推理 token 全部都要付費。
- 模型:每個模型有自己的定價表,選哪個模型就決定了每一種 token 的價格。
文中以 Opus 5.5 的 API 定價為例:每百萬 input token 4 美元、output token 20 美元、cache read 0.20 美元。
📊 輪數怎麼影響帳單:一個範例
文章舉了一個範例:任務一開始 context 是 2 萬 token,隨著模型讀檔案與工具結果成長到 12 萬 token。
- 若跑 40 輪,平均每輪要送出約 7 萬 token,整個任務累積約 280 萬 input token;若有 90% 命中快取,input 成本約 1.62 美元。
- 若同樣的任務只跑 25 輪,累積約 175 萬 token,input 成本約 1.02 美元。
同樣的 280 萬 token,若完全沒有快取命中則要價約 11.2 美元;命中率 90% 降到 1.62 美元;命中率提升到 96% 則約 0.99 美元。文章強調,快取命中率是唯一能把 input 成本壓低到這種幅度的因素。至於輸出端,一個典型任務約 6 萬個 output token,換算成本約 1.2 美元,相當於從快取讀 600 萬 token 的價格,這也是為什麼「思考量」(thinking,計入 output)的多寡對帳單影響很大。
💡 Opus 5.5 到底改了什麼
文章指出 Opus 5.5 有兩處變動:單價下降,以及模型完成任務所需的工作量改變。
- Input 與 output 單價都比 Opus 5 便宜 20%。
- Cache read 價格便宜 60%,從 input 價的十分之一降到二十分之一(反推換算,Opus 5 的 cache read 價格約落在 0.5 美元/百萬 token 上下)。
- 在 Pro、Max、Team 方案上,較低的 Opus 5.5 價格也會反映到用量額度,官方表示額度大約可以多用 25%。
文章用一個「相同 token 數,只換模型」的範例來隔離出純粹的價格效應:同一個工作階段若在 Opus 5 上要價 3.5 美元,換算到 Opus 5.5 大約便宜 31%。這還只是價格變動本身的效果;如果 Opus 5.5 實際跑同一任務所需的輪數更少(例如減少「走錯路再重試」的情況),實際省下的金額會更多,但文章也提醒這一點因任務而異,需要各自實測。
⚠️ 省 token 不等於省錢
文章特別點出一個容易忽略的取捨:降低 effort、換用更小的模型、或減少 context,確實都能省下 token,但如果因此導致任務失敗需要重跑,一次 retry 的成本很可能超過原本省下的錢。換句話說,每一種「省 token」的做法,都可能以「任務做不完」為代價。
🎯 實務啟示
文章給出的具體建議是:讓模型有辦法自行檢查工作成果,例如可執行的測試、build 流程,或是能直接呼叫的驗證腳本,這樣模型能更早抓到自己的錯誤,減少不必要的來回輪數;同時盡量在一次工具呼叫中批次蒐集所需資訊,避免同樣的內容被重複重送。若想量化自己團隊的實際狀況,文章建議在任務結束後執行 /usage 指令,直接讀出該次 session 的 input、output 與 cache 數據,再依自己的定價與輪數重新試算,而不是直接套用文章中的示意數字。
🔗 來源
- 標題:What a task costs on Opus 5.5
- 作者/機構:Addy Osmani, Anthropic
- 連結:https://claude.com/blog/what-a-task-costs-on-opus-5-5
#Anthropic #ClaudeCode #Opus55 #LLM #AIcost #TokenEconomics #AIEngineering #PromptCaching #DeveloperTools #AIProductivity
原始資料 Claude Blog · 收集於 2026-09-22
摘要原文
What a task costs on Opus 5.5 Opus 5.5 costs less per token than Opus 5. Category Claude Code Product Claude Code Date September 22, 2026 Reading time 5 min Share Copy link https://claude.com/blog/what-a-task-costs-on-opus-5-5 Author(s) Addy Osmani The cost of a task, and the cost of a retry You don't set out to buy millions of tokens. You set out to build a feature, finish a migration, or run a task. The token count is whatever the model needed to get there. Two models with the same cost per token can cost very different amounts on the same task. One reads the code once. The other reads it, tries a fix, and reads it again. Each of those steps is a turn, and each turn resends the conversation so far. So the model that needs more turns costs more, even at the same price. By the end of this post you should be able to answer three questions about your own work: What do my typical tasks cost me on Opus 5.5? Which settings change that, and by how much? How do I check my own session usage? The tradeoff I want to share upfront is that every way to spend fewer tokens can also cost you a finished task. Lower effort, a smaller model, or less context can all certainly save tokens. A retry costs more than those savings. This post attempts to put a price on each tradeoff. Some numbers here are list prices, and some are illustrations built from them. The figures are interactive, so change the inputs as you read. These are best effort illustrations, so be sure to check our docs and your own math. What does a task cost? A task in Claude Code is a loop. The model reads the conversation, calls a tool, reads the result, and goes round again until it's done. Each trip round the loop is one request. Four things set what the loop costs. Turns. Every turn resends the conversation so far. Fewer turns means less input processed. Cache reads. Most of what a turn resends is text the model saw on the previous turn. It's billed as a cache read, at a small fraction of the input price. Output token type. The most expensive tokens, at five times the input price. Thinking is billed as output, so a model that reasons less on the way to the answer costs less. Model. Each model has its own prices, listed on the pricing page, so the model you pick sets the price of every token. Our examples use Opus 5.5 API list prices: $4 per million input tokens, $20 per million output tokens and $0.20 per million cache reads. Like the calculator further down, the examples bill cached input at the read price and everything else at the input price, and leave out cache writes. The token counts are illustrations. Turns Let’s say a task starts with 20K tokens of context and grows to 120K as the model reads files and tool results. At 40 turns, the average turn sends about 70K tokens. That's about 2.8M input tokens for the task, though the conversation never grew past 120K. With 90% read from cache, the input costs about $1.62. The same task in 25 turns processes about 1.75M tokens and costs about $1.02 in input. A turn costs more than the tokens it adds, because it resends everything before it. So the cheapest turn is the one you don't need. One habit that can cut turns is giving the model a way to check its work. For example, a test to run, a build, or a script that calls the endpoint. A model that can check its own work finds its mistakes earlier. A model that gathers what it needs in one pass, and batches its tool calls, pays the resend fewer times too. Cache reads The same 2.8M input tokens cost $11.20 if none come from cache. At a 90% hit rate they cost $1.62, and at 96% about $0.99. No other setting moves input cost this much. A steady session keeps a high hit rate on its own. I cover some actions to avoid breaking your cache later in this post. Output tokens On Opus 5.5, an output token costs 100 times a cache read. The 60K output tokens of a typical task cost $1.20, the same as reading 6M tokens from cache. Output includes thinking. You pay for all of it, even when Claude Code only shows you a summary. That's why effort, which mostly changes how much the model thinks, moves the bill so much. Model A model with cheaper cache reads mostly helps long sessions. One with cheaper output mostly helps tasks that need a lot of reasoning. What changed in Opus 5.5 Two things changed: the price, and how much work the model does. Every price line is lower. Input and output tokens are 20% cheaper than on Opus 5. Cache reads are 60% cheaper. The input price falls, and the read rate falls with it, from a tenth of the input price to a twentieth. Fig A compares the two models per million tokens. These are API list prices. On a Pro, Max or Team plan, the lower Opus 5.5 price is passed on to your limits, including cached context, so they go about 25% further than on Opus 5. The extra cut on cache reads is an API price change. Fig A. Price per million tokens. On an API key, the cache-read price cut matters most for Claude Code. A long agentic session spends most of its input on cache reads. In the session priced in Fig B below, the cache line falls from $1.00 to $0.40, the largest drop on the receipt. How much you save depends on the shape of your work. A session that is mostly cache reads can save up to 60% on input. A short question with no cache and a long answer can save up to 20%, because output dominates it. Most Claude Code tasks sit between the two. The calculator below shows where yours sits. Opus 5.5 can use more tokens on an answer, because it always thinks before it replies. We expect people to get more done on Opus 5.5, but it varies by task, so measure it on your own work. Fig C compares cost per task on the two models. This part depends on your work far more than the price does. On a well-scoped task, both models finish in about the same number of turns, and the price cut is all you get. The gap should be biggest on open-ended tasks, where a model can spend many turns on the wrong idea. No single number holds for every codebase, so measure it (see the last section). Long runs end with a report. Opus 5.5 closes a long run with what it changed, what it found, and what it needs from you. That can save money too, because you rerun a session less often when you can see what happened. The same tasks side-by-side Fig B prices one session on both models with the same token counts. So the difference is the price change and nothing else. Switch models to compare. The token counts are illustrative. Same task on Opus 5 On Opus 5.5 $3.50 at Opus 5 list prices Fig B. Illustrative session with the same tokens on both models, so this is the price change alone. Fig B. Illustrative session with the same tokens on both models, so this is the price change alone. The receipt has the three lines /usage shows for a session. Cache reads are the biggest line by tokens, at 2M. Output is the smallest by tokens and the biggest by cost. Fresh input sits between them. It covers the first read of each file and each new tool result. Fig B gives both models the same token counts, so it shows the price change alone. Your own sessions can use more or fewer tokens on Opus 5.5. Priced that way, the session costs about 31% less. A recorded run adds the second effect, the change in how much work the model does. On a task with a false start, the gap should widen. Try your own numbers Set what one of your tasks uses, or start from a preset. The presets are pretty illustrative but I’d still recommend doing your own math. Cached input bills at the cache-read price and fresh input at the input price, so the cache slider shows how much of the gap comes from cache reads. To fill the sliders from a real session, run /usage at the end of a task. The Session block gives input, output and cache figures. The last slider is your assumption about how much less work Opus 5.5 does on your tasks. Leave it at 0% for the price change alone. To set it from your own work, here's how: run the same task on Opus 5 and on Opus 5.
由 claude-code/sonnet 自動生成