Wandering Giants Compute · Learn
Cost breakdown

H100 Cost Per Hour vs Cost Per Million Tokens

The short answer

Cost per million tokens = hourly price ÷ (tokens per second × 3,600 ÷ 1,000,000). An H100 at $4.99/hr producing 1,000 tok/s costs about $1.39 per million tokens; at 20 tok/s for one user it costs about $69.31. Throughput and utilisation move the result far more than the hourly rate.

Formula
$/1M tokens = $/hr ÷ (tok/s × 0.0036)
1 tok/s for an hour
3,600 tokens
H100 PCIe bandwidth
about 2.0 TB/s
H100 SXM bandwidth
3.35 TB/s
H100 on-demand range
$1.79–5.62/hr (25 Nov 2026)
Break-even utilisation effect
cost per useful token ÷ utilisation

GPU clouds price by the hour. LLM APIs price by the million tokens. To compare them, or to budget a self-hosted model, you need to convert one into the other, and the conversion hides most of the interesting decisions. This article gives the formula, works it through for an H100 with realistic throughput estimates, and shows how batching, model choice and idle time change the answer.

What is the formula for cost per million tokens?

Cost per million tokens is the hourly price divided by the number of millions of tokens produced in that hour. Written out:

text
tokens per hour       = tokens per second × 3,600
cost per 1M tokens    = hourly price ÷ (tokens per hour ÷ 1,000,000)
                      = hourly price ÷ (tokens per second × 0.0036)

Example: an H100 at $4.99/hr serving 1,000 tokens per second produces 3.6 million tokens an hour. Our list price divided by 3.6 is about $1.39 per million tokens.

The formula is trivial. The input that matters, tokens per second, isn't. It changes by two orders of magnitude depending on model size, precision, batching and whether the GPU is busy at all.

How does the hourly rate translate at different throughputs?

The table below takes a range of H100 hourly prices from the market on 25 Nov 2026 and converts each at five throughput levels. Read across a row to see how much throughput matters; read down a column to see how much the provider's rate matters.

H100 $/hr20 tok/s100 tok/s500 tok/s1,000 tok/s2,500 tok/s
$1.79 (Vast.ai median, SXM)$24.86$4.97$0.99$0.50$0.20
$2.50 (Hyperstack, PCIe)$34.72$6.94$1.39$0.69$0.28
$2.89 (RunPod, PCIe)$40.14$8.03$1.61$0.80$0.32
$4.99/hr (Wandering Giants, PCIe)$69.31$13.86$2.77$1.39$0.55
$4.39 (RunPod, SXM)$60.97$12.19$2.44$1.22$0.49
$5.62 (Verda, SXM)$78.06$15.61$3.12$1.56$0.62

Inputs: on-demand list prices, 25 Nov 2026, US$ before tax. Cost per 1M tokens = $/hr ÷ (tok/s × 0.0036). Throughput columns are illustrative; see the next section for what each model actually reaches.

Going from 20 to 1,000 tokens per second divides the cost by 50. Going from the dearest to the cheapest provider divides it by about 3. Throughput is the lever.

What throughput does an H100 actually reach?

For a single request, decoding is memory-bandwidth-bound: each new token reads every weight once. Throughput ≈ 0.6–0.75 × memory bandwidth ÷ bytes read per token. With batching, one read serves many requests, so aggregate throughput rises until KV cache memory runs out.

ModelPrecision, weightsH100 PCIe single-streamH100 SXM single-streamH100 PCIe batched (aggregate)
Qwen3 8BBF16, 16 GB75–94 tok/s126–157 tok/s750–2,800 tok/s
Qwen3 32B AWQ4-bit, ~18 GB67–83 tok/s112–140 tok/s530–2,080 tok/s
Llama 3.3 70BFP8, ~70 GB17–21 tok/s29–36 tok/s85–260 tok/s
gpt-oss 120BMXFP4 MoE, ~5.1B activeplan on 120–200 tok/shigher1,000–3,000 tok/s

Estimates. Single-stream = 0.6–0.75 × bandwidth (PCIe 2,000 GB/s, SXM 3,350 GB/s) ÷ weight bytes. Batched = single-stream × 10–30 (8B), × 8–25 (32B AWQ), × 5–12 (70B FP8, KV-limited on 80 GB). gpt-oss figures are planning ranges because MoE routing overheads make the bandwidth ceiling misleading. Real numbers depend on prompt and output lengths, concurrency and vLLM settings.

Why the batched range is so wide: if each request has a short prompt and short answer, many fit in memory at once and throughput is high. If each carries a 32k-token context, KV cache fills the card and only a few run together. For Llama 70B the KV cache is about 0.33 MB per token in FP16 (2 × 80 layers × 8 KV heads × 128 head dim × 2 bytes), so a single 32k-token conversation needs about 10.7 GB, more than the roughly 6 GB an 80 GB card has left after FP8 weights. The background is in what tokens per second means.

