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-06-19.

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 19 of 19 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.0200 $0.0300 $0.000110 $0.1100 Visit
Mistral Mistral Small 3 fast batch 33K $0.0500 $0.0800 $0.000280 ×2.5 $0.2800 Visit
Mistral Ministral 3 3B 2512 fast cache batch 131K $0.1000 $0.1000 $0.000500 ×4.5 $0.5000 Visit
Mistral Mistral Small 3.2 24B fast batch 128K $0.0750 $0.2000 $0.000500 ×4.5 $0.5000 Visit
Mistral Voxtral Small 24B 2507 fast cache batch 32K $0.1000 $0.3000 $0.000700 ×6.4 $0.7000 Visit
Mistral Ministral 3 8B 2512 fast cache batch 262K $0.1500 $0.1500 $0.000750 ×6.8 $0.7500 Visit
Mistral Ministral 3 14B 2512 fast cache batch 262K $0.2000 $0.2000 $0.001000 ×9.1 $1.00 Visit
Mistral Mistral Small 4 fast cache batch 262K $0.1500 $0.6000 $0.001200 ×10.9 $1.20 Visit
Mistral Saba fast cache batch 33K $0.2000 $0.6000 $0.001400 ×12.7 $1.40 Visit
Mistral Mistral Small 3.1 24B fast batch 128K $0.3510 $0.5550 $0.001959 ×17.8 $1.96 Visit
Mistral Codestral 2508 fast cache batch 256K $0.3000 $0.9000 $0.002100 ×19.1 $2.10 Visit
Mistral Mistral Large 3 2512 fast cache batch 262K $0.5000 $1.50 $0.003500 ×31.8 $3.50 Visit
Mistral Devstral 2 2512 fast cache batch 262K $0.4000 $2.00 $0.003600 ×32.7 $3.60 Visit
Mistral Mistral Medium 3.1 fast cache batch 131K $0.4000 $2.00 $0.003600 ×32.7 $3.60 Visit
Mistral Mistral Medium 3 fast cache batch 131K $0.4000 $2.00 $0.003600 ×32.7 $3.60 Visit
Mistral Mistral Medium 3.5 balanced batch 262K $1.50 $7.50 $0.0135 ×123 $13.50 Visit
Mistral Mistral Large 2407 balanced cache batch 131K $2.00 $6.00 $0.0140 ×127 $14.00 Visit
Mistral Mixtral 8x22B Instruct balanced cache batch 66K $2.00 $6.00 $0.0140 ×127 $14.00 Visit
Mistral Mistral Large balanced cache batch 128K $2.00 $6.00 $0.0140 ×127 $14.00 Visit

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.