Operationrange Get a free plan

What does LLM inference cost per million tokens: your own GPU or an API?

A rented GPU running vLLM at full load serves gpt-oss-120b for about $0.064 per million tokens and Qwen3.8-27B for $0.054. The median API provider charges $0.20 and $0.58. But a GPU billed by the hour costs the same when it is idle, so the real question is how busy you keep it. Below you'll find the cost per million tokens for six open models on every GPU we track, live prices from 19 API providers, and the load at which self-hosting becomes the cheaper option.

gpt-oss-120b · own GPU
$0.064per 1M tokens at full load on 1× H100; median API $0.20
Qwen3.8-27B · own GPU
$0.054at full load on 1× H100; median API $0.58
Llama 3.3 70B · own GPU
$0.22at full load on 2× H100; median API $0.64
GPT-5.6 Terra · API
$4.50per 1M tokens, 3 input to 1 output
Self-hosted vs API

Cost per million tokens: your own GPU vs API providers

All prices are blended: 3 input tokens to 1 output token, the usual way to compare API prices. The self-hosted price uses the GPU setup with the lowest cost per token that still gives every user at least 20 tokens per second.

Model · formatCheapest setup per tokenSelf-hosted, full loadSelf-hosted, 30% loadCheapest APIMedian APIMatches median API at
gpt-oss-20b
MXFP4 (as released)
1× RTX 6000 Ada
9,678 tokens/s · 256 users
$0.019$0.064$0.034
Darkbloom
$0.068
10 providers
28% load
Qwen3.6-35B-A3B
FP8 (official)
1× H100
29,647 tokens/s · 256 users
$0.022$0.073$0.21
Darkbloom
$0.30
8 providers
7% load
gpt-oss-120b
MXFP4 (as released)
1× H100
10,136 tokens/s · 144 users
$0.064$0.21$0.060
Near AI
$0.20
19 providers
32% load
Qwen3.8-27B
FP8 (official)
1× H100
11,914 tokens/s · 256 users
$0.054$0.18$0.34
Chutes
$0.58
21 providers
9% load
Gemma 4 31B
FP8
1× H100
10,477 tokens/s · 254 users
$0.062$0.21$0.16
OpenInference
$0.21
13 providers
30% load
Llama 3.3 70B
FP8
2× H100
5,911 tokens/s · 120 users
$0.22$0.73$0.15
DeepInfra
$0.64
7 providers
34% load

Self-hosted: typical marketplace GPU price on 5 Dec 2026 ÷ estimated vLLM throughput for requests of 1,500 input and 500 output tokens. “Users” is how many requests the setup serves at once. 30% load means the GPU is rented 24/7 but busy only about 30% of the time, which is typical for business-hours traffic. API prices are per-provider list prices on OpenRouter on 5 Dec 2026, standard tier only. See the method.

  • At full load, your own GPU beats most API providers. Today a busy GPU costs less per token than the median provider for every model in the table. But a GPU that runs 24/7 for business-hours traffic is busy only about a third of the time, and the cost per token triples. The last column shows the average load you need to match the median API price.
  • Self-hosting pays off first where the API is expensive. Today that is Qwen. Providers charge a lot for its output tokens, so the median blended price is $0.58 for Qwen3.8-27B and $0.30 for Qwen3.6-35B-A3B. A GPU that is busy 9% and 7% of the time already matches those prices.
  • gpt-oss and Llama 3.3 70B are hard to beat at the cheapest providers. The cheapest gpt-oss-120b API costs $0.060 (Near AI), and the cheapest Llama 3.3 70B costs $0.15 (DeepInfra). That is about what a fully loaded GPU costs. The cheapest providers often serve 4-bit or FP8 versions, so check output quality before you compare.
  • Break-even is a monthly volume. A 1× H100 setup for gpt-oss-120b costs $1,705 a month and can serve up to 26.6 billion tokens. At the median API price, the same money buys 8.5 billion tokens. If you use fewer tokens than that, the API is cheaper. If you use more, your own GPU is.
By GPU

Cost per million tokens on each GPU

Cost per 1M blended tokens at full load, with total throughput. The framed cell is the cheapest GPU for each model; “–” means the model doesn't fit with 32K context or can't give every user 20 tokens per second.

GPU · bandwidthTypical pricegpt-oss-20b
MXFP4
Qwen3.6-35B-A3B
FP8
gpt-oss-120b
MXFP4
Qwen3.8-27B
FP8
Gemma 4 31B
FP8
Llama 3.3 70B
FP8
RTX 3090
24 GB · 936 GB/s
$0.22/hr$0.025
2,447 tok/s
–––––
RTX 4090
24 GB · 1,008 GB/s
$0.47/hr$0.024
5,392 tok/s
–––––
RTX 5090
32 GB · 1,792 GB/s
$0.67/hr$0.026
7,172 tok/s
–––––
RTX A6000
48 GB · 768 GB/s
$0.48/hr$0.027
4,896 tok/s
$0.19
705 tok/s
––––
RTX 6000 Ada
48 GB · 960 GB/s
$0.67/hr$0.019
9,678 tok/s
$0.17
1,118 tok/s
––––
L40S
48 GB · 864 GB/s
$0.73/hr$0.022
9,229 tok/s
$0.22
943 tok/s
––––
RTX PRO 6000
96 GB · 1,597 GB/s
$1.60/hr$0.033
13,625 tok/s
$0.032
13,859 tok/s
$0.25
1,788 tok/s
$0.092
4,839 tok/s
$0.12
3,742 tok/s
$1.38
2× · 645 tok/s
A100 80GB
80 GB · 2,040 GB/s
$0.84/hr$0.022
10,609 tok/s
$0.023
10,322 tok/s
$0.091
2,584 tok/s
$0.11
2,221 tok/s
$0.12
1,973 tok/s
$0.36
2× · 1,308 tok/s
H100
80 GB · 3,350 GB/s
$2.33/hr$0.023
27,896 tok/s
$0.022
29,647 tok/s
$0.064
10,136 tok/s
$0.054
11,914 tok/s
$0.062
10,477 tok/s
$0.22
2× · 5,911 tok/s
H200
141 GB · 4,800 GB/s
$4.73/hr$0.042
31,050 tok/s
$0.035
37,202 tok/s
$0.080
16,501 tok/s
$0.099
13,317 tok/s
$0.11
11,761 tok/s
$0.34
3,905 tok/s
B200
180 GB · 8,000 GB/s
$8.75/hr$0.040
60,238 tok/s
$0.038
64,728 tok/s
$0.078
31,077 tok/s
$0.091
26,752 tok/s
$0.10
23,653 tok/s
$0.28
8,541 tok/s

Multi-GPU setups are one server with 2–8 GPUs and tensor parallelism, only for GPUs that are rented as such servers. Typical marketplace prices on 5 Dec 2026.

  • Memory bandwidth sets the price per token. Each step of generation reads the model's weights and every user's KV cache from GPU memory. Faster memory serves more users at once, which offsets a higher hourly price. For gpt-oss-120b, an A100 80GB costs $0.091 (2,584 tokens/s), an H100 $0.064 (10,136 tokens/s) and an H200 $0.080 (16,501 tokens/s).
  • Small MoE models run cheaply on 24–48 GB cards. gpt-oss-20b reads only 3.6B active parameters per token, so even an RTX 3090 serves it for $0.025 (2,447 tokens/s). Dense 27–31B models read all their weights for every token. By our estimate they need about 1.5 TB/s or more, such as an RTX PRO 6000 or an A100, to give every user 20 tokens/s.
  • The cheapest setup per token is not the cheapest per month. For gpt-oss-120b it is 1× H100 at $1,705 a month, but only if you can fill it: at full load it serves 26.6 billion tokens a month. For less traffic, a smaller GPU at higher load costs less in total.
Closed models

What closed-model APIs cost per million tokens

List prices on OpenRouter on 5 Dec 2026, compared with gpt-oss-120b on your own GPU at 30% load ($0.21 per 1M tokens).

Closed model (API)Input per 1MOutput per 1MBlended 3:1vs self-hosted gpt-oss-120b at 30% load
GPT-5.6 Luna$0.20$1.20$0.452.1×
Claude Haiku 5.5$0.10$0.50$0.200.9×
Gemini 3.8 Flash$0.83$4.12$1.657.7×
Claude Sonnet 5.5$2.00$10.00$4.0018.8×
GPT-5.6 Terra$2.00$12.00$4.5021.1×

Claude Sonnet 5.5 and GPT-5.6 Terra cost 19–21 times more per token than an open model on your own GPU, even at moderate load. Small closed models are close in price, so the choice is about quality on your task and about where your data goes. Run your own eval on a few hundred real prompts before you switch: open models in the 27–120B range now handle most support, extraction, classification and RAG workloads, while the hardest reasoning tasks still favour frontier models.

Beyond price

When self-hosting is worth it

  • Your data must stay with you. Prompts and documents never leave a server you control, and you decide what is logged and for how long. That is often the deciding factor for legal, healthcare, finance and internal company data. See how we set up private AI for companies.
  • Your traffic is steady. High, predictable volume keeps the GPU busy and brings the cost per token down to the full-load figure.
  • You want a fixed bill. A rented GPU costs the same every month however many tokens you send, with no rate limits.
  • You run a fine-tune. A LoRA adapter on your own server costs nothing extra to serve (see what LoRA fine-tuning costs). Most API providers either don't host custom adapters or charge more for them.

An API is the better choice when traffic is low or spiky, when you are still testing models, and when you need a frontier closed model. Many teams use both: they keep an API for rare hard tasks and run the high-volume, sensitive part of their traffic on their own GPUs.

Method

How we estimate throughput and cost

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

one decode step  = max(bytes read ÷ (bandwidth × 60%), FLOPs ÷ (tensor compute × 40%)) + 2 ms
bytes read       = weights touched + users × context × KV cache per token
users            = most requests at once that fit in KV cache memory, up to 256,
                   while every user still gets ≥ 20 tokens/s
