Unit economics tool
LLM inference cost per million tokens calculator
Calculate your effective cost per million tokens on dedicated GPUs, account for off-peak idle hours, and find the utilization threshold where self-hosting beats a hosted token API.
Fleet cost, throughput, and API benchmark
How self-hosted token economics work
Fleet hourly cost = GPU $/hr × GPUs_per_replica × replicas
Effective output tok/hr = output_tok_per_sec × replicas × 3,600 × utilization
Self-hosted $/1M output = (Fleet hourly cost ÷ Effective output tok/hr) × 1,000,000
API equiv. $/1M output = API_output_$/1M + (input_to_output_ratio × API_input_$/1M)Dedicated GPUs are billed by wall-clock time whether traffic arrives or not. A server capable of 1,800 output tokens/s at peak load averages only 360 tokens/s at 20% 24-hour utilization, multiplying per-token cost by five. Measure sustainable goodput—requests meeting your TTFT and TPOT targets—before plugging throughput into a cost sheet.
Include engineering operations, storage bandwidth for cold starts, networking, and standby failover capacity when comparing total cost of ownership. Read AI cloud infrastructure for LLM inference for autoscaling and deployment tradeoffs.
Frequently asked questions
Why does 24/7 GPU utilization affect token cost so heavily?
Dedicated GPUs bill by wall-clock hour regardless of traffic. At 20% average utilization across day and night troughs, effective output tokens per hour drop by 5x and cost per million tokens rises by 5x.
What throughput number should I enter for my model replica?
Use sustainable goodput measured under your production TTFT and TPOT targets with realistic prompt-to-output ratios, not synthetic single-prompt peak tokens per second.
How is the break-even utilization percentage calculated?
The calculator converts hosted input and output token prices into an equivalent cost per million output tokens using your prompt-to-output ratio, then computes the percentage of maximum replica capacity needed for hourly GPU cost to equal API spend.
What hidden costs sit outside raw GPU hourly rates?
Account for standby failover replicas, autoscaling warm pools, model weight storage and network egress, observability pipelines, and engineering time to maintain serving releases.