What does that make the cost per million tokens on our H100?

Combining the two tables gives a per-model cost at our H100 list price.

Model on our H100$ per 1M tokens, single user$ per 1M tokens, batched
Qwen3 8B BF16$14.79–$18.48$0.49–$1.85
Qwen3 32B AWQ$16.63–$20.79$0.67–$2.60
Llama 3.3 70B FP8$64.69–$80.86$5.39–$16.17
gpt-oss 120B$6.93–$11.55$0.46–$1.39

Our live H100 list price ÷ (estimated tok/s × 0.0036). Output tokens only. Estimates.

The single-user column is what a developer pays while testing on their own. The batched column is what a well-loaded production endpoint pays. A full model-by-model budget, including monthly bills, is in how much it costs to run an LLM on an H100.

Is an H100 the cheapest card per million tokens?

Not always. The H100 is a strong all-rounder, but cost per token depends on the ratio of memory bandwidth (which sets tokens per second) to hourly price, and on how much memory is left for batching. For a small model, a cheaper card with less bandwidth can match or beat it; for a large model, a dearer card with more memory often wins.

The same model, Qwen3 8B in BF16, on five of our cards:

GPUBandwidthHourlySingle-stream estimateBatched estimate$ per 1M tokens, batched
RTX 4090 24 GB1,008 GB/s$1.59/hr38–47 tok/s300–950 tok/s$0.47–$1.46
L40S 48 GB864 GB/s$1.89/hr32–40 tok/s260–810 tok/s$0.65–$2.03
A100 80GB1,935 GB/s$3.79/hr73–91 tok/s730–2,720 tok/s$0.39–$1.45
H100 80GB PCIe2,000 GB/s$4.99/hr75–94 tok/s750–2,800 tok/s$0.49–$1.85
H200 141 GB4,800 GB/s$9.09/hr180–225 tok/s1,800–6,750 tok/s$0.37–$1.40

Estimates. Single-stream = 0.6–0.75 × bandwidth ÷ 16 GB. Batched = single-stream × 8–20 on 24–48 GB cards (less KV room) and × 10–30 on 80 GB and larger. Our live list prices.

The spread between cards is small next to the spread between single-stream and batched serving. For an 8B model the 24 GB RTX 4090 is about as cheap per token as the H100 at a third of the hourly price, but it runs out of KV memory sooner, so it suits moderate concurrency. The H200 is cheapest per token only if you have enough traffic to keep it batched. The general rule: pick the card by memory first, then by cost per token at the concurrency you will really see. How much it costs to run an LLM on an H100 has the same comparison by model rather than by card.

How does utilisation change cost per token?

Utilisation multiplies everything. If you pay for 100 hours but the GPU only generates for 40 of them, every useful token costs 2.5 times the table figure. The rule: effective cost per token = batched cost per token ÷ utilisation.

Utilisation (share of paid hours spent generating at batched speed)Llama 70B FP8 on our H100, $ per 1MQwen3 8B on our H100, $ per 1M
100%$5.39–$16.17$0.49–$1.85
75%$7.19–$21.56$0.66–$2.46
50%$10.78–$32.34$0.99–$3.70
25%$21.56–$64.69$1.97–$7.39
10%$53.90–$161.71$4.93–$18.48

Batched cost range from the table above ÷ utilisation.

At 10% utilisation, a batched 70B endpoint costs more per token than a single user hammering the GPU all day. This is why per-token APIs often beat self-hosting at low volume: they keep their GPUs near the top row. If your traffic arrives in bursts, the fix is to stop the GPU between bursts, not to find a cheaper hourly rate. How to calculate GPU utilisation and cost efficiency shows how to measure the real figure.

Do input tokens and output tokens cost the same?

No. Input tokens are processed in the prefill phase, in parallel, using the GPU's compute rather than its memory bandwidth, so an H100 can process thousands of input tokens per second per request. Output tokens are generated one at a time in the decode phase. On your own GPU, a long prompt costs mostly time-to-first-token and KV cache memory; it barely moves the per-hour cost. That's why API price lists charge less for input than output.

For a like-for-like comparison with an API, compare output-token costs, then add a smaller allowance for input. Retrieval-heavy workloads with 20,000-token prompts and 300-token answers are the exception: KV cache memory, not decode speed, limits how many run at once. Prefill vs decode explains the split in more depth.

How do you measure your own tokens per second?

Don't rely on estimates for a budget you'll sign off. Run your real prompts against the model and read the throughput vLLM reports. vLLM logs average prompt and generation throughput every few seconds while serving:

bash
vllm serve Qwen/Qwen3-8B --max-model-len 16384
# In the server log, look for lines like:
# Avg prompt throughput: ... tokens/s, Avg generation throughput: ... tokens/s

For a controlled load test, vLLM ships a serving benchmark script in its repository (benchmarks/benchmark_serving.py in recent versions) that sends requests at a chosen rate and reports output tokens per second; check the vLLM docs for the version you install, as the benchmark tooling has moved between releases. Measure at the concurrency you expect, then plug the number into the formula above.

How do you decide between renting by the hour and paying per token?

Work out your effective cost per million tokens on a rented GPU, including idle hours, and compare it with the API price for the same or an equivalent model.

  1. Estimate monthly output tokens.
  2. Measure or estimate batched throughput at your concurrency.
  3. GPU-hours of generation = tokens ÷ (tok/s × 3,600).
  4. Hours you'd actually pay for = when the GPU must be running (office hours, always-on, or batch windows).
  5. Effective cost per million = (hours paid × hourly price) ÷ (tokens ÷ 1,000,000).

If the API is cheaper and you don't need privacy, a custom model or fixed costs, use the API. If your effective self-hosted cost comes out lower, or close and you value control, rent. The same maths for the most common big model is in how much it costs to run Llama 70B, and the wider picture of GPU prices is in our GPU rental cost guide. Specs for both H100 variants are on NVIDIA's H100 page.

When does a Wandering Giants H100 fit?

Wandering Giants Compute rents the 80 GB H100 PCIe at $4.99/hr, billed by the minute. It is not the lowest hourly rate in the table above; Vast.ai, Hyperstack and RunPod list cheaper H100s, and an SXM card elsewhere will decode faster per hour.

Where we help is the utilisation half of the formula:

  • API mode gives you an OpenAI-compatible endpoint served by vLLM with continuous batching, on your own GPU, with your own key. Point existing code at a new base URL.
  • Per-minute billing means a burst of traffic costs the minutes it ran, not a rounded hour, and the machine stops itself when your prepaid credit runs out.
  • Pausing costs only the disk (about 3¢ an hour per 50 GB), so stopping between bursts doesn't mean re-downloading a model.
  • Bigger cards when KV cache is the limit. An H200 at $9.09/hr has 141 GB, which lets a 70B model batch far more users and lowers cost per token despite the higher hourly price.

Compare our GPUs and prices in your currency.

Frequently asked questions

How do you convert GPU cost per hour to cost per million tokens?

Divide the hourly price by the millions of tokens the GPU produces in an hour. Tokens per hour = tokens per second × 3,600. So $/1M tokens = $/hr ÷ (tok/s × 0.0036). At $4.99/hr and 500 tok/s that is $4.99/hr ÷ 1.8 = $2.77 per million tokens.

What is a realistic tokens per second for an H100?

It depends on model size and batching. For one user, an H100 PCIe decodes an estimated 75–94 tok/s on an 8B BF16 model and 17–21 tok/s on a 70B FP8 model. Batched across many requests, aggregate throughput can be roughly 5 to 30 times higher, limited by free memory for KV cache.

Why is my self-hosted cost per token higher than an API's?

Usually because your GPU is idle much of the time or serving one request at a time. APIs batch thousands of users on each GPU, keeping it near full throughput. Your effective cost is hourly price ÷ tokens actually produced, including idle hours.

Do input tokens cost the same as output tokens on a GPU?

No. Input (prefill) tokens are processed in parallel and are much cheaper per token than output (decode) tokens, which are generated one at a time. That is why APIs price input lower; on your own GPU, long prompts mostly cost time-to-first-token and KV cache memory.

Is a cheaper H100 always cheaper per token?

Not always. An SXM H100 has about 1.7 times the bandwidth of a PCIe H100, so at the same model it produces more tokens per hour. A slightly dearer SXM card can be cheaper per token. Compare cost per token at the throughput each variant actually delivers.

Wandering Giants Compute

Rent the GPU for this, by the minute.

Rent an 80 GB H100 by the minute with an OpenAI-compatible vLLM endpoint ready to batch your traffic, and stop it the moment you're done.

Prepaid credit, billed by the minute, stops itself when credit runs out. Prices in £, $, €, ¥, CA$, A$, CHF and S$; UK prices include VAT.

Keep reading

About this article. Written by the Wandering Giants Compute team, the people who run Wandering Giants Compute. Hardware figures are the manufacturers’ published specifications. Speeds and costs marked as estimates are worked out from those specifications and our current prices, with the method shown; they are not measured benchmarks. Wandering Giants prices are taken live from our price list each time this page is built.

Last reviewed 25 November 2026.