tokens per second = (1,500 + 500) ÷ (prefill time + 500 × step ÷ users)
  • Requests. Each request has 1,500 input and 500 output tokens: the 3:1 ratio used for blended API prices. The KV cache per token, weight size and fit rules are the same as in our VRAM calculator.
  • Efficiency. We assume decode reaches 60% of peak memory bandwidth and 40% of peak tensor compute (25% for MoE models, whose experts run many small matrix multiplications). FP8 models run at twice the BF16 rate on Ada, Hopper and Blackwell GPUs. With 2–8 GPUs we count 85% scaling.
  • MoE models read only the experts that the batch actually uses. With one user that is the active parameters; with dozens of users it is nearly all the weights.
  • API prices come from OpenRouter's public list of providers for each model, standard tier only: no free, batch, flex or priority endpoints. They are list prices; prompt caching and batch discounts lower them further.

These numbers are calculated, not measured. Real throughput depends on prompt lengths, the vLLM version, speculative decoding and how evenly traffic arrives. Expect it to land within about ±50%. Benchmark your own traffic with vllm bench serve before you commit.

Verdict

Own GPU or API?

  • Up to tens of millions of tokens a month: use an API. For open models, the cheapest providers charge less than an idle GPU costs.
  • Steady volume of billions of tokens a month: self-host. Once your GPU is busy a third of the time or more, it matches or beats the median API for most models. For Qwen models, whose APIs charge more, it happens much earlier.
  • Sensitive data: self-host at any volume. The extra cost over an API is the price of keeping prompts and documents on your own server (see private AI for companies). A single GPU running gpt-oss-20b costs from $158 a month.
  • Hardest reasoning tasks: keep a frontier API for those. Send the bulk of your traffic to the open model, and only the rare hard requests to the closed one.

Want the numbers for your traffic?

Send us your monthly tokens or your current API bill. We reply with the GPU setup, the cost per million tokens and the break-even point for your workload. If it pays off, we deploy it with vLLM, monitoring and 24/7 support. You pay the GPU provider directly, with no markup.

Get a free cost estimate

What self-hosting costs per month →
A100 vs H100 vs H200 vs B200 →
VRAM calculator: which GPU your model needs →

FAQ

Inference cost questions

How much does it cost to run an LLM per million tokens?

On a rented GPU at full load, from about $0.019 per 1M tokens for gpt-oss-20b to $0.22 for Llama 3.3 70B, at today's prices. That is with 3 input tokens to 1 output token. At 30% average load, multiply by about three. APIs for the same open models cost from $0.034 to $0.64 per 1M tokens, while Claude Sonnet 5.5 costs $4.00 and GPT-5.6 Terra costs $4.50.

Is self-hosting an LLM cheaper than an API?

Only with steady volume. Your own GPU is cheaper per token than the median API provider once it is busy about 32% of the time for gpt-oss-120b, and only 9% for Qwen3.8-27B. With low or spiky traffic, the API is cheaper because you pay only for the tokens you use.

What does gpt-oss-120b cost per million tokens?

About $0.064 per 1M blended tokens on 1× H100 at full load, and $0.21 at 30% load. On an H100 it is $0.064 (10,136 tokens/s). API providers charge from $0.060 to a median of $0.20 across 19 providers.

What does Llama 3.3 70B cost per million tokens?

About $0.22 per 1M blended tokens in FP8 on 2× H100 at full load, or $0.22 (2×, 5,911 tokens/s) on two H100s. The median API price is $0.64 and the cheapest is $0.15. As a dense 70B model, it reads 70 GB of weights for every generated token, so newer MoE models such as gpt-oss-120b give similar or better answers for much less.

How many tokens per second can one GPU serve?

Far more than one chat shows. One user gets about 290 tokens/s from gpt-oss-120b on 1× H100. vLLM batches 144 requests at once, for about 10,136 input and output tokens per second in total. A 1× RTX 6000 Ada setup serves gpt-oss-20b at about 9,678 tokens/s.

How do I calculate the cost per token of my own GPU?

Measure the total throughput at the concurrency you expect with vllm bench serve, then divide the GPU price per hour by tokens per hour. For example, $2 an hour at 5,000 tokens/s is $2 ÷ 18 million tokens, or $0.11 per 1M tokens. Then divide by your average load: at 30% busy, that becomes $0.37.

Why do API prices for the same model differ so much?

Providers run different hardware, quantization and batch sizes, and take different margins. The cheapest often serve 4-bit or FP8 versions or run on spare capacity, while others sell full precision, low latency, regional hosting or zero data retention. For gpt-oss-120b the blended price today runs from $0.060 to $0.45, with a median of $0.20.

What is a blended price per million tokens?

One number for a mix of input and output tokens. Output tokens cost 3–10× more than input tokens on most APIs, so the price depends on the mix. We use 3 input tokens to 1 output token: (3 × input price + output price) ÷ 4. RAG and document tasks have even more input; chat and code generation have more output.