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.
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.
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.
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.
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.
Cheapest: Claude Haiku 5.5 at $37.04 a month, $0.0019 per task.
| Per request | Per 1,000 | Per task | ||
|---|---|---|---|---|
| $37.04 | $0.00062 | $0.6174 | $0.0019 | |
| $37.04 | $0.00062 | $0.6174 | $0.0019 | |
| $146 | $0.0024 | $2.43 | $0.0073 | |
| $361 | $0.006 | $6.01 | $0.018 | |
| $533 | $0.0089 | $8.88 | $0.0266 | |
| $548 | $0.0091 | $9.13 | $0.0274 | |
| $721 | $0.012 | $12.02 | $0.0361 | |
| $721 | $0.012 | $12.02 | $0.0361 | |
| $1,066 | $0.0178 | $17.77 | $0.0533 | |
| $1,421 | $0.0237 | $23.69 | $0.0711 | |
| $1,421 | $0.0237 | $23.69 | $0.0711 | |
| $1,443 | $0.024 | $24.05 | $0.0721 | |
| $2,847 | $0.0474 | $47.45 | $0.1423 | |
| $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.
Caching saves $359 a month. Batch saves $0 a month.
| 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) |
| Batch | 50% of every rate |
Claude Sonnet 5.5. The best combination of speed and intelligence.
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.
The API bill is rarely the big number. Put the run cost and the savings into the AI ROI Calculator ›