NeuroGenesys.
All Free ToolsFree Tools • Local LLM vs API Cost Calculator

Run it yourself, or pay per token?

A GPU is a fixed cost: you pay for it whether it serves ten requests or ten million. An API is the opposite. Enter your monthly volume, the API you would use and the hardware you would buy, and see both bills side by side, with the volume at which owning starts to pay.

Free · runs in your browser · updated

1 · Your workload and the API

Examples

2 · Your hardware

3 · Monthly cost

run it yourself$96.24
GPT-5 mini$97.50
machines needed1
break-even volume100K/mo
hardware / month$83.33
electricity / month$12.90
busy hours / month17
capacity / machine2.6M req
run it yourselfGPT-5 mini
$0$25,000$50,000$75,000$100,0001K10K100K1M10M100Mrequests per monthUSD per month
Owning hardware is a fixed monthly cost until one machine is busy, then it steps up; the API grows in proportion to use. Where they cross is the break-even volume.
At 100K requests a month, running Llama 3.1 8B yourself costs $96.24 against $97.50 for GPT-5 mini. The comparison is cost only: the API model and Llama 3.1 8B may differ a lot in quality, so check both on your own task.

One machine serves about 1349 output tokens/s across 16 concurrent requests and reads prompts at about 4016 tokens/s (roofline estimates from the inference speed estimator at its default efficiencies). Not counted: your time, redundancy, cache-write surcharges and resale value.

Next, with these inputs
How this is computed +

Local cost

  1. Throughput from the roofline model: decode tokens/s across the batch (memory bandwidth at 70% of peak, 65% on Apple), and prompt tokens/s from the prefill estimate (compute at 40% MFU; on Macs, without a published FLOPS figure, 10× the decode rate). Each extra card adds 85% of one.
  2. Seconds per request = output tokens ÷ decode tokens/s + input tokens ÷ prefill tokens/s. Busy hours = requests × seconds per request ÷ 3,600.
  3. Machines = busy hours ÷ (730 h × max utilization), rounded up. Hardware per month = machines × price ÷ months written off.
  4. Electricity = (busy hours × load watts + remaining hours × idle watts) ÷ 1,000 × $/kWh, plus other costs per machine.

API cost

Requests × (uncached input × input price + cached input × cache-read price + output × output price), at the list prices in the LLM API cost calculator, including long-context tiers.

Break-even

The smallest monthly volume, from 1,000 to 1 billion requests, at which the local total is below the API's.

Building an AI agent?

When an agent gets worse after an update, the cause is often a router, retriever or judge picking the wrong option, not a lost skill. Selection reliability measures how often that happens, with a confidence interval, and gates the next update.

Questions

Is it cheaper to run an LLM locally than to use an API?

Only at high, steady volume. A $3,000 desktop written off over three years costs about $83 a month before electricity, which buys tens of millions of tokens from a small API model. Owning wins when the hardware is busy most of the day, or when the API you would otherwise use is a large, expensive one.

How many requests can one GPU serve?

It depends on output length and batching. Decode speed is set by memory bandwidth: an RTX 4090 runs an 8B model at Q4 at roughly 100+ tokens per second for one request, and serving many requests at once multiplies total throughput several times over. The calculator estimates capacity from the same roofline model as the inference speed estimator.

What does this leave out?

Your time to run and update the server, redundancy for when it fails, cache-write surcharges on the API side, discounts for batch APIs, and the hardware's resale value. It also compares cost only: an open model and an API model can differ a lot in quality on your task.

Should I include electricity at idle?

Yes, if the machine stays on. The calculator charges load power for the hours it is busy serving your workload and idle power for the rest of the month.

Related

Leadership

A word from the founder — on why the brain is the blueprint, and why the next decade of intelligence will be built here.

"The brain is the universe's only proof that general intelligence is possible. We treat it as the blueprint."

From cortical interfaces to photonic silicon, every program at NeuroGenesys exists to answer one question: how does intelligence arise — and how do we build it safely.

Will Schulz

Will Schulz

Founder, NeuroGenesys • AW3 Technology