LLM prices per 1M tokens

LLM API cost calculator

Your tokens per month, then a model, then every way to buy it.

Step 1: Your usage

Step 2: Model

10 popular models, cheapest first at your usage

ModelPer month
$58.36
$78.55
$104.57
$151.35
$151.35
$203.45
$203.45
$203.45
$306.00
$306.00

Step 3: Result

CompareModel page

Mistral Large 4 at 120M input and 25M output tokens a month, 40% of input cached: from $104.57 a month.

Way to buyPer month
Mistral AI API
The lab's own list price · $0.68 / $2.09
$104.57Cheapest
Kong AI Gateway
Gateway, no token markup, plan from $100/mo · $0.68 / $2.09
$104.57Same
LiteLLM
Gateway, no token markup, self-hosted · $0.68 / $2.09
$104.57BYOK at costSame
Eden AI
Gateway, 5.5% on credits · $0.717 / $2.2
$110.32+$5.75 (+5.5%)
OpenRouter
Gateway, 5.5% on credits · $0.717 / $2.2
$110.32BYOK at cost+$5.75 (+5.5%)

Cached input is billed at the cache-read price where one is published; batch applies only where the lab sells a batch tier. Platform rows are list prices without caching or batch. Gateway rows add the gateway's fee on credits; BYOK is the cost with your own provider key. Not priced here (no published token fee): Portkey, TrueFoundry AI Gateway. Not offered by Helicone, Neon AI Gateway, Vercel AI Gateway, Cloudflare AI Gateway, Requesty, Martian Gateway (not on their model lists).

Questions

How do I estimate my monthly LLM API cost?

Multiply the millions of input tokens you send by the input price, add the millions of output tokens times the output price, and subtract the discount on any input served from cache. The calculator does this for every model at once.

How many tokens is a word?

For English text, about 1.3 tokens per word, or roughly 750 words per 1,000 tokens. Code and other languages use more tokens per word.

How much does prompt caching save?

Cached input is typically billed at 10% to 50% of the normal input price, depending on the provider. Long, repeated system prompts and documents benefit most.

What is the Batch API discount?

OpenAI, Anthropic, Google, Mistral and AWS Bedrock sell asynchronous batch processing at about half price, with results returned within 24 hours.