Skip to content

AI Cost Calculators

Plan the running cost of AI features before you ship them. Turn token usage into dollars per request, per day and per month, using published model prices or your own.

  • Estimate AI API costs from input and output tokens, request volume and per-million-token prices for popular models.

Why AI API costs are hard to predict

AI APIs bill by the token, separately for what you send (input) and what the model writes (output). Costs scale with three things you control: how much context you send, how long responses are, and how many requests you make.

  • Context grows quietly. Chat history, retrieved documents and tool definitions are all input tokens on every request.
  • Output is pricier. Output tokens usually cost several times more than input tokens.
  • Discounts and surcharges. Caching and batch processing can cut costs; long-context and special token types can raise them.

Start with the AI API cost calculator, then compare models on the same workload.