Back to Devoured - May 18, 2026
DEVOURED
Apple Silicon costs more than OpenRouter

Apple Silicon costs more than OpenRouter

AI William Angel
Running LLMs locally on a $4,299 M5 Max MacBook Pro costs about 3x more per million tokens than OpenRouter cloud APIs and runs 2-7x slower.
What: William Angel calculated the total cost of running LLM inference on an M5 Max MacBook Pro (64GB RAM, $4,299) factoring in electricity (~$0.02/hour at 100W) and hardware depreciation over 3-10 years. Local inference generates 10-40 tokens/sec at $0.40-$4.79 per million tokens. OpenRouter's Gemma 4 31b costs $0.38-0.50 per million tokens at 60-70 tokens/sec.
Why it matters: Challenges the assumption that buying hardware for local LLM inference saves money versus cloud APIs. Cloud economics have improved to where even accounting for multi-year hardware amortization, APIs are cheaper and faster. For knowledge workers, token costs are negligible compared to salary (~1000x less), making speed the deciding factor.
Takeaway: If you're considering an M5 Max primarily for local LLM inference to save costs, use OpenRouter or Anthropic APIs instead - they're cheaper and 2-7x faster.
Deep dive
  • Total M5 Max cost: $4,299 for 64GB model capable of running Gemma 4 31b (near Anthropic Sonnet performance)
  • Electricity: 50-100W under load at $0.20/kWh = $0.02/hour (hardware depreciation dominates)
  • Hardware amortization: $0.16/hour (3yr), $0.10/hour (5yr), $0.05/hour (10yr lifespan)
  • Local performance: 10-40 tokens/sec for models like Gemma 4 31b on M5 Max
  • Cost per million tokens (local): $1.61-$4.79 pessimistic case (100W, 10 tok/s, 3yr) to $0.40-$1.20 optimistic (50W, 40 tok/s, 10yr)
  • OpenRouter Gemma 4 31b: $0.38-0.50/million tokens at 60-70 tokens/sec
  • Realistic comparison: local is ~3x more expensive than OpenRouter at 2-7x slower speed
  • Only breaks even in best-case scenario: 50W, 40 tok/s, 10-year lifespan
  • For salaried employees: token costs are ~1000x smaller than salary, making speed the primary consideration
  • Conclusion: cloud APIs make more economic sense despite Apple Silicon's impressive capability to run near-Sonnet-level models locally
Decoder
  • OpenRouter: API aggregator providing access to various LLM providers (including open models like Gemma) with unified billing, typically at competitive rates by routing to the cheapest available provider
  • Tokens per second: LLM inference throughput measure indicating how many word-pieces the model generates per second during text generation
Original article

Offline Agentic Coding part 3: Apple Silicon costs more than OpenRouter.

Apple silicon costs more than OpenRouter.

At ~50-100 watts under load, and ~$0.20 per kWh, my M5 MacbookPro will cost a few cents per hour. Accelerated depreciation (if any) from shortening the lifespan of the device will be more expensive than the electricity. At a few tens of tokens per second this works out to ammortized costs of ~$1.50 per million tokens. Openrouter for comparable models is 1/3rd the price and ~2x the speed.

Electricity

In Northern Virginia my last electricity bill worked out to $0.18 per kilowatt hour. Let's round up to $0.20 per kWh.

EIA has average residential costs for 2025 at $0.1730 per kWh in the US.
https://www.eia.gov/electricity/monthly/epm_table_grapher.php?t=table_5_03

At ~50-100 watts and $0.18/kWh that's $0.009 or $0.018 per hour. $0.02 per hour. $0.48 cents per day for the electricity to be running inference at 100%.

Hardware

A 14 inch MBP with M5 Max and 64 gigs of ram is currently listed as $4299 on the apple website. 128 gigs will cost you more but 64 gigs should run a model like Gemma 4 31b, which is almost anthropic sonnet levels of performance.

For cost allocation, let's consider that this hardware will last 3, 5, or 10 years. The cost per year is $1433, $860, or $430 respectively.

The hourly cost over 3, 5, and 10 years is thus:

  • $0.16358
  • $0.09815
  • $0.04908

Depending on useful lifespan, I think 5 years is a reasonable estimate for normal use. 7 or 10 is very plausible. At maxed out inference 3 years may be a reasonable estimate as well.

Tokenomics

The big question is how many tokens per hour can you get out of a local model. My M5 Max testing seems to be in the 10-40 tokens per second range for a serious model like Gemma4:31b. At 10 tokens per second that's 36000 tokens per hour.

36000 tokens per hour across our 3-10 year lifespan at $0.18 per kwh gives a price per million tokens of $1.61 to $4.79 on the high end.

At 40 tokens per second that's 144000 tokens per hour which gets you to $0.40 to $1.20 per million tokens.

For apple silicon, the hardware cost dominates.

OpenRouter

OpenRouter has Gemma4 31b at ~38-50 cents per million tokens. This means that on the optimistic side (50 watts, 40 tokens per second, and 10 years) the pro max is as cheap as openrouter. On the pessimistic side (100 watts and 3 years at 10 tokens per second) the pro max is 10x the cost. I think ~3x the cost per million tokens is likely the right number for local inference on the pro max from an accounting perspective.

Conclusion

Speed of inference is the biggest factor here though for most cases. Local inference is slower than cloud inference. Some of the gemma 4 providers on openrouter get up to 60-70 tokens per second, which is 3-7 times faster than what I'm seeing with the pro max (~10-20 tokens per second). For a human employee with a work laptop, their salary costs are going to be ~1000x the cost of the tokens they can generate locally. Throwing money at anthropic makes more sense in this context.

It's still wild that a consumer device can run models that are close to anthropic sonnet levels of performance.

Explore all 67 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi