MockFoxAdvertise

LLM API Pricing Calculator

Updated Free mock REST & WebSocket APIs

Enter your tokens per request and traffic to compare what every major LLM API would cost — per request, per day and per month — with prompt caching and Batch API discounts applied. The cheapest model that fits your workload is highlighted.

Prompt + history + context. 12k = 12,000
Reasoning models also bill thinking tokens as output
≈ 30,000 / month
0%
Share of input tokens read from cache (repeated system prompt, docs)
0%
50% off at OpenAI, Anthropic, Google, Mistral (async, ≤24 h)
Cheapest for this workload
GPT-5 nano · OpenAI
$0.0003 per request · $0.30 per day
$9.00/mo
GPT-5 nanocheapest
OpenAI
In $0.05 · Out $0.40 /1M · 400K
$9.00
gpt-oss-20b
OpenAI · Groq
In $0.075 · Out $0.30 /1M · 128K
Open-weight model; price shown is Groq's.
$9.00
Ministral 3 8B
Mistral
In $0.15 · Out $0.15 /1M · 256K
$11.25
1.3× cheapest
Gemini 2.5 Flash-Lite
Google
In $0.10 · Out $0.40 /1M · 1M
Gemini 2.5 models are limited to existing users.
$12.00
1.3× cheapest
Claude Haiku 5.5
Anthropic
In $0.10 · Out $0.50 /1M · 1M
Prompts over 100,000 tokens are billed at $0.50 / $2.50 per 1M for the whole request.
$13.50
1.5× cheapest
GPT-6 Luna
OpenAI
In $0.10 · Out $0.50 /1M · 1.05M
$13.50
1.5× cheapest
GPT-4o mini
OpenAI
In $0.15 · Out $0.60 /1M · 128K
$18.00
2.0× cheapest
gpt-oss-120b
OpenAI · Groq
In $0.15 · Out $0.60 /1M · 128K
Open-weight model; price shown is Groq's.
$18.00
2.0× cheapest
Mistral Small 4
Mistral
In $0.15 · Out $0.60 /1M · 256K
$18.00
2.0× cheapest
GPT-5.6 Luna
OpenAI
In $0.20 · Out $1.20 /1M · 1.05M
$30.00
3.3× cheapest
GPT-5.4 nano
OpenAI
In $0.20 · Out $1.25 /1M · 400K
$30.75
3.4× cheapest
Codestral
Mistral
In $0.30 · Out $0.90 /1M · 128K
$31.50
3.5× cheapest
DeepSeek Flash
DeepSeek
In $0.30 · Out $1.20 /1M · 1M
Peak-hour price. Off-peak is 50% off: $0.15 / $0.60.
$36.00
4.0× cheapest
Gemini 3.1 Flash-Lite
Google
In $0.25 · Out $1.50 /1M · 1M
$37.50
4.2× cheapest
GPT-5 mini
OpenAI
In $0.25 · Out $2 /1M · 400K
$45.00
5.0× cheapest
GPT-4.1 mini
OpenAI
In $0.40 · Out $1.60 /1M · 1.05M
$48.00
5.3× cheapest
Gemini 2.5 Flash
Google
In $0.30 · Out $2.50 /1M · 1M
Gemini 2.5 models are limited to existing users.
$55.50
6.2× cheapest
Gemini 3.5 Flash-Lite
Google
In $0.30 · Out $2.50 /1M · 1M
$55.50
6.2× cheapest
Mistral Large 4
Mistral
In $0.68 · Out $2.09 /1M · 1M
Sale price; list price is $1.36 / $4.18 per 1M.
$72.15
8.0× cheapest
Llama 3.3 70B
Meta (Llama) · Together AI
In $1.04 · Out $1.04 /1M · 128K
$78.00
8.7× cheapest
Grok Build 0.1
xAI
In $1 · Out $2 /1M · 256K
$90.00
10× cheapest
Gemini 3.8 Flash
Google
In $0.75 · Out $3.75 /1M · 1M
Price rises to $1.50 / $7.50 per 1M on Jan 1, 2027. Explicit cache storage is billed per hour.
$101.25
11× cheapest
GPT-5.4 mini
OpenAI
In $0.75 · Out $4.50 /1M · 400K
$112.50
13× cheapest
Grok 4.3
xAI
In $1.25 · Out $2.50 /1M · 1M
$112.50
13× cheapest
o4-mini
OpenAI
In $1.10 · Out $4.40 /1M · 200K
$132.00
15× cheapest
Claude Haiku 4.5
Anthropic
In $1 · Out $5 /1M · 200K
$135.00
15× cheapest
DeepSeek V4 Pro
DeepSeek
In $1.32 · Out $3.96 /1M · 1M
Peak-hour price. Off-peak (most hours and weekends) is 50% off: $0.66 / $1.98.
$138.60
15× cheapest
Mistral Medium 3.5
Mistral
In $1.50 · Out $7.50 /1M · 256K
$202.50
23× cheapest
Grok 4.7
xAI
In $2 · Out $6 /1M · 500K
$210.00
23× cheapest
Gemini 2.5 Pro
Google
In $1.25 · Out $10 /1M · 1M
Gemini 2.5 models are limited to existing users.
$225.00
25× cheapest
GPT-5
OpenAI
In $1.25 · Out $10 /1M · 400K
$225.00
25× cheapest
GPT-4.1
OpenAI
In $2 · Out $8 /1M · 1.05M
$240.00
27× cheapest
o3
OpenAI
In $2 · Out $8 /1M · 200K
$240.00
27× cheapest
Claude Sonnet 5
Anthropic
In $2 · Out $10 /1M · 1M
$270.00
30× cheapest
Claude Sonnet 5.5
Anthropic
In $2 · Out $10 /1M · 1M
$270.00
30× cheapest
Gemini 4 Argon
Google
In $2 · Out $10 /1M · 1M
Price rises to $4 / $20 per 1M on Dec 1, 2026. Caching is implicit only.
$270.00
30× cheapest
GPT-6 Sol
OpenAI
In $2 · Out $10 /1M · 1.05M
$270.00
30× cheapest
GPT-6.1 Sol
OpenAI
In $2 · Out $10 /1M · 1.05M
$270.00
30× cheapest
Gemini 3.1 Pro (preview)
Google
In $2 · Out $12 /1M · 1M
$300.00
33× cheapest
GPT-4o
OpenAI
In $2.50 · Out $10 /1M · 128K
$300.00
33× cheapest
GPT-5.6 Terra
OpenAI
In $2 · Out $12 /1M · 1.05M
$300.00
33× cheapest
GPT-5.4
OpenAI
In $2.50 · Out $15 /1M · 1.05M
$375.00
42× cheapest
Claude Sonnet 4.6
Anthropic
In $3 · Out $15 /1M · 1M
$405.00
45× cheapest
Claude Opus 5.5
Anthropic
In $4 · Out $20 /1M · 1M
$540.00
60× cheapest
GPT-5.6 Sol
OpenAI
In $4 · Out $20 /1M · 1.05M
Promotional pricing through at least Nov 21, 2026.
$540.00
60× cheapest
Claude Opus 4.8
Anthropic
In $5 · Out $25 /1M · 1M
$675.00
75× cheapest
Claude Opus 5
Anthropic
In $5 · Out $25 /1M · 1M
$675.00
75× cheapest
GPT-5.5
OpenAI
In $5 · Out $30 /1M · 1.05M
$750.00
83× cheapest
Claude Fable 5.1
Anthropic
In $10 · Out $50 /1M · 1M
Anthropic's most capable widely released model.
$1,350
150× cheapest
GPT-6 Astra
OpenAI
In $10 · Out $50 /1M · 1.05M
OpenAI's most capable model.
$1,350
150× cheapest

