LLM API Cost Calculator

Compare the monthly cost of 122+ 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 275+ 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 122 models.Cheapest match: DeepSeek V4 Pro at 0.00/month.
Action
FreeFreeFree8KTry
FreeFreeFree1.0MTry
FreeFreeFree131KTry
FreeFreeFree131KTry
FreeFreeFree131KTry
FreeFreeFree33KTry
FreeFreeFree4KTry
FreeFreeFree2KTry
FreeFreeFree512Try
Free€0.0010€0.00011.0MTry
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.0006200KTry
FreeFree€0.0010Try
€0.0020€0.012€0.00142.0MTry
FreeFree€0.00151KTry
€0.0030€0.015€0.0018200KTry
€0.0030€0.015€0.00181.1MTry
FreeFree€0.0020Try
FreeFree€0.0020128KTry
€0.020Free€0.00208KTry
FreeFree€0.002016KTry
FreeFree€0.00251KTry
€0.0050€0.025€0.0030200KTry
FreeFree€0.003016KTry
FreeFree€0.0030Try
FreeFree€0.00301KTry
FreeFree€0.0030Try
FreeFree€0.003016KTry
FreeFree€0.0035128KTry
FreeFree€0.00351KTry
FreeFree€0.0040Try
FreeFree€0.0040Try
FreeFree€0.0040Try
FreeFree€0.0040131KTry
FreeFree€0.0050Try
FreeFree€0.0050Try
FreeFree€0.0050Try
FreeFree€0.0050Try
FreeFree€0.0050Try
FreeFree€0.0050131KTry
FreeFree€0.005016KTry
FreeFree€0.00504KTry
FreeFree€0.0050Try
€0.060Free€0.006032KTry
FreeFree€0.0060128KTry
FreeFree€0.00601KTry
FreeFree€0.0060Try
FreeFree€0.00604KTry
FreeFree€0.0060Try
FreeFree€0.00708KTry
FreeFree€0.0070Try
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.0090Try
FreeFree€0.0090Try
FreeFree€0.0090Try
FreeFree€0.009016KTry
FreeFree€0.009016KTry
€0.100Free€0.010512Try
FreeFree€0.010128KTry
FreeFree€0.010Try
FreeFree€0.011Try
FreeFree€0.012Try
FreeFree€0.012Try
FreeFree€0.013Try
FreeFree€0.0148KTry
FreeFree€0.015Try
FreeFree€0.0164KTry
€0.180Free€0.01832KTry
€0.100€0.100€0.02016KTry
€0.200Free€0.020Try
FreeFree€0.02233KTry
FreeFree€0.022131KTry
FreeFree€0.02533KTry
€0.200€0.400€0.060256KTry
€0.150€0.600€0.075128KTry
€0.300€0.600€0.0904KTry
€0.200€0.800€0.100128KTry
€0.200€1.10€0.1304.1MTry
€1.30Free€0.130Try
€0.270€1.10€0.137131KTry
€0.900€0.900€0.180131KTry
€1.00€1.00€0.200127KTry
€1.20€1.20€0.240131KTry
€0.600€2.50€0.310131KTry
€1.40€2.80€0.420128KTry
€1.40€2.80€0.42064KTry
€1.00€4.00€0.5001.0MTry
€1.00€5.00€0.600127KTry
€3.00€3.00€0.60033KTry
€1.50€6.00€0.750128KTry
€2.00€6.00€0.800131KTry
€1.60€6.40€0.80033KTry
€2.00€8.00€1.00256KTry
€3.00€9.00€1.20256KTry
€2.00€10.00€1.2033KTry
€2.50€10.00€1.25128KTry
€8.80€8.80€1.76131KTry
€3.00€15.00€1.80256KTry
€3.00€15.00€1.80200KTry
€12.00€12.00€2.40131KTry
€5.50€22.00€2.7564KTry
€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.