July 07, 2026
If you're trying to pin down the cost of AI inference, the GPU hourly rate is the wrong place to stop. An hourly rate tells you what an hour of hardware costs. It says nothing about how many requests or tokens that hour produces, and that ratio is where the real number lives. The cost of AI inference is calculated by dividing your all-in hourly cost by the useful work the GPU produces in that hour, then expressing it per token or per request. This guide walks through the two formulas that matter, the three inputs each one needs, and a full worked example you can copy for your own model.
Almost every inference cost question resolves to one of two units. Pick the one that matches how your workload behaves before you calculate anything.
The distinction matters because a per-request average hides variance. A chatbot that answers in 40 tokens and one that writes 800-token essays have wildly different costs per call on the same model. Tokens normalize that, which is why cost per million tokens is the honest metric for anything generative.
Whether you land on per request or per token, the shape of the calculation is the same. You need three inputs.
From those three, the formula is:
Cost per unit = All-in hourly cost / (Throughput per hour x Utilization)
The utilization term is the one teams forget, and it's usually the biggest driver of the gap between the number you planned and the number you paid. A GPU rented by the hour bills whether it's working or idle, so effective throughput is always raw throughput multiplied by how busy the GPU stays.
Two teams can rent the same GPU at the same rate and report inference costs that differ by 5x. The rate is identical, so the difference is entirely throughput and utilization.
| Input | Team A | Team B | Effect on cost |
|---|---|---|---|
| GPU rate | $2.00/hr | $2.00/hr | None; identical |
| Throughput (tokens/sec) | 2,500 | 1,200 | Higher throughput lowers cost |
| Utilization | 80% | 25% | Higher utilization lowers cost |
| Effective tokens/hour | 7.2M | 1.08M | 6.7x difference |
| Cost per million tokens | $0.28 | $1.85 | Same rate, very different cost |
Team A and Team B pay the identical hourly rate and run the identical model class, yet Team A's cost per million tokens is roughly a sixth of Team B's. Throughput came from a larger batch size and a well-tuned serving stack; utilization came from steady traffic instead of a mostly idle reserved GPU. This is the single most important thing to understand about the cost of AI inference: the hourly rate is a minor variable next to how much useful work you extract from each paid hour.
Numbers make this concrete. Assume you're serving a mid-sized language model on a single H100 and you want the cost per million output tokens.
Start with the inputs:
Now apply the formula:
So this setup delivers roughly $0.51 per million tokens. Now watch what happens if utilization drops to 25 percent because traffic is bursty and the reserved GPU sits idle most of the day:
Same GPU, same rate, same model. The cost per million tokens more than doubled purely because of idle time. If you'd quoted the cost of AI inference from the hourly rate alone, you'd have missed this entirely.
For non-generative workloads, swap tokens for requests and the method is unchanged. Suppose the same H100 processes 40 image embeddings per second at your batch size:
The reason per-request math is cleaner here is that each embedding does a fixed amount of work. When work per call varies, go back to tokens.
Everything above assumes you rent a GPU by the hour and manage utilization yourself. There's a second path that removes the utilization variable from your side of the equation. With per-request serverless inference billed per token, the provider absorbs idle time by scaling to zero when no one calls your endpoint. You pay a published price per token or per request and skip the throughput and utilization math entirely, because the provider has already done it and priced it in.
This is why teams comparing options should calculate both ways:
The break-even point is the utilization level where your calculated per-hour cost per token equals the serverless per-token price. Below that utilization, serverless is cheaper; above it, renting wins.
The formulas only work if the inputs are real. A rate card with hidden egress or throttling breaks the all-in hourly cost term, and a per-token price you can't see makes the break-even comparison impossible. GMI Cloud is an AI-native inference cloud built for production AI, and it publishes transparent per-GPU-hour rates with no hidden fees, so the all-in hourly cost you plug into the formula matches the invoice.
| NVIDIA GPU | GMI Cloud rate | Use in the calculation |
|---|---|---|
| H100 | from $2.00/GPU-hour | Baseline for the worked example |
| H200 | from $2.60/GPU-hour | Higher throughput can lower cost per token |
| B200 | from $4.00/GPU-hour | Compare on delivered cost, not rate |
| GB200 NVL72 | from $8.00/GPU-hour | Multi-GPU throughput for large models |
GMI Cloud's two engines map onto the two calculation paths. The Cluster Engine covers per-hour rental through container, bare metal, and managed cluster options, with no hypervisor overhead so you get the full advertised throughput that goes into your tokens-per-hour figure. The Inference Engine covers Model-as-a-Service, where per-token billing does the utilization math for you and scale-to-zero means idle time costs nothing. Because MaaS bills per token, it's the fastest way to get a real cost of AI inference for a given model without running your own throughput benchmarks first. You can check current rates on the GMI Cloud pricing page or browse available models on the models page.
The cost of AI inference is a calculation, not a rate card lookup. Get your all-in hourly cost, measure real throughput at your batch size, be honest about utilization, and divide. Do that per token for generative models and per request for fixed-work calls. Then compare that delivered number against a published per-token price to decide whether to rent or go serverless. Quoted the raw hourly rate way, inference cost is a guess; quoted per million tokens with utilization counted, it's a number you can plan a budget around.
Colin Mo
GMI Cloud helps you architect, deploy, optimize, and scale your AI strategies
