Local AI vs cloud API cost calculator
Is running Llama or Mistral locally cheaper than paying for ChatGPT or Claude? Enter your setup to find your break-even point. For worked scenarios, read or browse .
Cloud API
Pay-per-token pricing
| Model / provider | Input /1M tokens | Output /1M tokens |
|---|---|---|
| GPT-6.2 Astra OpenAI | $8.00 | $40.00 |
| GPT-6.2 Sol OpenAI | $2.00 | $10.00 |
| Claude Fable 5.2 Anthropic | $8.00 | $40.00 |
| Claude Opus 5.5 Anthropic | $4.00 | $20.00 |
| Claude Sonnet 5.5 Anthropic | $2.00 | $10.00 |
| Claude Haiku 5.5 Anthropic | $0.10 | $0.50 |
| Gemini 3.1 Pro Google | $2.00 | $12.00 |
| Gemini 3.8 Flash Google | $0.75 | $3.75 |
| Gemini 3.5 Flash-Lite Google | $0.30 | $2.50 |
| DeepSeek V4.1 Flash DeepSeek | $0.30 | $1.20 |
| DeepSeek V4 Pro DeepSeek | $1.32 | $3.96 |
| GLM-5.3 Z.ai (Together.ai) | $1.40 | $4.40 |
| GLM-5.3-Flash Z.ai (Together.ai) | $0.15 | $0.50 |
| Kimi K3.1 Pro Moonshot AI (Together.ai) | $2.00 | $10.00 |
Cloud pricing last verified 2026-11-26. Flagship-tier rates shown; mini and flash tiers cost far less for lightweight tasks, which narrows local’s savings.
Methodology and assumptions
Local cost formula
Monthly electricity = (Watts ÷ 1000) × hours/day × 30 × rate/kWh
Watts and hardware cost come from the selected GPU’s database entry (TDP and launch price). Amortization spreads hardware cost evenly over the depreciation period. The break-even uses electricity only (running cost), since hardware is a sunk cost after purchase.
Cloud cost formula
Monthly = (input ÷ 1M × price_in + output ÷ 1M × price_out) × 30
Cloud pricing last verified 2026-11-26 (USD flagship-tier rates; sources in lib/cloudPrices.ts), converted to EUR at a fixed rate of 0.92.
Not included in local cost: internet bandwidth, cooling overhead (~10–15% of GPU TDP), maintenance and opportunity cost of capital. These typically add 5–20% to local costs.