LLM API Cost Calculator

Enter your usage profile and instantly compare what every major LLM provider would charge — per request and per month. The default scenario below is real, server-rendered output; change any field to recalculate live.

Quick scenarios

Tip: you can type 4k, 100k or 1.5m.

Advanced options

Estimated cost — per month

Shown in USD. Pricing last verified 2026-10-30.

API price = the provider's list price per 1M tokens (input → output). Your cost = estimate for the usage profile you set on the left (4,000 in + 1,000 out per request).

Showing 50 of 265 models.

Show:

Tip: click a column header to sort, or filter by category above. Sorted by cost per request by default.

Provider / Model Context API price / 1M in → out Your cost / request Your cost / month Links
Mistral Mistral Nemo fast cheapest batch 131K $0.0290 → $0.0300 $0.000146 $0.1460 Visit
OpenAI gpt-oss-20b fast cache batch 131K $0.0180 → $0.0900 $0.000162 ×1.1 $0.1620 Visit Review
IBM Granite Granite 4.0 Micro open-weight 131K $0.0170 → $0.1120 $0.000180 ×1.2 $0.1800 Visit Review
Qwen Qwen3.7 Flash open-weight cache 1M $0.0300 → $0.1300 $0.000250 ×1.7 $0.2500 Visit Review
Amazon Nova Micro 1.0 fast 128K $0.0350 → $0.1400 $0.000280 ×1.9 $0.2800 Visit
Meta Llama 3.1 8B Instruct open-weight cache 131K $0.0500 → $0.0800 $0.000280 ×1.9 $0.2800 Visit Review
Mistral Mistral Small 3 fast batch 33K $0.0500 → $0.0800 $0.000280 ×1.9 $0.2800 Visit
Cohere Command R7B (12-2024) fast 128K $0.0375 → $0.1500 $0.000300 ×2.1 $0.3000 Visit
Google Gemma 3 4B fast cache batch 131K $0.0500 → $0.1000 $0.000300 ×2.1 $0.3000 Visit
Meta Llama 3.2 1B Instruct open-weight 60K $0.0270 → $0.2010 $0.000309 ×2.1 $0.3090 Visit Review
Google Gemma 3 12B fast batch 131K $0.0500 → $0.1500 $0.000350 ×2.4 $0.3500 Visit
Tencent Hy-MT2-1.8B open-weight 8K $0.0440 → $0.1770 $0.000353 ×2.4 $0.3530 Visit Review
IBM Granite Granite 4.2 8B open-weight cache 131K $0.0600 → $0.1500 $0.000390 ×2.7 $0.3900 Visit Review
Microsoft Phi 4 open-weight 16K $0.0700 → $0.1400 $0.000420 ×2.9 $0.4200 Visit Review
Amazon Nova Lite 1.0 fast 300K $0.0600 → $0.2400 $0.000480 ×3.3 $0.4800 Visit
NVIDIA Nemotron 3 Nano 30B A3B open-weight 262K $0.0600 → $0.2400 $0.000480 ×3.3 $0.4800 Visit Review
NVIDIA Nemotron 3.5 Lightning open-weight cache 262K $0.0700 → $0.2000 $0.000480 ×3.3 $0.4800 Visit Review
Mistral Ministral 3 3B 2512 fast cache batch 131K $0.1000 → $0.1000 $0.000500 ×3.4 $0.5000 Visit
Mistral Mistral Small 3.2 24B fast batch 256K $0.0750 → $0.2000 $0.000500 ×3.4 $0.5000 Visit
Self-hosted Open-weight on your GPU (illustrative) open-weight 128K $0.1000 → $0.1000 $0.000500 ×3.4 $0.5000 Visit Review
Qwen Qwen3.5-Flash open-weight 1M $0.0650 → $0.2600 $0.000520 ×3.6 $0.5200 Visit Review
Meta Llama 3.2 3B Instruct open-weight 131K $0.0500 → $0.3300 $0.000530 ×3.6 $0.5300 Visit Review
DeepSeek DeepSeek V4 Flash 0423 open-weight cache 1M $0.0910 → $0.1820 $0.000546 ×3.7 $0.5460 Visit Review
Qwen Qwen3 Coder 30B A3B Instruct open-weight 262K $0.0700 → $0.2800 $0.000560 ×3.8 $0.5600 Visit Review
Tencent Hy-MT2-30B-A3B open-weight 8K $0.0740 → $0.2950 $0.000591 ×4.0 $0.5910 Visit Review
Tencent Hy-MT2-7B open-weight 8K $0.0740 → $0.2950 $0.000591 ×4.0 $0.5910 Visit Review
OpenAI gpt-oss-safeguard-20b fast cache batch 131K $0.0750 → $0.3000 $0.000600 ×4.1 $0.6000 Visit Review
OpenAI GPT-5 Nano fast cache batch 400K $0.0500 → $0.4000 $0.000600 ×4.1 $0.6000 Visit Review
Qwen Qwen2.5 7B Instruct open-weight 33K $0.1000 → $0.2000 $0.000600 ×4.1 $0.6000 Visit Review
Qwen Qwen3 32B open-weight 131K $0.0800 → $0.2800 $0.000600 ×4.1 $0.6000 Visit Review
Z.AI GLM 4.7 Flash open-weight 200K $0.0605 → $0.4000 $0.000642 ×4.4 $0.6420 Visit Review
Google Gemma 4 26B A4B fast cache batch 262K $0.0900 → $0.3000 $0.000660 ×4.5 $0.6600 Visit
Google Gemma 3 27B fast cache batch 131K $0.0800 → $0.3500 $0.000670 ×4.6 $0.6700 Visit
DeepSeek DeepSeek V4.1 Flash open-weight cache 1M $0.0450 → $0.5000 $0.000680 ×4.7 $0.6800 Visit Review
Meta Llama 4 Scout open-weight 1.3M $0.1000 → $0.3000 $0.000700 ×4.8 $0.7000 Visit Review
Mistral Voxtral Small 24B 2507 fast cache batch 33K $0.1000 → $0.3000 $0.000700 ×4.8 $0.7000 Visit
Qwen Qwen3 30B A3B Instruct 2507 open-weight 262K $0.1000 → $0.3000 $0.000700 ×4.8 $0.7000 Visit Review
DeepSeek DeepSeek V4 Flash 0731 open-weight cache 1M $0.1190 → $0.2380 $0.000714 ×4.9 $0.7140 Visit Review
Meta Llama 3.3 70B Instruct open-weight 131K $0.1000 → $0.3200 $0.000720 ×4.9 $0.7200 Visit Review
Qwen Qwen3 14B open-weight 41K $0.1200 → $0.2400 $0.000720 ×4.9 $0.7200 Visit Review
Mistral Ministral 3 8B 2512 fast cache batch 262K $0.1500 → $0.1500 $0.000750 ×5.1 $0.7500 Visit
Google Gemini 2.5 Flash Lite fast cache batch 1M $0.1000 → $0.4000 $0.000800 ×5.5 $0.8000 Visit
OpenAI GPT-4.1 Nano fast cache batch 1M $0.1000 → $0.4000 $0.000800 ×5.5 $0.8000 Visit Review
Anthropic Claude Haiku 5.5 fast cache batch 1M $0.1000 → $0.5000 $0.000900 ×6.2 $0.9000 Visit Review
Liquid LFM2.5-24B-A2B open-weight cache 128K $0.0500 → $0.7000 $0.000900 ×6.2 $0.9000 Visit Review
Meta Llama Guard 4 12B open-weight 164K $0.1800 → $0.1800 $0.000900 ×6.2 $0.9000 Visit Review
OpenAI GPT-6 Luna Pro fast cache batch 1.1M $0.1000 → $0.5000 $0.000900 ×6.2 $0.9000 Visit Review
OpenAI GPT-6 Luna fast cache batch 1.1M $0.1000 → $0.5000 $0.000900 ×6.2 $0.9000 Visit Review
Qwen Qwen3 235B A22B Instruct 2507 open-weight 262K $0.0900 → $0.5500 $0.000910 ×6.2 $0.9100 Visit Review
Qwen Qwen3.5-9B open-weight 262K $0.1700 → $0.2500 $0.000930 ×6.4 $0.9300 Visit Review

