AIニュース最前線
最新ニュースAI日報Hacker日報週報動画AIツールトレンド企業

AIニュース最前線

世界中のAI最新情報を日本語で毎時更新

最新ニュース日報トレンド企業プレミアムRSS
© 2026 ainew.jp特定商取引法に基づく表記
ニュース一覧元記事を開く
Simon Willison Blog·2026年4月20日 09:50·約2分で読める

Claudeトークンカウンター、モデル比較機能を追加

#Claude#トークナイザー変更#APIコスト管理#マルチモーダル処理#Anthropic
TL;DR

Simon WillisonがClaude Opus 4.7のトークナイザー変更によるテキスト・画像のトークン数増加分を実測し、同等価格ながら実質コストが約40%上昇する可能性を示した。

AI深層分析2026年4月20日 10:12
4
重要/ 5段階
深度40%
4
関連度30%
5
実用性20%
4
革新性10%
3

キーポイント

1

Opus 4.7のトークナイザー変更とトークン膨張

Anthropicが発表したOpus 4.7は新しいトークナイザーを採用し、テキストでは最大1.35倍(実測1.46倍)、高解像度画像では約3倍のトークン数となる。

2

API単価据え置きによる実質コスト上昇

Opus 4.7のトークン単価は4.6と同額($5M/$25M)だが、トークン消費量の増加により実質的なAPI利用コストが約40%程度上昇する見込み。

3

ツール機能の強化と画像処理能力の向上

作者の「Claude Token Counter」が複数モデルの比較と高解像度画像(最大2576px)のトークンカウントに対応し、開発者のコスト検証を支援する。

影響分析・編集コメントを表示

影響分析

本記事はClaude Opus 4.7のトークナイザー変更がAPI利用コストに直結する実務的な影響を定量的に示した。開発者は単なるモデル性能の向上だけでなく、トークン消費量の増加分をコスト試算に組み込む必要があり、特に画像処理を多用するアプリケーションの設計見直しが必要となる。

編集コメント

トークン単価が据え置きでも消費量が増加する「実質値上げ」は、モデル移行時のコスト見積もりにおいて必須のチェックポイントとなる。開発者はAPI利用前に新旧トークナイザーの差異をツールで検証し、予算計画に反映させるべきだ。

Claude Token Counter、モデル比較機能付き

私は、異なるモデルに対して同じカウントを実行して比較できる機能を追加するため、Claude Token Counterツールをアップグレードしました。

私の知る限り、Claude Opus 4.7はトークナイザー(tokenizer)を変更した初のモデルであり、そのため比較を行うのは4.7と4.6の間で意味があります。ただし、Claudeのtoken counting APIは任意のClaudeモデルIDを受け付けるため、主要な現在の4つのモデル(Opus 4.7および4.6、Sonnet 4.6、Haiku 4.5)のすべてのオプションを記載しました。

Opus 4.7の発表においてAnthropicは述べています:

Opus 4.7はテキストの処理方法を改善した更新版トークナイザー(tokenizer)を採用しています。その代償として、同じ入力でもより多くのトークンにマッピングされる可能性があり、コンテンツの種類によっては約1.0〜1.35倍になります。

私はOpus 4.7 system promptをtoken counting toolに貼り付けましたが、その結果、Opus 4.7のトークナイザー(tokenizer)はOpus 4.6の約1.46倍のトークン数を使用することがわかりました。

image
image

Opus 4.7はOpus 4.6と同じ価格体系を採用しています(入力トークン100万個あたり5ドル、出力トークン100万個あたり25ドル)ですが、このトークン膨張(token inflation)により、コストは約40%高くなると予想されます。

このtoken counterツールは画像も受け付けます。Opus 4.7は高解像度画像のビジョン処理(vision)が向上しており、長辺が最大2,576ピクセル(約3.75メガピクセル)の画像を受け付けることができます。これは以前のClaudeモデルの3倍以上です。

私は3456 × 2234ピクセル、3.7MBのPNG画像でトークンカウントを試したところ、さらに大きな増加を確認しました。4.7は4.6と比較してトークン数が3.01倍になりました:

image
image

タグ:ai, generative-ai, llms, anthropic, claude, llm-pricing, tokenization

原文を表示

Claude Token Counter, now with model comparisons

I upgraded my Claude Token Counter tool to add the ability to run the same count against different models in order to compare them.

As far as I can tell Claude Opus 4.7 is the first model to change the tokenizer, so it's only worth running comparisons between 4.7 and 4.6. The Claude token counting API accepts any Claude model ID though so I've included options for all four of the notable current models (Opus 4.7 and 4.6, Sonnet 4.6, and Haiku 4.5).

In the Opus 4.7 announcement Anthropic said:

Opus 4.7 uses an updated tokenizer that improves how the model processes text. The tradeoff is that the same input can map to more tokens—roughly 1.0–1.35× depending on the content type.

I pasted the Opus 4.7 system prompt into the token counting tool and found that the Opus 4.7 tokenizer used 1.46x the number of tokens as Opus 4.6.

Screenshot of a token comparison tool. Models to compare: claude-opus-4-7 (checked), claude-opus-4-6 (checked), claude-opus-4-5, claude-sonnet-4-6, claude-haiku-4-5. Note:
Screenshot of a token comparison tool. Models to compare: claude-opus-4-7 (checked), claude-opus-4-6 (checked), claude-opus-4-5, claude-sonnet-4-6, claude-haiku-4-5. Note:

Opus 4.7 uses the same pricing is Opus 4.6 - $5 per million input tokens and $25 per million output tokens - but this token inflation means we can expect it to be around 40% more expensive.

The token counter tool also accepts images. Opus 4.7 has improved image support, described like this:

Opus 4.7 has better vision for high-resolution images: it can accept images up to 2,576 pixels on the long edge (~3.75 megapixels), more than three times as many as prior Claude models.

I tried counting tokens for a 3456 × 2234 pixel 3.7MB PNG and got an even bigger increase in token counts - 3.01x times the number of tokens for 4.7 compared to 4.6:

Same UI, this time with an uploaded screenshot PNG image. claude-opus-4-7: 4,744 tokens, 3.01x (yellow badge). claude-opus-4-6: 1,578 tokens, 1.00x (green badge).
Same UI, this time with an uploaded screenshot PNG image. claude-opus-4-7: 4,744 tokens, 3.01x (yellow badge). claude-opus-4-6: 1,578 tokens, 1.00x (green badge).

Tags: ai, generative-ai, llms, anthropic, claude, llm-pricing, tokenization

この記事をシェア

関連記事

The Zvi★42026年6月2日 23:05

Claude Opus 4.8:機能と反応について

Zvi は、新モデル「Claude Opus 4.8」の理解には多数のデータポイントが必要であり、限られたベンチマークからの評価は誤解を招くと指摘し、多様なソースからの数十件のテスト結果やモデルカード情報を統合して初めて一貫したパターンが形成できると述べています。

The Register AI/ML★42026年6月2日 03:12

AI バブルの頂点に立つアンソロピック、IPO 申請へ

AI スタートアップ企業「アンソロピック」は、米証券取引委員会(SEC)に非公開の S-1 提出書を提出し、株式公開(IPO)を申請した。同社は直近の資金調達で競合他社である OpenAI の評価額を上回っており、業界の動向が注目されている。

TLDR AI★42026年6月1日 09:00

Claude Opus 4.8:システムカード(40 分読了)

Anthropic は Claude Opus 4.7 からわずか 6 週間で、より賢く長時間タスクを実行可能な新バージョン「Opus 4.8」をリリースし、多数の新機能を追加した。

ニュース一覧に戻る元記事を読む