LLM API cost calculator
Enter monthly input and output tokens; get the bill for every model, cheapest first.
Token counter and cost per call
Paste text; get an estimated token count and what one call costs on each model.
Model lookup and code snippet
Type a model ID; see the endpoint type, the price, and a runnable curl or Python snippet.
How the numbers work
Every page fetches /api/pricing, the same endpoint the model catalog uses. One unit of model ratio equals $2 per 1M input tokens; output multiplies that by the model completion ratio; cached input multiplies it by the cache ratio. Nothing is hardcoded, so the tools match billing after every price change.