Household and savings

AI Token Cost Calculator

Estimate API spend from monthly input and output token volumes and your model's current per-million-token prices.

Quick math0

Use this for quick arithmetic, percentages, or to check figures while filling in the main tool, without leaving the page.

Your figures

Estimate

Estimated monthly API cost: $4.50 USD

Estimated monthly cost
$4.50 USD
Input token cost
$2.00 USD
Output token cost
$2.50 USD
Annualized estimate
$54.00 USD

How this breaks down

Input tokens per month
1,000,000
Output tokens per month
250,000
Input rate per 1M tokens
$2.00 USD
Output rate per 1M tokens
$10.00 USD

Estimate uses editable standard input and output rates. Prices vary by model and can change; cached tokens, tools, images, audio, batch discounts, and other charges are excluded.

How to use this tool

  1. Use AI Token Cost Calculator for the question described above, and check that the inputs match your records and time period.
  2. Enter monthly input tokens.
  3. Enter monthly output tokens.
  4. Enter input price per 1 million tokens (usd).
  5. Enter output price per 1 million tokens (usd).
  6. Change monthly input tokens, monthly output tokens, input price per 1 million tokens (usd), output price per 1 million tokens (usd) to compare scenarios, then check the units in the result.

Worked example with the prefilled values

This example shows how AI Token Cost Calculator uses its starting values. Change the calculator inputs to estimate your own situation.

Monthly input tokens
1000000 tokens/month
Monthly output tokens
250000 tokens/month
Input price per 1 million tokens (USD)
2 USD/1M tokens
Output price per 1 million tokens (USD)
10 USD/1M tokens

Estimated monthly API cost: $4.50 USD

  • Estimated monthly cost$4.50 USD
  • Input token cost$2.00 USD
  • Output token cost$2.50 USD
  • Annualized estimate$54.00 USD

Estimate uses editable standard input and output rates. Prices vary by model and can change; cached tokens, tools, images, audio, batch discounts, and other charges are excluded.

Formula and calculation logic

Input cost = monthly input tokens ÷ 1,000,000 × input price per million tokens

Output cost = monthly output tokens ÷ 1,000,000 × output price per million tokens

Estimated monthly API cost = input cost + output cost

Annualized estimate = monthly API cost × 12

Estimate API spend from monthly input and output token volumes and your model's current per-million-token prices.

Monthly input and output tokens are each divided by one million, multiplied by the matching price, and added together. The price inputs are editable because rates vary by model and can change.

Assumptions

  • Uses standard input and output token rates in USD per million tokens. It excludes cached tokens, tools, images, audio, batch discounts, taxes, and other provider charges. Check current provider pricing before using the estimate.

Published sources

Further reading for checking current rules and information. These links are not live inputs to the tool.

Questions about this tool

Are the model prices kept up to date automatically?

No. Enter the current input and output prices for your chosen model from the provider's pricing page.

Does the estimate include cached tokens or tools?

No. It uses standard input and output token rates and excludes caching, tools, image, audio, and other charges.

What currency are prices in?

The rate fields and result use USD.

Why can my invoice differ?

Model choice, tokenization, cached usage, tools, batch rates, and other billed features can change the total.