Self-host GLM 4.7 vs. API cost
Live OpenRouter API pricing is $0.40/1M input & $1.75/1M output. Renting 8× A100 80GB SXM on Vast.ai costs $4.64/hr ($3,387/mo) and breaks even at 150.9M tokens/day.
Interactive breakeven calculator
All FP8 self-hosting setups for GLM-4.7 (~403 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 | 176 tok/s | $18.316 | 150.9M/day | Launch ↗ |
| 8× NVIDIA A100 80GB PCIe | | $6.96/hr | $5,081 | 169 tok/s | $28.603 | 226.3M/day | Launch ↗ |
| 4× AMD Instinct MI300X | | $9.56/hr | $6,979 | 234 tok/s | $28.396 | 310.9M/day | Launch ↗ |
| 8× NVIDIA A100 80GB PCIe | | $10.80/hr | $7,884 | 169 tok/s | $44.384 | 351.2M/day | Launch ↗ |
| 8× NVIDIA A100 80GB SXM | | $11.92/hr | $8,702 | 176 tok/s | $47.053 | 387.6M/day | Launch ↗ |
| 4× NVIDIA H200 SXM | | $12.40/hr | $9,052 | 208 tok/s | $41.333 | 403.3M/day | Launch ↗ |
| 4× NVIDIA H200 SXM | | $12.60/hr | $9,198 | 208 tok/s | $42.000 | 409.8M/day | Launch ↗ |
| 8× NVIDIA H100 SXM | | $13.84/hr | $10,103 | 293 tok/s | $32.822 | 450.1M/day | Launch ↗ |
All 4-bit (Q4) self-hosting setups for GLM-4.7 (~224 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 | 163 tok/s | $9.872 | 75.4M/day | Launch ↗ |
| 8× NVIDIA RTX A6000 | Vast.ai | $3.20/hr | $2,336 | 124 tok/s | $17.944 | 104.1M/day | Launch ↗ |
| 4× NVIDIA A100 80GB PCIe | Vast.ai | $3.48/hr | $2,540 | 156 tok/s | $15.467 | 113.2M/day | Launch ↗ |
| 8× NVIDIA RTX 5090 | Vast.ai | $4.24/hr | $3,095 | 286 tok/s | $10.300 | 137.9M/day | Launch ↗ |
| 8× NVIDIA RTX A6000 | DataCrunch (Verda) | $4.72/hr | $3,446 | 124 tok/s | $26.467 | 153.5M/day | Launch ↗ |
| 8× NVIDIA RTX 6000 Ada | Vast.ai | $4.80/hr | $3,504 | 150 tok/s | $22.154 | 156.1M/day | Launch ↗ |
| 4× NVIDIA A100 80GB PCIe | TensorDock | $5.00/hr | $3,650 | 156 tok/s | $22.222 | 162.6M/day | Launch ↗ |
| 8× NVIDIA A100 40GB | Vast.ai | $5.04/hr | $3,679 | 247 tok/s | $14.197 | 163.9M/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 358.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.