Prices checked on 2026-10-18 from each provider's official pricing page (standard tier, USD per 1M tokens). Prices change often — verify before you budget.

Sources: OpenAI · Anthropic · Google · Mistral · Meta (Llama) · DeepSeek · xAI. Excludes taxes, tool/search fees, image/audio tokens and cache-write or storage surcharges.

🔒 Everything is calculated in your browser — prompts you paste are never sent anywhere.

How to estimate LLM API costs

  1. Enter input and output tokens per request (12k works as shorthand), or switch to “Paste a prompt” to count them for you.
  2. Set requests per day, the share of input served from the prompt cache, and the share of traffic you can send through the Batch API.
  3. Sort the table by cost, price or context window, filter providers, and copy the comparison as CSV.

The formula

cost per request = (uncached input × input price
                  + cached input  × cached price
                  + output        × output price) / 1,000,000

monthly cost = cost per request × requests per day × 30
batch traffic → × 0.5 at OpenAI, Anthropic, Google, Mistral

Worked examples

A support chatbot sending 2,000 input and 500 output tokens, 1,000 times a day:

  • GPT-5 mini: $45.00 / month ($0.0015 per request)
  • Claude Haiku 5.5: $13.50 / month
  • Gemini 3.8 Flash: $101.25 / month
  • Claude Sonnet 5.5: $270.00 / month
  • GPT-6 Astra: $1,350 / month

