Claude Code cost calculator

A Claude token cost calculator set to the size of a real Claude Code request: a long cached prefix, a few thousand new tokens and about a thousand out. Pick a Claude model and read the same workload at Anthropic's list price and at ours. 13 Claude models, rates from the live catalog.

Per million tokens here: $2.72 in, $0.1455 cached, $9.70 out. Anthropic's list: $4.00 in, $0.2000 cached, $20.00 out.

WorkloadAt Anthropic's list priceHereSaving
One request$0.0715$0.0456$0.0258 (36%)
150 requests a day$10.72$6.85$3.87 (36%)
A month of 30 days$321.56$205.36$116.20 (36%)

Rates per million tokens from the live catalog when this page was built, rebuilt at most every five minutes. Cached tokens bill at the cached rate, or the input rate on a model without one; cache writes are not counted. A real request is billed on the model's own token count.

What a Claude Code request looks like

In the seven days to October 23, 2026, 4,420 Claude requests on UplinkSwitch reused more than 10,000 cached tokens, the shape Claude Code and other agent loops send. They averaged 126,294 cached tokens, 6,255 new input tokens and 1,059 output tokens each. Across every Claude request that week, cache reads were 78.7% of the tokens billed.

On Claude Opus 5.5 at today's rates, the cached tokens are 40% of what that request costs here: $0.0456 a request, against $0.0715 at Anthropic's list price.

For a session you already ran, the bill rewriter reads an Anthropic usage export and prices every line here. For plans against pay-per-token, read Claude Code pricing.

Claude token cost calculator questions

At the request size above, one Claude Opus 5.5 request costs $0.0456 here and $0.0715 at Anthropic's list price. 150 requests a day for 30 days is $205.365 here and $321.5646 at list.

Claude Code sends the whole conversation, the files it read and its tool results again on every turn, and most of that is a cache hit. In the week to October 23, 2026, cache reads were 78.7% of every Claude token billed here. On Claude Opus 5.5, cached input is $0.1455 per million tokens against $2.716 for new input, so the cached share of the tokens is far larger than its share of the cost.

They are the averages of the 4,420 Claude requests on UplinkSwitch that reused more than 10,000 cached tokens in the seven days to October 23, 2026: 126,294 cached, 6,255 new input and 1,059 output tokens. 150 requests a day is the steady day on the Claude Code pricing post. Change any of them to match your own sessions.

No. Cache writes are the first time a prefix is stored, billed once per new prefix, and the catalog does not list a separate rate for them. The console lists every request with its tokens and its charge.

Set ANTHROPIC_BASE_URL to https://api.uplinkswitch.com/v1 and ANTHROPIC_AUTH_TOKEN to a key from the console, then start claude. The Claude Code guide has the full setup.

No. The rates arrive with the page and the arithmetic runs in your browser.
Join on Telegram
Help