Tool

Local hardware or API calls?

The comparison people usually make is price per token. The comparison that decides the question is total monthly cost at your real volume, plus whether the machine can physically produce that volume in a day.

Monthly, local vs cloud$27.10 vs $52.50Break-even at 259 requests/day
Hardware amortisation / month$25.00
Electricity / month$2.10
Local total / month$27.10
Cloud total / month$52.50
3-year total, local (hardware + power)$975.60
3-year total, cloud$1,890.00
Local generation time / day3.1 h

At this volume, owning the hardware is cheaper on paper.

Generation time is the honest constraint: if the daily volume needs more hours than the machine has, the local option is not slower-but-cheaper, it is impossible.

Assumptions worth arguing with

The model ignores maintenance time, replacement, failure, and the cost of your own hours. It also ignores that cloud prices fall and hardware depreciates — a break-even that is 30 months out rarely arrives.

Electricity uses an average draw; a machine at idle and one generating at full tilt differ by a large factor, so measure it with a meter rather than trusting a spec sheet.

Local wins on more than price when the data cannot leave the building, or when the workload must keep running through a provider outage. Those are real reasons, and they are not in the arithmetic.

Questions this page gets

Is local always cheaper at high volume?
No. It is cheaper per request only above the break-even point, and that point depends on hardware price, electricity and how much of the day the machine runs. Below it, the API wins even before you count your own maintenance time.
What does the calculator leave out?
Maintenance, replacement, your own hours, downtime, and the risk that the hardware is obsolete before it pays for itself. It also assumes the local machine can generate the daily volume in the hours available — the "generation time per day" row is there to make that constraint visible.
When is local the right answer regardless of price?
When the data cannot leave the building, when the workload must keep going through a provider outage, or when latency to an API is the bottleneck. Those are engineering reasons, and they are worth more than a break-even spreadsheet.

Related reading