LLM API Cost Calculator

Compare the monthly cost of 143+ LLM APIs from a single screen. Drag the sliders, see your exact bill.

Last updated

Pricing AI workloads is harder than it should be. Every provider quotes a different unit — per 1K tokens, per 1M tokens, per call, per second of audio — and most published rate cards leave out fixed costs, batching discounts, and image surcharges. This calculator normalises 369+ models from Railwail's catalogue so you can compare them apples-to-apples in seconds.

How the math works

Each model has a per-1K-token input price and a per-1K-token output price, stored in EUR. Your monthly bill is simply input_tokens × input_price + output_tokens × output_price. We surface the per-1M numbers in the table because most providers quote that unit publicly, but the underlying math runs on per-1K. Fixed per-call costs (image generation, video, audio) don't apply to token-based models and are excluded from this view — see /pricing for per-call workloads.

Switch providers, keep the same code

All models in the table speak the same OpenAI-compatible API on Railwail. Once you've identified a cheaper option, swapping is one environment-variable change — no SDK rewrite, no retry logic. Compare any two models head-to-head on the /compare page, or browse the full catalogue at /models.

Switching from GPT-4o to DeepSeek V4 Pro would save you ~100% on a 1M-input + 1M-output workload — same monthly traffic, same prompts, just a different model behind the API.

100K
tokens / month

The prompt + context you send to the model each month.

100K
tokens / month

The total response volume the model generates.

Token-based categories only — image, video, audio use per-call pricing.

Filter the table to one upstream provider.

