LLM API Cost Calculator

Free calculator · prices checked 22 November 2026
LLM API Cost Calculator

Enter your task volume and tokens. You get the monthly cost, cost per request and cost per 1,000 requests for 14 current models from Anthropic, OpenAI and Google, with each one’s caching and batch rules.

Workload

A task is one unit of work: a ticket answered, an invoice checked, a document summarised.

1 for a single prompt. Agents that plan, call tools, and check their work often take 5–20. Count retries here too.

System prompt, instructions, tool definitions, documents, conversation so far, and tool results.

Everything the model writes, including reasoning tokens.

Estimate tokens from a sample prompt

Rough rule for English: about 4 characters per token.

Caching and batch

The part of each prompt that is identical every call and comes first: system prompt, instructions, fixed documents.

Share of calls that find the prefix still cached. Each miss writes it again.

Cache lifetime

Short: Anthropic 5-minute writes at 1.25×, OpenAI 30-minute at 1.25×. Long: Anthropic 1-hour at 2×, OpenAI 12-hour at 2.5×. Google charges no write.

Batch APIs return results later, at 50% of every rate. Use for work nobody is waiting on.

Compared with a person

Review, correction, and exceptions per task once AI does the first pass.

Salary plus benefits, payroll tax, tools, and management, per working hour.

Vacancies not refilled, overtime or contractors cut, hires avoided as volume grows. The rest is time back, not cash.

Compare models
Providers
Needs at least

Cheapest: Claude Haiku 5.5 at $37.04 a month, $0.0019 per task.

Cost of this workload on each model. Select a model to price it in detail.
Per requestPer 1,000Per task
Anthropic · EfficientCheapest$37.04$0.00062$0.6174$0.0019
OpenAI · Efficient$37.04$0.00062$0.6174$0.0019
Google · Efficient$146$0.0024$2.43$0.0073
OpenAI · Efficient$361$0.006$6.01$0.018
Google · Balanced$533$0.0089$8.88$0.0266
Google · Balanced$548$0.0091$9.13$0.0274
Anthropic · Balanced$721$0.012$12.02$0.0361
OpenAI · Balanced$721$0.012$12.02$0.0361
Google · Frontier$1,066$0.0178$17.77$0.0533
Google · Frontier$1,421$0.0237$23.69$0.0711
Google · Frontier$1,421$0.0237$23.69$0.0711
Anthropic · Frontier$1,443$0.024$24.05$0.0721
Anthropic · Frontier$2,847$0.0474$47.45$0.1423
OpenAI · Frontier$2,886$0.0481$48.10$0.1443

60,000 requests a month · 360.0M input and 36.0M output tokens · 54% of input served from cache.

Claude Sonnet 5.5 in detail
$721a month
$0.012per request
$12.02per 1,000 requests
$0.0361per task (3 calls)
List price, no discounts$1,080
After prompt caching$721
After batch: what you pay$721

Caching saves $359 a month. Batch saves $0 a month.

Rates used for Claude Sonnet 5.5, US dollars per million tokens
Input / output$2 / $10 per MTok
Cache read$0.10 per MTok
Cache write$2.50 per MTok (5-minute cache write, 1.25× base input)
Batch50% of every rate

Claude Sonnet 5.5. The best combination of speed and intelligence.

Cost per task: model against a person
$6.00by hand (8 min)
$1.16with AI, incl. 1.5 min review
$0.0361model cost alone
$284K
per year in hard savings, after the API bill
Counts 25% of 2,167 hours saved a month as cost that stops · API bill $9K a year
Hard savings
$284K
Spend removed, hires avoided and leakage caught
Revenue gained
$0
More deals won, faster quotes and fewer lost accounts
Hours saved
$878K
Time back, which counts as cash only when the cost leaves the business

The model costs under 1% of what a person costs for the same task. Hours saved only become hard savings when a cost stops, so the headline counts 25% of them and subtracts the API bill. Revenue is not modelled here.

Show the math
  • Calls a month = tasks a month × calls per task = 20,000 × 3 = 60,000.
  • Per call: repeated prefix = 3,600 tokens, of which 90% are read from cache and the rest written again; 2,400 fresh input tokens and 600 output tokens.
  • Cost per call = (fresh × input + reads × cache read + writes × cache write + output × output price) ÷ 1,000,000. On Claude Sonnet 5.5: $0.012 before batch.
  • Batch: the share sent through batch pays 50% of every rate, caching included.
  • Long-context bands: Claude Haiku 5.5 over 100,000 prompt tokens; OpenAI over 272K input tokens (the whole request). Other models listed here have one rate.
  • Hard savings a year = 12 × (hours saved × $45 × 25% − API bill). Hours saved = tasks × (8 − 1.5) minutes ÷ 60.
  • A month of daily volume is 365 ÷ 12 = 30.42 days.
Prices checked 22 November 2026 from each provider’s own pricing page: Anthropic, OpenAI, Google. Standard list prices in US dollars, text only. Enterprise discounts, data-residency uplifts, and fast modes are not included.
Keep this result

The API bill is rarely the big number. Put the run cost and the savings into the AI ROI Calculator ›

LLM API Cost Calculator · free from Opswell