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
| Line | Tokens | Official | With 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.
| Model | Input | Write 5m | Write 1h | Cache read | Output |
|---|---|---|---|---|---|
| Opus 5.5 | 4 | 5 | 8 | 0.20 | 20 |
| Sonnet 5.5 | 2 | 2.50 | 4 | 0.10 | 10 |
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.
| Turns | No cache | 5-minute cache | 1-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
- Default lifetime is 5 minutes. A longer pause turns the next turn from a read into a fresh write.
- Prefixes under 512 tokens are not cached for the 5.5 generation.
- Editing tool definitions, injecting a fresh timestamp into the system prompt, or switching between normal and fast mode all change the prefix.
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 · Русская версия