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.

A worked example

Suppose each request sends 1,500 input tokens and gets 500 output tokens back, on a model priced at US$3.00 per million input tokens and US$15.00 per million output tokens. These prices are illustrative, not any provider’s actual rates. Each request then costs US$0.012; at 1,000 requests a day that is US$12.00 a day, or about US$360.00 over 30 days.

Providers usually publish their prices in US dollars, so for a New Zealand business the cost in NZD moves with the exchange rate. The currency converter gives a reference figure in NZD.

Estimating your own workload

  1. Measure or estimate the typical input and output tokens for one request.
  2. Estimate requests per day, including retries and background jobs.
  3. Enter both in the AI API cost calculator and compare models on the same workload, using published prices or your own.

Model prices change often. The calculator shows the date each price was last checked against the provider’s pricing page. Once a feature is live, re-run the estimate with your real token counts and request volumes: usage often grows as people come to rely on a feature, and the first estimate is only a starting point.