A RAG app sending 20,000 input tokens (80% a cached document prefix) and 400 output tokens, 5,000 times a day: GPT-6 Sol costs $2,280 / month and Claude Opus 5.5 $4,080 / month — versus $6,600 and $13,200 without caching.

What moves the bill most

  • Output tokens. They cost 3–8× input. Ask for concise answers and set max_tokens. Reasoning (“thinking”) tokens are billed as output.
  • Prompt caching. Put the stable part (system prompt, tools, documents) first. Cached reads cost 2.5–50% of the input price depending on the model.
  • Batch API. Anything that can wait up to 24 hours — evals, backfills, classification — is half price at OpenAI, Anthropic, Google and Mistral.
  • Long-context tiers. Some models re-price the whole request above a threshold: OpenAI GPT-5.4+ above 272K input tokens, Gemini Pro above 200K, Claude Haiku 5.5 above 100K, Grok at 200K.
  • Different tokenizers. The same text is ~1.5× more tokens on current Claude models than on GPT, so compare cost, not price per token. Use “Paste a prompt” to price each model with its own tokenizer.

All model prices

ModelInputCached inputOutputContext
Claude Fable 5.1
Anthropic
claude-fable-5-1
$10$0.25$501M
Claude Opus 5.5
Anthropic
claude-opus-5-5
$4$0.20$201M
Claude Opus 5
Anthropic
claude-opus-5
$5$0.50$251M
Claude Opus 4.8
Anthropic
claude-opus-4-8
$5$0.50$251M
Claude Sonnet 5.5
Anthropic
claude-sonnet-5-5
$2$0.10$101M
Claude Sonnet 5
Anthropic
claude-sonnet-5
$2$0.20$101M
Claude Sonnet 4.6
Anthropic
claude-sonnet-4-6
$3$0.30$151M
Claude Haiku 5.5
Anthropic
claude-haiku-5-5
$0.10$0.01$0.501M
Claude Haiku 4.5
Anthropic
claude-haiku-4-5
$1$0.10$5200K
GPT-6 Astra
OpenAI
gpt-6-astra
$10$1$501.05M
GPT-6.1 Sol
OpenAI
gpt-6.1-sol
$2$0.10$101.05M
GPT-6 Sol
OpenAI
gpt-6-sol
$2$0.20$101.05M
GPT-6 Luna
OpenAI
gpt-6-luna
$0.10$0.01$0.501.05M
GPT-5.6 Sol
OpenAI
gpt-5.6-sol
$4$0.40$201.05M
GPT-5.6 Terra
OpenAI
gpt-5.6-terra
$2$0.20$121.05M
GPT-5.6 Luna
OpenAI
gpt-5.6-luna
$0.20$0.02$1.201.05M
GPT-5.5
OpenAI
gpt-5.5
$5$0.50$301.05M
GPT-5.4
OpenAI
gpt-5.4
$2.50$0.25$151.05M
GPT-5.4 mini
OpenAI
gpt-5.4-mini
$0.75$0.075$4.50400K
GPT-5.4 nano
OpenAI
gpt-5.4-nano
$0.20$0.02$1.25400K
GPT-5
OpenAI
gpt-5
$1.25$0.125$10400K
GPT-5 mini
OpenAI
gpt-5-mini
$0.25$0.025$2400K
GPT-5 nano
OpenAI
gpt-5-nano
$0.05$0.005$0.40400K
GPT-4.1
OpenAI
gpt-4.1
$2$0.50$81.05M
GPT-4.1 mini
OpenAI
gpt-4.1-mini
$0.40$0.10$1.601.05M
GPT-4o
OpenAI
gpt-4o
$2.50$1.25$10128K
GPT-4o mini
OpenAI
gpt-4o-mini
$0.15$0.075$0.60128K
o3
OpenAI
o3
$2$0.50$8200K
o4-mini
OpenAI
o4-mini
$1.10$0.275$4.40200K
gpt-oss-120b
OpenAI · Groq
gpt-oss-120b
$0.15—$0.60128K
gpt-oss-20b
OpenAI · Groq
gpt-oss-20b
$0.075—$0.30128K
Gemini 4 Argon
Google
gemini-4-argon
$2$0.10$101M
Gemini 3.8 Flash
Google
gemini-3.8-flash
$0.75$0.075$3.751M
Gemini 3.5 Flash-Lite
Google
gemini-3.5-flash-lite
$0.30$0.03$2.501M
Gemini 3.1 Pro (preview)
Google
gemini-3.1-pro-preview
$2$0.20$121M
Gemini 3.1 Flash-Lite
Google
gemini-3.1-flash-lite
$0.25$0.025$1.501M
Gemini 2.5 Pro
Google
gemini-2.5-pro
$1.25$0.125$101M
Gemini 2.5 Flash
Google
gemini-2.5-flash
$0.30$0.03$2.501M
Gemini 2.5 Flash-Lite
Google
gemini-2.5-flash-lite
$0.10$0.01$0.401M
Mistral Large 4
Mistral
mistral-large-4
$0.68$0.07$2.091M
Mistral Medium 3.5
Mistral
mistral-medium-3-5
$1.50—$7.50256K
Mistral Small 4
Mistral
mistral-small-2603
$0.15—$0.60256K
Codestral
Mistral
codestral-2508
$0.30—$0.90128K
Ministral 3 8B
Mistral
ministral-8b-2512
$0.15—$0.15256K
Llama 3.3 70B
Meta (Llama) · Together AI
llama-3.3-70b
$1.04—$1.04128K
DeepSeek V4 Pro
DeepSeek
deepseek-v4-pro
$1.32$0.044$3.961M
DeepSeek Flash
DeepSeek
deepseek-flash
$0.30$0.006$1.201M
Grok 4.7
xAI
grok-4.7
$2$0.50$6500K
Grok 4.3
xAI
grok-4.3
$1.25$0.20$2.501M
Grok Build 0.1
xAI
grok-build-0.1
$1$0.20$2256K

