LLM Cost Calculator

Estimate the cost of an LLM API call from your token counts and pricing.

Presets are Anthropic's published first-party API prices at the time this tool was built — always verify current pricing on the provider's own pricing page before budgeting, since prices change.

$0.00Cost per request
$0.00Total cost

What is the LLM Cost Calculator?

LLM providers typically price input and output tokens separately, per million tokens, and output tokens usually cost more than input tokens. This tool multiplies your token counts by a price you supply to estimate the cost of a request, or a batch of requests.

How to use it

  1. Enter your input and output token counts (use the AI Token Counter if you need an estimate first).
  2. Enter the provider's per-million-token price for input and output, or pick one of the Claude pricing presets.
  3. Optionally set a number of requests to estimate a total cost across a batch.

A note on pricing accuracy

LLM pricing changes over time and varies by provider and model. The presets here reflect Anthropic's own published API pricing as verified when this tool was built — they are not guaranteed to still be current, and no other provider's pricing is pre-filled here to avoid presenting a number that could be wrong. Always check the provider's own current pricing page before making a real budgeting decision; this tool is for quick estimation, not as an authoritative price source.