Self-host gemma 4 31B it vs. API cost
Live OpenRouter API pricing is $0.20/1M input & $0.40/1M output. Renting 1× RTX A6000 on Vast.ai costs $0.40/hr ($292/mo) and breaks even at 38.4M tokens/day.
Interactive breakeven calculator
All FP8 self-hosting setups for gemma-4-31B-it (~37 GB VRAM)
| GPU setup | Provider | GPU / hr | Monthly (730h) | Est. peak tok/s | Self-host $/1M @ 40% | Breakeven | Deploy |
|---|---|---|---|---|---|---|---|
| 1× NVIDIA RTX A6000 Cheapest | | $0.40/hr | $292 | 98 tok/s | $2.824 | 38.4M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | | $0.45/hr | $329 | 98 tok/s | $3.176 | 43.2M/day | Launch ↗ |
| 1× NVIDIA A100 80GB SXM | | $0.58/hr | $423 | 254 tok/s | $1.589 | 55.7M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | | $0.59/hr | $431 | 98 tok/s | $4.165 | 56.6M/day | Launch ↗ |
| 1× NVIDIA RTX 6000 Ada | | $0.60/hr | $438 | 117 tok/s | $3.564 | 57.6M/day | Launch ↗ |
| 1× NVIDIA A100 40GB | | $0.63/hr | $460 | 195 tok/s | $2.250 | 60.5M/day | Launch ↗ |
| 2× NVIDIA L4 | | $0.64/hr | $467 | 78 tok/s | $5.731 | 61.4M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | | $0.69/hr | $504 | 98 tok/s | $4.871 | 66.2M/day | Launch ↗ |
All 4-bit (Q4) self-hosting setups for gemma-4-31B-it (~21 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 | 65 tok/s | $3.429 | 30.7M/day | Launch ↗ |
| 1× NVIDIA RTX 4090 | TensorDock | $0.38/hr | $277 | 228 tok/s | $1.157 | 36.5M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | Vast.ai | $0.40/hr | $292 | 176 tok/s | $1.579 | 38.4M/day | Launch ↗ |
| 1× NVIDIA RTX A6000 | TensorDock | $0.45/hr | $329 | 176 tok/s | $1.776 | 43.2M/day | Launch ↗ |
| 1× NVIDIA RTX 4090 | Vast.ai | $0.45/hr | $329 | 228 tok/s | $1.371 | 43.2M/day | Launch ↗ |
| 1× NVIDIA RTX 5090 | Vast.ai | $0.53/hr | $387 | 403 tok/s | $0.914 | 50.9M/day | Launch ↗ |
| 1× NVIDIA L4 | Google Cloud | $0.56/hr | $409 | 65 tok/s | $6.000 | 53.8M/day | Launch ↗ |
| 1× NVIDIA A100 80GB SXM | Vast.ai | $0.58/hr | $423 | 462 tok/s | $0.872 | 55.7M/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 31.3B 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.