USD per 1M tokens, standard tier, checked 2026-10-18. Source: each provider's official pricing page.

Prices were checked on 2026-10-18 from each provider's official pricing page. They change often, so confirm on the provider's site before committing to a budget.

Related tools

Frequently asked questions

Which LLM API is cheapest?

For simple, high-volume tasks the small models — GPT-5 nano, GPT-6 Luna, Claude Haiku 5.5, Gemini 2.5 Flash-Lite and DeepSeek Flash — cost cents per thousand requests. The cheapest for you depends on your input/output mix and context length, which is why the calculator ranks models for your exact workload.

Are these prices up to date?

Prices were checked on 2026-10-18 from each provider's official pricing page. They change often, so confirm on the provider's site before committing to a budget.

Does the calculator include cache-write costs?

No. Anthropic charges 1.25× input to write a 5-minute cache entry (2× for 1 hour) and some OpenAI models 1.25×; Gemini bills explicit-cache storage per hour. With a high hit rate these are small, but add them for exact budgets.

How do I estimate tokens per request?

Paste a real prompt in “Paste a prompt” mode, or use the token counter. A typical chat turn with a system prompt and some history is 1,000–4,000 input tokens; RAG requests with retrieved documents are often 10,000–50,000.

Why is Claude's count higher than GPT's for the same prompt?

Claude's newer tokenizer splits English into about 1.5× as many tokens as OpenAI's o200k. In prompt mode each model is priced with its own tokenizer; in token mode you enter one number for all models.

Your business here? Sponsor this tool from $16/week. See placements