Tool · cost
Cost per million tokens
What does a million tokens cost on my GPU, and how does it compare with an API at the same input and output mix?
How it counts
$/Mtok = GPU-hour price ÷ (tokens per hour ÷ 1,000,000)
What does a million tokens cost on your GPUs?
Start from
GPUs
Latency target
Mode
Self-hosted: $0.137 per million tokens
■ GPU time at full load $0.137■ idle hours $0.0000■ spares $0.0000■ fixed costs $0.0000
Compare with
Self-hosted, all costs
$0.137
Z.ai GLM-5.3, same mix (list price)
$2.00
Break-even utilization
7%
$0.272 per GPU-hour (purchase price over its life, plus power at full draw); 1.45 billion tokens a month at this load. Enter throughput as total tokens per second (prompt and output, cached prompt tokens included) measured at your latency target and your own mix: a higher cache hit rate raises it, and it is the only place the cache enters the self-hosted side. API prices are list prices read 7 November 2026; same model; cache storage free for a limited time. vLLM 0.31.0, BF16, 1,024 in / 256 out, no cache hits; targets are TTFT / TPOT. The API row is another model: read it as a price level, not a like-for-like price.