Estimates only. Actual bills depend on exact token counts, tier pricing and provider changes. Always confirm on the provider's pricing page.

How LLM API pricing works

Every major LLM provider bills by the token — a chunk of text roughly ¾ of a word in English. You pay separately for input tokens (everything you send: system prompt, retrieved context and the user message) and output tokens (what the model writes back). Output is typically priced two to five times higher than input, which is why concise responses save real money at scale.

The formula

cost_per_request = (input_tokens  / 1,000,000) × input_price_per_M
                 + (output_tokens / 1,000,000) × output_price_per_M
cost_per_period  = cost_per_request × requests_in_period

What moves the number

Frequently asked questions

How are LLM API costs calculated?

Providers bill per million tokens, separately for input (your prompt) and output (the model's response). Cost per request = (input tokens / 1,000,000 × input price) + (output tokens / 1,000,000 × output price). Multiply by your request volume for the period.

What is the difference between input and output tokens?

Input tokens are everything you send to the model — system prompt, context and user message. Output tokens are what the model generates. Output is usually priced several times higher than input, so response length matters a lot for cost.

Does prompt caching reduce cost?

Yes, where supported. Repeated prompt prefixes (e.g. a long system prompt) can be billed at a steep discount. The calculator lets you set what share of input tokens are cached.

Why do prices vary so much between providers?

Model size, hardware efficiency, context window, and business strategy all play a part. Frontier reasoning models cost the most; fast/cheap and open-weight self-hosted options can be orders of magnitude cheaper for suitable tasks.