What one request actually costs

A request is not one price. The API splits tokens into four lines and bills each at its own rate. Guess with “input price × all tokens” and cache reads get charged at full input price, which can be several times off. Fill in the numbers from usage and the calculator shows the official cost, your group's cost, and the gap.

Model

Tokens in this request

— applies to every line, not only to input and output

Result

LineTokensOfficialWith multiplier
New input———

The prices behind it

Dollars per million tokens. The 5.5 generation reads cache at 5% of input price, not 10% like the older grid — that is why year-old calculators overstate cache cost by half.

ModelInputWrite 5mWrite 1hCache readOutput
Opus 5.54580.2020
Sonnet 5.522.5040.1010

Prices are taken from the provider's public price page. Check them against your own provider's page before relying on the total.

A cached prefix of 80k tokens, three ways

Only the prefix is counted, without the new question and answer next to it.

TurnsNo cache5-minute cache1-hour cache
2$0.64$0.416$0.656
10$3.20$0.544$0.784

Cache writes on 5 minutes cost 1.25× input; on 1 hour, 2× input. That is why a long cache only pays off from the third turn: two turns of 1-hour cache cost more than no cache at all.

Where the cache silently stops working

Use it against any gateway

Set the multiplier to 1 to get the official cost, or to your group's factor to get what you are charged. If a gateway cannot show usage split into these lines, there is nothing to compare against — that is the first thing worth checking before paying.

OtterAPI is a pay-as-you-go gateway to Claude and GPT with no subscription. Trial code OTTER01 gives $0.1, enough to confirm that usage comes back in four lines. Pricing · Русская версия