How to calculate API token cost
When prices are quoted per million tokens, divide the input-token count by one million and multiply by the input price. Repeat with output tokens and the output price, then multiply the combined result by the expected request count for a batch.
The tool intentionally has no built-in model prices, which prevents stale static values and avoids authenticated pricing requests. Obtain prices in one currency and billing unit from the current model catalog or provider price page first.
- Shows input and output charges separately
- Supports USD and CNY labels
- Uses request count only for batch estimates
- Calculates entirely in the current page