Free tool · runs in your browser

OpenAI and Claude API cost calculator

Enter your model, tokens per request and traffic to estimate your monthly OpenAI or Anthropic API bill, the cost per user, and what a per-user monthly cap would allow. Estimates only; check your provider's billing page.

Everything you send: system prompt, history and the new message.

Share of input tokens read from the prompt cache.

Leave empty for no cap.

Results

Monthly total
$4,260.00
Cost per user per month
$4.26
Cost per request
$0.0071

With a $3.00 cap per user per month: each user can make up to 14 requests a day (you entered 20). At your rate a user reaches the cap after about 21.1 days. Monthly total with the cap: at most $3,000.00 for 1,000 users.

Prices are per million tokens from the official OpenAI and Anthropic pricing pages, checked 17 Oct 2026.

We aren't affiliated with or endorsed by OpenAI or Anthropic; OpenAI, GPT, Anthropic and Claude are their trademarks, used here only to identify them.

Estimates only. Your bill depends on your actual usage, the provider's current prices and taxes.

The calculation runs in your browser. Our analytics records which model you pick and whether you set a cap, not the numbers you enter (see Privacy).

Cache writes aren't modelled: cached input is priced at the cached-input or cache-read rate and the rest at the standard input rate. Writing to the cache costs more than standard input (see the tables), so a workload that rewrites its cache often will cost more than shown.

How it's calculated

cost per request = (input × (1 − cached share) × input price + input × cached share × cached price + output × output price) ÷ 1,000,000

cost per user per month = cost per request × requests per user per day × 30

monthly total = cost per user per month × users

requests per user per day under a cap = cap ÷ (cost per request × 30), rounded down

monthly total with a cap = users × the smaller of (cost per user per month, cap)

Months are 30 days. Every user is assumed to make the same number of requests. OpenAI lists long-context prices for requests over 272,000 input tokens, and Anthropic prices Claude Haiku 5.5 prompts over 100,000 tokens at a higher rate. Anthropic says the whole request then pays the higher prices. OpenAI's page doesn't say, so the calculator assumes the same for OpenAI.

What this doesn't include

  • Batch, Flex, Fast and Ultrafast prices, and Anthropic fast mode: only Standard prices are used.
  • Cache writes, tool and web search fees, image and audio tokens, and reasoning tokens beyond what you enter as output.
  • Regional or data-residency uplifts (OpenAI) and US-only inference (Anthropic, 1.1×).
  • Taxes, credits and any discounts on your account.

Prices used

USD per million tokens, Standard tier, checked 17 Oct 2026.

OpenAI

OpenAI
ModelInputCached inputCache writesOutput
gpt-6-astra$10.00$1.00$12.50$50.00
gpt-6-astra>272K input$20.00$2.00$25.00$75.00
gpt-6.1-sol$2.00$0.10$2.50$10.00
gpt-6.1-sol>272K input$4.00$0.20$5.00$15.00
gpt-6-luna$0.10$0.01$0.125$0.50
gpt-6-luna>272K input$0.20$0.02$0.25$0.75
gpt-5.6-terra$2.00$0.20$2.50$12.00
gpt-5.6-terra>272K input$4.00$0.40$5.00$18.00
gpt-5.6-luna$0.20$0.02$0.25$1.20
gpt-5.6-luna>272K input$0.40$0.04$0.50$1.80

Anthropic (Claude)

Anthropic (Claude)
ModelInputCache readCache write (5 min / 1 hour)Output
Claude Fable 5.1$10.00$0.25$12.50 / $20.00$50.00
Claude Opus 5.5$4.00$0.20$5.00 / $8.00$20.00
Claude Sonnet 5.5$2.00$0.10$2.50 / $4.00$10.00
Claude Haiku 5.5prompts up to 100K$0.10$0.01$0.125 / $0.20$0.50
Claude Haiku 5.5prompts over 100K$0.50$0.05$0.625 / $1.00$2.50
Claude Haiku 4.5$1.00$0.10$1.25 / $2.00$5.00