Simon Willison升級「Claude Token Counter」工具
AI 語音朗讀 · Edge TTS
Simon Willison升級「Claude Token Counter」工具,揭露Claude Opus 4.7 tokenizer變化導致token數暴增,實際成本大幅上漲。
Simon Willison於2026年4月20日發布部落格文章,升級其「Claude Token Counter」工具(https://tools.simonwillison.net/claude-token-counter),新增多模型比較功能,證實Claude Opus 4.7相較Opus 4.6的tokenizer更新造成token數激增,雖然定價不變,但等同價格大幅提高。
工具升級與比較功能
Willison的工具現支援同時對比不同Claude模型的token計數,雖然Claude token counting API接受所有模型ID,但因Opus 4.7為首個改變tokenizer的版本,主要聚焦4.7與4.6比較,也包含Sonnet 4.6及Haiku 4.5選項。
工具連結:https://tools.simonwillison.net/claude-token-counter
詳細文章:https://simonwillison.net/2026/Apr/20/claude-token-counts/
Opus 4.7 tokenizer變化
Anthropic在Opus 4.7公告中稱,新tokenizer改善文字處理,但權衡下相同輸入會映射更多token,約1.0–1.35倍,取決於內容類型。Willison實際測試Opus 4.7系統提示,發現相較Opus 4.6,token數達1.46倍,遠高於Anthropic預估範圍。
定價與成本衝擊
Opus 4.7維持與4.6相同定價:輸入每百萬token 5美元、輸出每百萬token 25美元。但因token膨脹,預期成本約增加40%,這是Willison直指的「相當大的價格上漲」(pretty big price bump)。
圖像token激增
- Opus 4.7強化高解析圖像支援,可接受長邊達2,576像素(約3.75百萬像素)的圖像,是先前Claude模型的三倍以上。
- Willison測試一張3456 × 2234像素、3.7MB的PNG圖像,Opus 4.7 token數為Opus 4.6的3.01倍,漲幅更劇烈。
社群驗證與token膨脹證據
Bill Chambers回應Willison,分享社群示範工具(https://tokens.billchambers.me/),包含數百個prompt實例,清楚顯示token-inflation現象,證實這是真實問題,而非單一案例。Willison的觀點帶有批判意味,強調Anthropic公告低估了實際影響,使用者需警惕隱藏成本。
I upgraded my Claude token counter tool to compare different models and Opus 4.7 does appear to use 1.46x times the tokens for text and up to 3x the tokens for images - it's priced the same as Opus 4.6 on a per-token basis so this is actually a pretty big price bump pic.twitter.com/PPGrwHf39D
— Simon Willison (@simonw) April 20, 2026
Here's that tool: https://t.co/Gi1BFVagKG
— Simon Willison (@simonw) April 20, 2026
More on my blog: https://t.co/hMsW9ie3DX
@simonw https://t.co/oYP1IXRBA8
— Bill Chambers (@bllchmbrs) April 20, 2026
There's a community demonstration of hundreds of prompts - you can see token-inflation - it's real pic.twitter.com/AcV5966MME
