Claude 4.7 Opus token & cost calculator
Claude 4.7 Opus is Anthropic's premium reasoning model — the one you reach for when the task is genuinely hard and correctness is the product. At $5 input / $25 output per million tokens it's the priciest model in this calculator, but far more accessible than the Opus generation before it: the 4.7 rate is about 1.7× Claude 4.5 Sonnet, not the 5× premium Opus used to command. It also carries the full 1,000,000-token context window — 5× Sonnet's 200K.
The discipline that keeps Opus economic is still routing. Send the easy majority of requests to Sonnet or Haiku and reserve Opus for the ones that actually need its reasoning. The price cut makes a 100%-Opus workload far less catastrophic than it used to be, but Sonnet is still cheaper per token — so route by difficulty, not by default.
Saved scenariosnone yet
Saved on this browser only — never uploaded. Up to 10 scenarios.
Tip: save a scenario when you have a prompt + model + response length you might revisit. Useful for sizing features before committing to a vendor.
Verify privacysince this page loaded — updates live
Open DevTools → Network. Type into the calculator. No request bodies should contain your prompt text.
Pricing
Opus is flat-priced — no tier surcharge, even across its full million-token context. Output is 5× input ($5 → $25 per million), the same input-to-output ratio as Sonnet and Haiku; only the absolute numbers are higher.
| Tier | Input $/M | Output $/M |
|---|---|---|
| All input | $5 | $25 |
| Context window | 1,000,000 tokens | |
Verified against platform.claude.com on 2026-07-05.
Worked examples
Concrete scenarios at Opus 4.7's $5/$25 rate — from a short turn up to the large single-call inputs its million-token window now allows. The calculator above uses the same math; paste a real prompt to price it exactly.
| Scenario | Input | Output | Cost |
|---|---|---|---|
Short chat turn A one-off question with a small system prompt. | 800 | 400 | $0.014 |
Deep reasoning task A hard problem with context and a long, reasoned answer. | 20,000 | 4,000 | $0.200 |
400K-token input A large codebase or document set — the kind of call Opus 4.7's 1M window unlocks. | 400,000 | 6,000 | $2.15 |
Near-full context Close to the million-token ceiling in a single request. | 900,000 | 8,000 | $4.70 |
Read these as a budget for selective use. Opus earns its price when a slice of high-stakes requests justifies the premium over Sonnet; at ~1.7× Sonnet's rate that gap is smaller than it was, but on a high-volume workload it still compounds — which is why difficulty-based routing beats defaulting everything to Opus.
How is this counted?
Opus 4.7 uses Anthropic's newer tokenizer, which produces roughly 30% more tokens than the previous Claude encoding on the same text. Anthropic doesn't publish a client-side tokenizer, so we approximate: count with cl100k_base (gpt-tokenizer, MIT), then apply a ~1.3× calibration to track the newer tokenizer's higher count. That makes Opus estimates rougher than for older Claude models — budget ±10%, not ±2% — so treat the number as a planning figure and reconcile against the API response headers. Inputs over 50,000 characters run in a Web Worker.
FAQ
When is Opus 4.7 actually worth it?
How do I avoid runaway Opus bills?
How accurate is the Opus token count?
What is the context window?
How does it compare to Gemini 2.5 Pro's long context?
Compare against every other model
To see this exact prompt scored against every supported model, sorted by total cost, paste it into the home calculator and toggle Compare across all models. Numbers are exact for OpenAI and approximate for Claude and Gemini — within ±2–3% for most, wider for Opus 4.7's newer tokenizer.
Related models
The natural comparison set: Sonnet (the model most workloads should default to before reaching for Opus), Haiku (the budget option for the routing layer below Opus), and Gemini 2.5 Pro (the cross-vendor long-context option with tiered pricing).