Digital and AI · Calculator

How much do AI tokens cost per request, day and month?

Choose a sample price option (OpenAI, Anthropic, Google; read from the official pages on 27 September 2026) or enter your own, set the tokens per request and the load, and see the cost of a request, a day, a month and a million requests, how many users the budget can cover and how much the cache saves and, optionally, how many tokens your text has and how much context is left.

Per the providers’ prices Formula shown Your data stays in your browser

Your data

1. Model and prices

A sample option fills in the prices per 1M tokens from the official page; for your own prices, choose “Your own prices” and fill in the fields below (with a sample option selected, they are not used).

Prices per 1M tokens from the official pages, checked 27 September 2026.
Only for “Your own prices”.
Zero if the provider does not charge for it separately.
2. Tokens per request

Four components separately, so that the economics of the cache are visible rather than hidden in a single “input” number.

The part of the request that is processed anew each time.
I don’t know this value

How to get this number

The API response contains a usage field with the number of input, cached and output tokens for a single request. For an average, divide the tokens per day from the provider’s usage dashboard by the number of requests.

What you can calculate without it: Requests per day, Applied: input per 1M, Applied: from cache per 1M, Applied: cache writes per 1M, Applied: output per 1M, Tokens in the system text, Tokens in the user’s text, Known input tokens in total, Window without the buffer

Repeated context that is read from the cache at a lower price.
How many tokens are written to the cache in this request; 0 if the cache is already warm.
The model’s response, including reasoning tokens if the provider counts them.
I don’t know this value

How to get this number

The API response contains a usage field with the number of input, cached and output tokens for a single request. For an average, divide the tokens per day from the provider’s usage dashboard by the number of requests.

What you can calculate without it: Requests per day, Applied: input per 1M, Applied: from cache per 1M, Applied: cache writes per 1M, Applied: output per 1M, Tokens in the system text, Tokens in the user’s text, Known input tokens in total, Window without the buffer

3. Load and budget

How many people and how often; the budget is optional, for working backwards.

Optional: how many users per day this amount can cover.
4. Tokens from text and context left (optional)

An estimate from characters, rounded up (underestimating tokens is riskier). If you know the exact number of tokens, enter it as characters and set “characters per token” to 1.

Optional: instructions, documents, schema.
Optional: the request, the conversation history.
A guideline: about 4 for English prose, fewer for Ukrainian, code and markup; not a universal constant.
I don’t know this value

How to get this number

Paste a sample of your text into the model provider’s tokeniser (on its website or via a token counter in the API) and divide the number of characters by the number of tokens you get.

What you can calculate without it: Cost of one request, Per month, Per day, Requests per day, A million requests, A million users per day (per month), Applied: input per 1M, Applied: from cache per 1M, Applied: cache writes per 1M, Applied: output per 1M, Tokens in the user’s text, Window without the buffer

A separate factor, because the user’s language and style are different.
What the wrapper adds: tool descriptions, schemas, retrieved snippets.
How many tokens you leave the model for its response.
From the model’s documentation.
For hidden wrapper tokens, estimation error and future messages.

How we calculate

  1. cost per request = Σ (component tokens ÷ 1,000,000 × component price per 1M)
  2. requests per day = users × requests per user; per day = cost per request × requests per day; per month = per day × days
  3. a million requests = cost per request × 1,000,000; a million users per month = cost per request × 1,000,000 × requests per user × days
  4. users the budget can cover = budget ÷ (cost per request × requests per user × days)
  5. cache saving = cached tokens ÷ 1,000,000 × (input price − cache read price), no less than zero
  6. tokens from text = (characters ÷ characters per token), rounded up; known input = system + user + tools; buffer = window × percentage; context left = window − buffer − known input − response budget (no less than zero); characters that still fit = context left × characters per token

Assumptions

  • Sample option prices are a snapshot of the providers’ official pages as of 27 September 2026, in US dollars: Standard tier, short context, without batch discounts, regional surcharges or taxes. change
  • Cached tokens are charged at the cache read price; cache storage (hourly at Google) is not taken into account.
  • Estimating tokens from characters is a heuristic with rounding up; the factor depends on the tokeniser, the language, code and markup. change

Limitations

  • Not modelled: batch and priority tiers, long context with higher prices, regional surcharges, taxes, volume discounts, the cost of tools (search, containers), images and audio, cache storage.
  • Tokens from text are an estimate, not a tokeniser; hidden tokens of the provider’s wrapper and system messages are not visible.

Sources

Questions and answers

Why are input tokens split into three kinds?

Because providers charge different amounts for them: tokens without cache at the full price, cache reads several times cheaper, and cache writes on some tiers more than regular tokens. A single “input” number would hide the economics of the cache.

How accurate are the sample options?

They are a snapshot of the official pages on the check date: Standard tier and short context, in US dollars. Batch and priority tiers, long context, regional surcharges and volume discounts are not included. For those, choose “Your own prices”.

Is this a real tokeniser?

No. Section 4 divides characters by a factor and rounds up, because underestimating tokens is riskier than overestimating them. The exact count comes from the provider’s response or its counting tool; enter it as characters with a factor of 1.

Related tools

This is an estimate of costs at the providers’ published prices, not an invoice. Providers change their pricing; check against your own account before deciding.

Formula version ai-api-cost@1.1.0 · checked 27 September 2026

Checked by the Calc editorial team: three independent implementations of the formula, test cases and the live page on a phone. Last check: 27 September 2026