Self-host Llama 3.1 8B Instruct vs. API cost
Live OpenRouter API pricing is $0.05/1M input & $0.08/1M output. Renting 1× L4 on Vast.ai costs $0.32/hr ($234/mo) and breaks even at 132.4M tokens/day.
Interactive breakeven calculator
All FP8 self-hosting setups for Llama-3.1-8B-Instruct (~11 GB VRAM)
| GPU setup | Provider | GPU / hr | Monthly (730h) | Est. peak tok/s | Self-host $/1M @ 40% | Breakeven | Deploy |
|---|---|---|---|---|---|---|---|
| 1× NVIDIA L4 Cheapest | | $0.32/hr | $234 | 150 tok/s | $1.477 | 132.4M/day | Launch ↗ |
| 1× NVIDIA RTX 4090 | | $0.38/hr | $277 | 494 tok/s | $0.534 | 157.2M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | | $0.40/hr | $292 | 377 tok/s | $0.736 | 165.5M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | | $0.45/hr | $329 | 377 tok/s | $0.828 | 186.2M/day | Launch ↗ |
| 1× NVIDIA RTX 4090 | | $0.45/hr | $329 | 494 tok/s | $0.632 | 186.2M/day | Launch ↗ |
| 1× NVIDIA RTX 5090 | | $0.53/hr | $387 | 871 tok/s | $0.422 | 219.3M/day | Launch ↗ |
| 1× NVIDIA L4 | | $0.56/hr | $409 | 150 tok/s | $2.585 | 231.7M/day | Launch ↗ |
| 1× NVIDIA A100 80GB SXM | | $0.58/hr | $423 | 995 tok/s | $0.405 | 240.0M/day | Launch ↗ |
All 4-bit (Q4) self-hosting setups for Llama-3.1-8B-Instruct (~6 GB VRAM)
| GPU setup | Provider | GPU / hr | Monthly (730h) | Est. peak tok/s | Self-host $/1M @ 40% | Breakeven | Deploy |
|---|---|---|---|---|---|---|---|
| 1× NVIDIA L4 Cheapest | Vast.ai | $0.32/hr | $234 | 267 tok/s | $0.831 | 132.4M/day | Launch ↗ |
| 1× NVIDIA RTX 4090 | TensorDock | $0.38/hr | $277 | 897 tok/s | $0.294 | 157.2M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | Vast.ai | $0.40/hr | $292 | 683 tok/s | $0.407 | 165.5M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | TensorDock | $0.45/hr | $329 | 683 tok/s | $0.458 | 186.2M/day | Launch ↗ |
| 1× NVIDIA RTX 4090 | Vast.ai | $0.45/hr | $329 | 897 tok/s | $0.348 | 186.2M/day | Launch ↗ |
| 1× NVIDIA RTX 5090 | Vast.ai | $0.53/hr | $387 | 1,586 tok/s | $0.232 | 219.3M/day | Launch ↗ |
| 1× NVIDIA L4 | Google Cloud | $0.56/hr | $409 | 267 tok/s | $1.455 | 231.7M/day | Launch ↗ |
| 1× NVIDIA A100 80GB SXM | Vast.ai | $0.58/hr | $423 | 1,625 tok/s | $0.248 | 240.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 8B 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.