AI & Computing

LLM API Cost Calculator (Tokens per Request to Monthly Cost)

Enter tokens per request and traffic to estimate your monthly AI API bill.

Your numbers

Symbol only: enter amounts in the currency you pick.
$
$
%
Cached input is typically billed at about 10% of the normal input price

Your results

Monthly cost
Monthly cost
—
Cost per request
—
Cost per day
—
Cost per 1,000 requests
—
Tokens per month (millions)
—
Share of cost from output
—

LLM API Cost Calculator (Tokens per Request to Monthly Cost) by TheCalcTools

How the LLM API Cost Calculator (Tokens per Request to Monthly Cost) works

API prices are quoted per million tokens, separately for input (your prompt, documents and conversation history) and output (the model’s reply). Output tokens usually cost several times more than input tokens.

Prompt caching bills repeated input (a long system prompt or document reused across requests) at a fraction of the normal price; this calculator assumes cached input costs 10% of the input price. Batch APIs process requests asynchronously at a 50% discount.

Preset prices are Anthropic’s published Claude API rates as of October 2026. Choose “Custom rates” to enter any provider’s prices, and always check the provider’s current price list.

The formula

Cost per request = (input tokens × input price + output tokens × output price) ÷ 1,000,000Monthly cost = cost per request × requests per day × days

Worked example

Using the default values shown in the calculator:

Model and priceClaude Sonnet 5.5 ($2 / $10)
Input price per 1M tokens$2
Output price per 1M tokens$10
Input tokens per request3000
Output tokens per request600
Requests per day2000
Share of input served from cache0 %
Batch processing (50% off)No
Days per month30
  1. Sonnet 5.5: 3,000 input tokens × $2 + 600 output tokens × $10 per million = $0.01 per request.
  2. At 2,000 requests a day for 30 days: $720.00 a month.

Result:

Monthly cost$720.00
Cost per request$0.01
Cost per day$24.00
Cost per 1,000 requests$12.00
Tokens per month (millions)216.00
Share of cost from output50.0%

Frequently asked questions

How many tokens is a page of text?

In English one token is about three quarters of a word, so a 500-word page is about 650 to 700 tokens. Use the words to tokens calculator for estimates.

Why is my bill higher than expected?

Chat applications resend the whole conversation as input on every turn, so input tokens grow with conversation length. Long system prompts, tool definitions and retrieved documents also count as input.

Do reasoning or thinking tokens count?

Yes. Models that think before answering bill thinking tokens as output tokens, so set output tokens per request to include them.

Sources and further reading

More in AI & Computing · All calculators

This calculator gives estimates for information only. Check important results independently before you rely on them. See our disclaimer.