In the FinOps for AI guide

It depends on how busy you keep the GPUs


Should you self-host a model or use an API?

Calculator

Self-host or pay per token

Enter what your GPU capacity costs, what it can process, and how busy it really is. The calculator compares it with a managed API at the same monthly volume.

Self-hosted

Managed API, per million tokens ($)

Cheaper at this volume

The API

By $7,200 a month. Self-hosting breaks even at 58% utilization, and you are at 43%.

Self-hosted$28,127 a month
Managed API$20,927 a month

Per million tokens

Self-hosted, at your utilization
$4.48
Self-hosted, at full load
$1.93
Managed API, blended
$3.33
Servers needed
1

This leaves out 2 things that often decide it: capacity kept for the busiest hour, and whether the model you can host matches the quality of the one you compare it with.

Throughput depends on the model, the hardware, and how requests are batched, so measure your own before deciding. Starting values are an illustration, not a benchmark. Nothing you enter is stored or sent.

This calculator compares running a model on your own GPU capacity with paying a managed API per token, at the same monthly volume. Self-hosted capacity costs the same every hour, so its cost per token depends on utilization. The calculator shows both monthly costs, the cost per million tokens for each, and the utilization at which self-hosting breaks even.

How to use the calculator

  • Enter what one server costs per hour and how many tokens it can process per hour at full load. Measure throughput on your own model and hardware if you can.
  • Enter the average utilization you really reach, not the one you hope for.
  • Add what it costs a month to run, in engineering time.
  • Enter the API's input and output prices, your mix of input to output tokens, and your monthly volume.

How it works

The API's blended price = (input price × input share + output price × output share). Servers needed = monthly volume / (throughput × 730 hours × utilization), rounded up. Self-hosted cost = servers × hourly cost × 730, plus people. Break-even utilization = hourly cost / (throughput × blended API price).

A worked example

The illustration in the guide: an 8-GPU server at $38.53 an hour processing 20 million tokens an hour at full load, against an API at $2 and $10 per million with 5 input tokens for every output token. Self-hosting breaks even at 58% utilization. At 43%, the API is about $7,200 a month cheaper, before counting people. See GPU and capacity planning.

What to do with the result

If you are below break-even, raise utilization first, by scheduling batch work into idle hours, or move the workload to an API. If you are above it, check quality and peak capacity before committing to more hardware.

Questions leaders ask

When is self-hosting an LLM cheaper?

When utilization is high and steady enough that the fixed hourly cost is spread over many tokens. In typical examples, self-hosting breaks even somewhere around half to two-thirds utilization, before counting the engineers who run it.

What utilization do self-hosted models reach?

Often less than expected. Capacity has to cover the busiest hour, so average utilization is usually well below peak. Many teams find their GPUs idle overnight and at weekends, which is why scheduling batch work into those hours helps so much.

What does this calculator leave out?

Capacity kept for peaks beyond the average, data transfer, and any difference in quality between the model you can host and the one you compare it with. Add those before deciding, and compare cost per task on the same work.

Keep going

See every guide in the series

Last reviewed