Local LLM Hardware vs Serverless API (OpenRouter): Real Break-Even Math
When does buying an RTX 4090 or a Mac Studio pay off compared to paying per token on OpenRouter? Break-even volumes computed from current prices.
Counting the hardware, the API is cheaper at most volumes a single machine can serve, because open-weight models are sold close to cost. For example, Qwen 3.8 27B on RTX 4090 24GB undercuts the API above 9.0M tokens/day. Buy hardware when data must not leave your machine, when you need to work offline or without rate limits, or when you already own it and only electricity counts.
| Upfront cost | $740 (M4 16GB) to $0.00 (M3 Ultra 512GB) | $0, pay per token |
| Qwen 3.8 27B on RTX 4090 24GB, 500K tokens/day | $2.32/mo power, $105/mo with the hardware written off over 36 months | $8.03/mo |
| Qwen 3 30B A3B (MoE) on M4 Pro 48GB, 1M tokens/day | $0.47/mo power, $62.14/mo with the hardware written off over 36 months | $6.45/mo |
| Llama 3.3 70B Instruct on Studio M4 Max 128GB, 2M tokens/day | More than one machine can serve (limit near 3.0M tokens/day) | $38.40/mo |
| Data privacy | Nothing leaves your machine | Zero-retention providers exist, but data still leaves your network |
| The largest open models | DeepSeek R1 (671B MoE) needs 383 GB at Q4_K_M: a Mac Studio with 512 GB or a multi-GPU server | DeepSeek R1 (671B MoE) for $0.50 in / $2.18 out per 1M tokens |
Where the break-even sits
The break-even volume is where electricity plus hardware written off over 36 months equals the API bill. With prices from 2026-11-30: Qwen 3.8 27B on RTX 4090 24GB undercuts the API above 9.0M tokens/day; Qwen 3 30B A3B (MoE) on M4 Pro 48GB undercuts the API above 10.3M tokens/day; Llama 3.3 70B Instruct on Studio M4 Max 128GB never undercuts the API within the 3.0M tokens/day one machine can serve. Pricey output tokens pull the break-even down, cheap models push it out of reach. The calculator on the home page computes it for any model and machine.
If you already own the hardware
Then only electricity counts, and the picture changes: Qwen 3.8 27B on RTX 4090 24GB costs $0.15 per 1M tokens in electricity against $0.54 on the API; Qwen 3 30B A3B (MoE) on M4 Pro 48GB costs $0.02 per 1M tokens in electricity against $0.22 on the API; Llama 3.3 70B Instruct on Studio M4 Max 128GB costs $0.16 per 1M tokens in electricity against $0.64 on the API. A gaming PC or work laptop you have anyway makes local inference close to free per token.
The hybrid setup most engineers converge on
Run a fast local model on the workstation for autocomplete, private code and offline work, and send hard reasoning or long-context jobs to an API. The local model does not need to be the best one, only fast and good enough for the frequent small tasks.
Frequently asked questions
How much electricity does an RTX 4090 cost to run local LLMs?
At about 428 W under load (GPU plus the rest of the PC), $0.18/kWh and 3 hours of generation a day, roughly $6.93 per month. That is small next to the cost of the hardware itself.
Are OpenRouter :free models usable for development?
Yes, with rate limits. 6 of the 167 models in our catalog currently have a free route on OpenRouter, which is enough to prototype before buying hardware.
Test weights, GQA KV cache, Cloud GPU hourly cost, and OpenRouter break-even in real time.