Local vs cloud: what does it cost?
If you buy a computer just to run AI, it usually takes years to pay for itself against cloud API prices for the same open models. On a computer you already own you pay only for electricity, so local often costs less each month. Local also wins on privacy, offline use and no rate limits.
Price the same workload two ways, on a computer you run yourself and through a cloud API, with the maths shown.
Checked 24 Nov 2026 · How we estimate this
1 · The workload (each month)
2 · The cloud price
OpenRouterprice for the same open model
3 · Your hardware
Electricity defaults to 18.2¢/kWh, EIA’s 2026 US average. Use your own bill’s rate.
The result, each month
Local saves about $30.33 a month.
Show the maths
- Tokens: 225M in and 18M out a month.
- Cloud: 225M × $0.035 + 18M × $1.5 = $34.88.
- Local writing time: 18,000,000 output tokens ÷ 30 tokens/s ≈ 166.7 hours. Reading the prompt () is left out, so real time is longer.
- Energy: (150 W × 166.7 h) = 25 kWh × 18.2¢ = $4.55.
Not included: tax, shipping, resale value, maintenance, your time, and whether the local model does the job as well. Cloud rates from OpenRouter, 24 Nov 2026.