XEONTRIX
Start a project
FREE CALCULATORLLM API · self-hosted

LLM cost calculator: API vs self-hosted

Estimate your monthly LLM bill from requests and tokens, compare it with running an open-weight model on your own GPUs, and see when self-hosting breaks even.

Model tier

Approximate list prices: edit to current prices for the model you use.

Self-hosted open model
Fits up to ~30B-parameter models.
On-demand cloud rate; edit to yours.
Sustained output at full load.
Real traffic is bursty.
Monitoring, updates, on-call.
Used for break-even months.
API cost per month$1,064

$7.00 per 1,000 requests · $12,768 a year

Self-hosted (1 × GPU, incl. running effort)
$1,814/mo
Difference per month
costs $750
Break-even on setup
n/a
Self-hosting pays from
~8,524 req/day

One GPU handles ~73,532 requests/day at your settings. A rough guide: real capacity depends on model size, quantisation and context length.

Email me the full cost report

What you get
  • Monthly and yearly API cost from your request volume and token counts
  • Small, mid-tier and frontier price presets you can edit to current pricing
  • A self-hosting comparison with editable GPU rates and running costs
  • Your break-even point in months, plus a savings plan matched to your spend

How to use the result

  • Self-hosting costs more: stay on the API and optimise. Route easy requests to a smaller model, cache repeated prompts, trim context and cap output length.
  • Close to break-even: a hybrid often wins. Keep a frontier model for hard cases and serve the bulk from an open model.
  • Clear saving, or data must stay in-house: price a self-hosted open-source LLM deployment properly, including monitoring and on-call time.

We do this work as LLM cost optimisation.

Further reading: how to reduce LLM API costs in production and cloud vs self-hosted LLMs for compliance.

FAQ

Questions, answered.

More free tools
Are the model prices up to date?

The defaults are approximate list prices as of late 2026 and are there to get you started. Provider pricing changes often, so edit the per-token prices to match your current plan.

When does self-hosting make sense?

Usually when volume is high and steady, or when data must stay in your own environment. At a few hundred dollars a month it rarely pays. The calculator shows where your break-even point sits.

Will self-hosting mean rewriting my app?

Rarely. Open-weight models can be served behind an OpenAI-compatible API, so in most apps only the base URL, key and model name change.

How is the self-hosted capacity estimated?

From the tokens per second one GPU sustains and your average utilisation. Input tokens count at about one eighth of an output token, because prompt processing is much faster than generation. If your volume needs more GPUs than you entered, the estimate adds them.

LLM cost review · free

Cut the bill, keep the quality.

Send us a week of usage numbers. We'll show where routing, caching or an open model would save money, at no cost.

Get a free cost review See pricing