Self-host Llama 3.1 405B vs. API cost
Live OpenRouter API pricing is $1.00/1M input & $1.00/1M output. Renting 8× A100 80GB SXM on Vast.ai costs $4.64/hr ($3,387/mo) and breaks even at 111.4M tokens/day.
Interactive breakeven calculator
All FP8 self-hosting setups for Llama 3.1 405B (~430 GB VRAM)
| GPU setup | Provider | GPU / hr | Monthly (730h) | Est. peak tok/s | Self-host $/1M @ 40% | Breakeven | Deploy |
|---|---|---|---|---|---|---|---|
| 8× NVIDIA A100 80GB SXM Cheapest | | $4.64/hr | $3,387 | 156 tok/s | $20.622 | 111.4M/day | Launch ↗ |
| 8× NVIDIA A100 80GB PCIe | | $6.96/hr | $5,081 | 150 tok/s | $32.123 | 167.0M/day | Launch ↗ |
| 4× AMD Instinct MI300X | | $9.56/hr | $6,979 | 202 tok/s | $32.777 | 229.4M/day | Launch ↗ |
| 8× NVIDIA A100 80GB PCIe | | $10.80/hr | $7,884 | 150 tok/s | $49.846 | 259.2M/day | Launch ↗ |
| 8× NVIDIA A100 80GB SXM | | $11.92/hr | $8,702 | 156 tok/s | $52.978 | 286.1M/day | Launch ↗ |
| 4× NVIDIA H200 SXM | | $12.40/hr | $9,052 | 182 tok/s | $47.389 | 297.6M/day | Launch ↗ |
| 4× NVIDIA H200 SXM | | $12.60/hr | $9,198 | 182 tok/s | $48.153 | 302.4M/day | Launch ↗ |
| 8× NVIDIA H100 SXM | | $13.84/hr | $10,103 | 260 tok/s | $36.907 | 332.2M/day | Launch ↗ |
All 4-bit (Q4) self-hosting setups for Llama 3.1 405B (~230 GB VRAM)
| GPU setup | Provider | GPU / hr | Monthly (730h) | Est. peak tok/s | Self-host $/1M @ 40% | Breakeven | Deploy |
|---|---|---|---|---|---|---|---|
| 4× NVIDIA A100 80GB SXM Cheapest | Vast.ai | $2.32/hr | $1,694 | 143 tok/s | $11.226 | 55.7M/day | Launch ↗ |
| 8× NVIDIA RTX A6000 | Vast.ai | $3.20/hr | $2,336 | 111 tok/s | $20.000 | 76.8M/day | Launch ↗ |
| 4× NVIDIA A100 80GB PCIe | Vast.ai | $3.48/hr | $2,540 | 137 tok/s | $17.695 | 83.5M/day | Launch ↗ |
| 8× NVIDIA RTX 5090 | Vast.ai | $4.24/hr | $3,095 | 254 tok/s | $11.616 | 101.8M/day | Launch ↗ |
| 8× NVIDIA RTX A6000 | DataCrunch (Verda) | $4.72/hr | $3,446 | 111 tok/s | $29.500 | 113.3M/day | Launch ↗ |
| 8× NVIDIA RTX 6000 Ada | Vast.ai | $4.80/hr | $3,504 | 137 tok/s | $24.407 | 115.2M/day | Launch ↗ |
| 4× NVIDIA A100 80GB PCIe | TensorDock | $5.00/hr | $3,650 | 137 tok/s | $25.424 | 120.0M/day | Launch ↗ |
| 8× NVIDIA A100 40GB | Vast.ai | $5.04/hr | $3,679 | 221 tok/s | $15.832 | 121.0M/day | Launch ↗ |
Physics & breakeven methodology
1. Dollar breakeven: breakeven_M_per_day = (GPU_$/hr × 24) ÷ blended_API_$/1M.
We pull live token pricing from OpenRouter's public API so API benchmarks stay current.
2. Throughput & node count: Autoregressive decoding is memory-bandwidth bound:
single_stream_tok_s = min(250, (total_BW_TB/s × 600) ÷ active_GB) using 405B active parameters. Continuous batching (vLLM / SGLang) multiplies peak node throughput by 6.5×, scaled by your selected utilization preset (15%, 40%, or 75%). If your daily volume exceeds 1 node's capacity, the calculator automatically multiplies the node count needed.