Showing 143 models.Cheapest match: DeepSeek V4 Pro at 0.00/month.
Action
FreeFreeFree8KTry
FreeFreeFree1.0MTry
FreeFreeFree1.0MTry
FreeFreeFree4KTry
FreeFreeFree512Try
Free€0.0010€0.00011.0MTry
Free€0.0010€0.0001128KTry
Free€0.0010€0.0001400KTry
Free€0.0010€0.00012.0MTry
€0.0010€0.0030€0.00041.0MTry
€0.0010€0.0030€0.00041.0MTry
€0.0010€0.0050€0.0006400KTry
€0.0010€0.0050€0.00062.1MTry
€0.0010€0.0050€0.0006200KTry
€0.0030€0.010€0.0013128KTry
€0.0020€0.012€0.00142.0MTry
€0.0030€0.015€0.0018200KTry
€0.0030€0.015€0.0018200KTry
€0.0030€0.015€0.00181.1MTry
€0.020Free€0.00208KTry
FreeFree€0.0020Try
€0.020Free€0.00208KTry
€0.0050€0.025€0.0030200KTry
FreeFree€0.003016KTry
FreeFree€0.0030Try
FreeFree€0.0030Try
FreeFree€0.0035128KTry
FreeFree€0.0040Try
FreeFree€0.0040Try
FreeFree€0.0050Try
FreeFree€0.0050Try
FreeFree€0.005016KTry
FreeFree€0.0050Try
€0.060Free€0.006032KTry
FreeFree€0.0060128KTry
FreeFree€0.00604KTry
FreeFree€0.00708KTry
FreeFree€0.007033KTry
FreeFree€0.0070Try
FreeFree€0.00804KTry
FreeFree€0.0080Try
FreeFree€0.0080Try
FreeFree€0.0080Try
FreeFree€0.0080Try
FreeFree€0.0080Try
FreeFree€0.008033KTry
FreeFree€0.0080Try
FreeFree€0.0090Try
FreeFree€0.0090Try
FreeFree€0.0090Try
FreeFree€0.0090Try
FreeFree€0.009016KTry
FreeFree€0.009016KTry
€0.100Free€0.010512Try
FreeFree€0.010Try
FreeFree€0.012Try
FreeFree€0.012Try
€0.130Free€0.0138KTry
FreeFree€0.013Try
FreeFree€0.0148KTry
FreeFree€0.014Try
FreeFree€0.015Try
FreeFree€0.0164KTry
€0.180Free€0.01832KTry
€0.100€0.100€0.02016KTry
FreeFree€0.022131KTry
€0.200€0.400€0.060256KTry
€0.150€0.600€0.075128KTry
€0.300€0.600€0.0902KTry
€0.300€0.600€0.0904KTry
€0.200€0.800€0.100128KTry
€0.400€0.800€0.12016KTry
€0.200€1.10€0.1304.1MTry
€0.270€1.10€0.137131KTry
€0.500€1.00€0.1504KTry
€0.500€1.00€0.15016KTry
€1.00€1.00€0.200127KTry
€0.250€2.00€0.225400KTry
€3.00Free€0.300131KTry
€1.00€2.00€0.300256KTry
€0.600€2.50€0.310131KTry
€1.25€2.50€0.3751.0MTry
€1.25€2.50€0.3751.0MTry
€1.25€2.50€0.3751.0MTry
€1.40€2.80€0.420128KTry
€1.40€2.80€0.42064KTry
€1.00€4.00€0.5001.0MTry
€1.10€4.40€0.550200KTry
€1.00€5.00€0.600127KTry
€6.00Free€0.600131KTry
€3.00€3.00€0.60033KTry
€1.50€6.00€0.750128KTry
€1.60€6.40€0.80033KTry
FreeFree€1.00512Try
FreeFree€1.008KTry
FreeFree€1.00Try
FreeFree€1.00Try
FreeFree€1.00Try
FreeFree€1.00Try
FreeFree€1.00Try
FreeFree€1.008KTry
FreeFree€1.00512Try
FreeFree€1.00512Try
€2.00€8.00€1.00256KTry
FreeFree€1.00Try
FreeFree€1.00Try
FreeFree€1.00512Try
FreeFree€1.00512Try
FreeFree€1.00Try
FreeFree€1.00Try
FreeFree€1.0016KTry
FreeFree€1.0016KTry
FreeFree€1.008KTry
FreeFree€1.00512Try
€2.00€8.00€1.00200KTry
FreeFree€1.002KTry
FreeFree€1.00512Try
€1.25€10.00€1.13400KTry
€3.00€9.00€1.20256KTry
€2.00€10.00€1.2033KTry
€2.50€10.00€1.25128KTry
€1.50€12.00€1.35400KTry
€8.80€8.80€1.76131KTry
€3.00€15.00€1.80256KTry
€3.00€15.00€1.80200KTry
FreeFree€2.001KTry
FreeFree€2.0016KTry
FreeFree€2.0016KTry
FreeFree€2.004KTry
€12.00€12.00€2.40131KTry
€5.50€22.00€2.7564KTry
€5.00€25.00€3.001.0MTry
FreeFree€3.0016KTry
€10.00€25.00€3.50128KTry
€8.00€40.00€4.80200KTry
€11.00€44.00€5.50200KTry
€12.50€50.00€6.251.0MTry
€20.00€60.00€8.00128KTry
€20.00€80.00€10.001.0MTry
€25.00€100.00€12.50128KTry
€30.00€150.00€18.00200KTry
€30.00€150.00€18.00131KTry
€150.00€750.00€90.00200KTry

Frequently asked questions

How is the monthly cost calculated?

For each model we apply (input_tokens × input_price + output_tokens × output_price) / 1000. Prices are stored in EUR per 1K tokens; the table shows the per-1M equivalent because providers quote that unit publicly.

Why is OpenAI more expensive than open-weights alternatives?

Closed-frontier models bake R&D, alignment work, and hosted inference into a single price. Open-weights models (Llama, Mistral, DeepSeek) push the inference cost to hosting providers competing on margin, which is why per-token prices can be 5-50× lower for comparable quality.

What's the difference between input and output cost?

Input tokens are the prompt you send; output tokens are the model's response. Output is typically 2-5× more expensive because generation is sequential and dominates GPU time. Reasoning models (o1, DeepSeek R1) charge for hidden "thinking" tokens as output, which is the main cost driver.

Does this include batch discounts or volume pricing?

No — list price only. Most providers offer 25-50% discounts for batch endpoints and enterprise contracts; use the table as a ceiling, not a floor.

Sign up to start using these models

One OpenAI-compatible endpoint, every model in the table above. Free credits to start, transparent per-token pricing thereafter.