Last updated

Open-source LLM hosting cost calculator

Serving 1B input and 200M output tokens a month with Llama 3.3 70B Instruct in batch costs about $299.50 on 4 rented RTX 4090s (an estimate) or $491.19 on 2 H100s at InferenceX’s measured rate, against $164 on the DeepInfra API. The API is cheaper at this volume.

Pick a model and enter your monthly tokens below. The calculator sizes VRAM and GPU count, applies measured or scaled throughput, and compares the bill with hosted APIs.

Tokens per month (input / output)
Speed per user
How it runs

$299.50

this month · $0.25 per 1M tokens · or $5,905 if the GPUs stay on

Llama 3.3 70B Instruct

AA Intelligence: not scoredLMArena

Vast.ai · 4 × NVIDIA GeForce RTX 4090
FP8 weights 71 GB · $1.6178/hr median · 450 tokens/s per GPU, estimate

Cheapest setup for this model that fits in 85% of VRAM and can reach 50 tok/s per user.

Quality is the Artificial Analysis Intelligence Index (higher is better), linked to each model's page. AA's current index version does not score older open models such as Llama 3.3 70B or gpt-oss, so those show a dash rather than a guess. LMArena is linked for a second opinion.

Measured throughput$491.19

2 × H100 SXM on Vast.ai. Tokens/s is the InferenceX measurement.

Monthly cost at 1.2B tokens

Self-host, this batch$299.50
Self-host, GPUs left on$5,905
DeepInfra API$164.00
Claude Sonnet 5.5$4,000
Claude Haiku 4.5$2,000
GPT-6 Luna$200.00
gpt-5-mini$650.00

Against the APIs

  • DeepInfra Llama 3.3 70B Instruct$164.00$0.1 / $0.32 per 1M in / out · This API costs less this month.
  • Claude Sonnet 5.5$4,000$2 / $10 per 1M in / out · Self-host costs less this month.
  • Claude Haiku 4.5$2,000$1 / $5 per 1M in / out · Self-host costs less this month.
  • GPT-6 Luna$200.00$0.1 / $0.5 per 1M in / out · This API costs less this month.
  • gpt-5-mini$650.00$0.25 / $2 per 1M in / out · Self-host costs less this month.

Free, from this page

Get your LLM hosting deployment plan (free)

One email with this page’s inputs, the recommended model, GPU, and provider, a deployment checklist, and whether self-hosting or the API is the smaller bill.

No spam. One email with your plan, unsubscribe anytime.

Preview of the email

LLM hosting plan

1.2B tokens a month

Llama 3.3 70B Instruct4× NVIDIA GeForce RTX 4090

$299.50 this month

DeepInfra API $164.00 for the same work. GPU rental only.

  1. Replay a day of real prompts against the GPU before you commit. Prompt and answer lengths decide throughput more than the model card does.
  2. Pin the model revision and the serving image tag, so a rebuild does not change the output.
  3. Run a sample of your own data through the model and the API you compare against, and score both.

Self-hosting Llama 3.3 70B vs API pricing

Llama 3.3 70B in FP8 is about 70.6 GB of weights, so it needs two 80 GB H100s with room for KV cache. InferenceX measured 1.5k total tokens a second per H100 at 50 tokens a second per user. At 1.2B tokens a month that is $491.19 on Vast.ai as a batch job, and $12,874 if the two GPUs stay on all month.

DeepInfra serves the same model for $0.1 / $0.32 per million input and output tokens, $164 for this workload. Hosted open models are priced near GPU cost, so self-hosting pays off mainly when the GPUs stay busy, when you need a fine-tuned or private model, or when data cannot leave your network.

Open-source LLM VRAM, GPU count, and tokens per second by GPU

Every GPU setup for Llama 3.3 70B Instruct at 50 tokens a second per user. Weights must fit in 85% of total VRAM. A100 and A10 have no FP8, so FP8 models load in BF16 there.

Llama 3.3 70B Instruct: weights, GPUs needed, throughput, hourly price, and monthly bill on each rented GPU. Checked November 1, 2026.
GPUProviderPrecisionWeightsGPUsTokens/s per GPU$/hourAlways-on / monthThis workloadPer 1M tokens
NVIDIA GeForce RTX 4090Vast.ai
RTX 4090 24GB on-demand median
FP871 GB4450 estimate$1.6178 median$1,181$299.50$0.25
NVIDIA H100 80GB SXMVast.ai
H100 SXM on-demand median
FP871 GB21.5k measured$4.4089 median$3,218$491.19$0.41
NVIDIA GeForce RTX 4090RunPod Secure Cloud
RTX 4090
FP871 GB4450 estimate$3.56 on-demand$2,599$659.05$0.55
NVIDIA A100 80GB SXMVast.ai
A100 SXM4 80GB on-demand median
BF16141 GB4455 estimate$4.5013 median$3,286$823.92$0.69
NVIDIA H100 80GB SXMModal
Nvidia H100 SXM5
FP871 GB21.5k measured$7.8984 preemptible$5,766$879.95$0.73
NVIDIA H100 80GB SXMRunPod Secure Cloud
H100 SXM
FP871 GB21.5k measured$7.98 on-demand$5,825$889.04$0.74
NVIDIA H100 80GB PCIeVast.ai
H100 PCIe on-demand median
FP871 GB2893 estimate$5.0844 median$3,712$948.80$0.79
NVIDIA H100 80GB SXMLambda
1× H100 SXM
FP871 GB21.5k measured$8.58 on-demand$6,263$955.88$0.80
NVIDIA GeForce RTX 4090RunPod Serverless
RTX 4090 worker
FP871 GB4450 estimate$5.36 serverless$3,913$992.28$0.83
NVIDIA H100 80GB PCIeRunPod Secure Cloud
H100 PCIe
FP871 GB2893 estimate$5.78 on-demand$4,219$1,079$0.90
NVIDIA H100 80GB SXMRunPod Serverless
H100 80GB worker
FP871 GB21.5k estimate$10.78 serverless$7,869$1,201$1.00
NVIDIA H100 80GB PCIeLambda
1× H100 PCIe
FP871 GB2893 estimate$6.58 on-demand$4,803$1,228$1.02
NVIDIA A100 80GB SXMRunPod Secure Cloud
A100 SXM 80GB
BF16141 GB4455 estimate$7.16 on-demand$5,227$1,311$1.09
NVIDIA A100 80GB PCIeRunPod Secure Cloud
A100 PCIe 80GB
BF16141 GB4432 estimate$7.16 on-demand$5,227$1,381$1.15
NVIDIA H100 80GB SXMAWS
p5.4xlarge
FP871 GB21.5k measured$13.76 on-demand$10,045$1,533$1.28
NVIDIA A100 80GB SXMModal
Nvidia A100 80GB
BF16141 GB4455 estimate$9.9936 preemptible$7,295$1,829$1.52
NVIDIA A100 40GB SXMLambda
1× A100 SXM 40GB
BF16141 GB8347 estimate$15.92 on-demand$11,622$1,910$1.59
NVIDIA A100 80GB SXMRunPod Serverless
A100 80GB worker
BF16141 GB4455 estimate$10.88 serverless$7,942$1,991$1.66
NVIDIA H100 80GB SXMGoogle Cloud
a3-highgpu-8g
FP871 GB2 (4 copies on 8)1.5k measured$88.49 on-demand$64,598$2,465$2.05
NVIDIA A100 80GB SXMAWS
p4de.24xlarge
BF16141 GB4 (2 copies on 8)455 estimate$27.45 on-demand$20,036$2,512$2.09
NVIDIA A100 80GB SXMGoogle Cloud
a2-ultragpu-1g
BF16141 GB4455 estimate$20.28 on-demand$14,801$3,711$3.09

Open-source LLM hosting cost vs API pricing, by model

Quality is the Artificial Analysis Intelligence Index (higher is better), linked to each model's page. AA's current index version does not score older open models such as Llama 3.3 70B or gpt-oss, so those show a dash rather than a guess. LMArena is linked for a second opinion.

Each open model’s cheapest GPU setup for 1B input and 200M output tokens a month, next to hosted API prices and the Artificial Analysis Intelligence Index. Checked November 1, 2026.
ModelAA indexParamsCheapest setupSelf-host / monthAPI $ per 1M in / outAPI / month
Llama 3.3 70B Instruct
Llama 3.3 Community
—70.55B4 × RTX 4090, FP8
Vast.ai
$299.50 est.
DeepInfra $0.1 / $0.32
$164.00
Llama 3.1 8B Instruct
Llama 3.1 Community
—8.03B1 × RTX 4090, FP8
Vast.ai
$34.09 est.
DeepInfra $0.02 / $0.04
$28.00
gpt-oss-120b
Apache-2.0
—116.83B, 5.1B active4 × RTX 4090, MXFP4
Vast.ai
$49.93 est.
Together $0.15 / $0.6
Groq $0.15 / $0.6
Fireworks $0.15 / $0.6
$270.00
gpt-oss-20b
Apache-2.0
—20.91B, 3.6B active1 × RTX 4090, MXFP4
Vast.ai
$35.25 est.
Groq $0.075 / $0.3
$135.00
Qwen3.8 27B
Apache-2.0
20.127.78B2 × RTX 4090, FP8
Vast.ai
$117.93 est.
Groq $0.8 / $4
$1,600
Gemma 3 27B
Gemma terms
—27.43B2 × RTX 4090, FP8
Vast.ai
$116.44 est.
DeepInfra $0.08 / $0.16
$112.00
Mistral Small 3.2 24B
Apache-2.0
—24.01B2 × RTX 4090, FP8
Vast.ai
$101.93 est.
DeepInfra $0.075 / $0.2
$115.00
Qwen3 235B A22B 2507
Apache-2.0
—235.11B, 22B active4 × H100 80GB SXM, FP8
Vast.ai
$706.52 est.
DeepInfra $0.09 / $0.55
Together $0.2 / $0.6
$200.00
DeepSeek V3.2
MIT
—685.36B, 37B activeDoes not fit—
DeepInfra $0.26 / $0.38
$336.00
Claude Sonnet 5.5
Anthropic, closed weights
54.2—API only—Anthropic $2 / $10$4,000
Claude Haiku 4.5
Anthropic, closed weights
——API only—Anthropic $1 / $5$2,000
GPT-6 Luna
OpenAI, closed weights
27.8—API only—OpenAI $0.1 / $0.5$200.00
gpt-5-mini
OpenAI, closed weights
——API only—OpenAI $0.25 / $2$650.00

“Est.” means the throughput was scaled, not measured. A dash in AA index means Artificial Analysis does not score that model on its current index. LMArena ranks many of the same models by human votes.

LLM inference GPU cost per hour and per month, by provider

On-demand hourly price and the always-on month (hourly × 730). Community and non-preemptible rates are shown only where that provider publishes them. Each price links to the provider’s pricing page, checked November 1, 2026. A dash means that provider does not list this GPU.

GPU price per hour and per 730-hour month, by provider. Checked November 1, 2026.
GPURunPodLambdaModalVast.aiAWSGoogle Cloud
L4
L4
$0.59/hr On-demand
$430.70/mo
Community $0.44/hr · $321.20/mo
checked November 1, 2026
—
Nvidia L4
$0.7992/hr Preemptible
$583.42/mo
Non-preemptible $2.3976/hr · $1,750/mo
checked November 1, 2026
L4 on-demand median
$0.3378/hr On-demand median
$246.58/mo
checked November 1, 2026
g6.xlarge
$0.8048/hr On-demand
$587.50/mo
checked November 1, 2026
g2-standard-4
$0.7068/hr On-demand
$515.99/mo
checked November 1, 2026
A10 / A10G—
1× A10
$1.29/hr On-demand
$941.70/mo
checked November 1, 2026
Nvidia A10
$1.1016/hr Preemptible
$804.17/mo
Non-preemptible $3.3048/hr · $2,413/mo
checked November 1, 2026
A10 on-demand median
$0.2453/hr On-demand median
$179.09/mo
checked November 1, 2026
g5.xlarge
$1.006/hr On-demand
$734.38/mo
checked November 1, 2026
—
RTX 4090
RTX 4090
$0.89/hr On-demand
$649.70/mo
Community $0.34/hr · $248.20/mo
checked November 1, 2026
——
RTX 4090 24GB on-demand median
$0.4044/hr On-demand median
$295.24/mo
checked November 1, 2026
——
A100
A100 SXM 80GB
$1.79/hr On-demand
$1,307/mo
Community $1.39/hr · $1,015/mo
checked November 1, 2026
A100 PCIe 80GB
$1.79/hr On-demand
$1,307/mo
Community $1.19/hr · $868.70/mo
checked November 1, 2026
1× A100 SXM 40GB
$1.99/hr On-demand
$1,453/mo
checked November 1, 2026
Nvidia A100 80GB
$2.4984/hr Preemptible
$1,824/mo
Non-preemptible $7.4952/hr · $5,471/mo
checked November 1, 2026
A100 SXM4 80GB on-demand median
$1.1253/hr On-demand median
$821.49/mo
checked November 1, 2026
p4de.24xlarge
$27.45/hr On-demand · 8 GPUs
$20,036/mo
checked November 1, 2026
a2-ultragpu-1g
$5.0688/hr On-demand
$3,700/mo
checked November 1, 2026
H100
H100 SXM
$3.99/hr On-demand
$2,913/mo
Community $2.69/hr · $1,964/mo
checked November 1, 2026
H100 PCIe
$2.89/hr On-demand
$2,110/mo
Community $1.99/hr · $1,453/mo
checked November 1, 2026
1× H100 SXM
$4.29/hr On-demand
$3,132/mo
checked November 1, 2026
1× H100 PCIe
$3.29/hr On-demand
$2,402/mo
checked November 1, 2026
Nvidia H100 SXM5
$3.9492/hr Preemptible
$2,883/mo
Non-preemptible $11.85/hr · $8,649/mo
checked November 1, 2026
H100 SXM on-demand median
$2.2044/hr On-demand median
$1,609/mo
checked November 1, 2026
H100 PCIe on-demand median
$2.5422/hr On-demand median
$1,856/mo
checked November 1, 2026
p5.4xlarge
$6.88/hr On-demand
$5,022/mo
checked November 1, 2026
a3-highgpu-8g
$88.49/hr On-demand · 8 GPUs
$64,598/mo
checked November 1, 2026

How the open-source LLM hosting cost is calculated

Prices checked November 1, 2026. A month is 730 hours. Batch cost = (input + output tokens) ÷ (tokens/s per GPU × GPUs × 3,600) × the hourly price. Always-on cost keeps enough replicas on all month for the average load and for the peak users at the chosen speed, assuming output is one ninth of the tokens, as in the 8k-in / 1k-out benchmark. The bill is GPU rental only.

Sources, throughput scaling, and what was left out

Throughput comes from SemiAnalysis InferenceX: total tokens a second per H100 while every user still gets the chosen output speed, on 8k-token prompts with 1k-token answers. Llama 3.3 70B (vLLM, FP8) and gpt-oss-120b (vLLM, MXFP4) are measured. Other dense models scale the Llama figure by 70.55B ÷ their parameter count. Other mixture-of-experts models scale the gpt-oss figure by 5.1B ÷ their active parameters, times 0.5 when their weights are FP8 instead of 4-bit. Other GPUs scale by memory bandwidth against the H100 SXM's 3.35 TB/s. A10 and A100 have no FP8, so FP8 models load in BF16 there, which doubles the memory and halves the estimate. Multi-GPU setups multiply by the GPU count, which assumes tensor parallelism scales linearly. Consumer cards (RTX 4090) and L4s talk over PCIe without NVLink, so their multi-GPU estimates are the least reliable. A setup is dropped when one user could not reach the chosen speed even in theory (bandwidth × GPUs ÷ active weight bytes).

Throughput sources

Models

API prices checked November 1, 2026

GPU prices and bandwidth

Left out

  • H200, B200, and multi-node serving. DeepSeek V3.2 is shown as API-only for that reason.
  • Prompt caching discounts, batch API discounts, and free tiers on the APIs.
  • Spot and committed-use prices on AWS and Google Cloud.

Deployment checklist

  1. Replay a day of real prompts against the GPU before you commit. Prompt and answer lengths decide throughput more than the model card does.
  2. Pin the model revision and the serving image tag, so a rebuild does not change the output.
  3. Run a sample of your own data through the model and the API you compare against, and score both.
  4. Set a per-user speed target and load-test to the peak concurrency you expect, not the average.
  5. Turn on prefix caching for shared system prompts. It cuts prefill work on long, repeated prompts.
  6. Log tokens or minutes per job, and alert when the GPU bill passes the API bill for the same work.

Related tools: the self-hosted OCR cost calculator, the embedding cost calculator, and the speech-to-text cost calculator. Related reading: LLM API pricing comparison, LLM cost optimization, and AI agent development.

Open-source LLM hosting cost: questions

Is it cheaper to self-host an open-source LLM than to use an API?

Usually not for a steady, modest workload. Hosted open models are priced close to the GPU cost. DeepInfra lists Llama 3.3 70B at $0.10 in and $0.32 out per million tokens. Self-hosting tends to pay off when GPUs stay busy, when you need a fine-tuned model, or when data cannot leave your network. The calculator prices both side by side.

How much VRAM does Llama 3.3 70B need?

The FP8 weights are about 70.6 GB. This tool lets weights use 85% of VRAM and keeps the rest for KV cache, so it puts Llama 3.3 70B on two 80 GB H100s, or four 24 GB cards. A100s have no FP8, so in BF16 it needs about 141 GB, which means four A100 80GB.

How many tokens per second does an H100 serve?

SemiAnalysis InferenceX measured Llama 3.3 70B with vLLM in FP8 at 1,496 total tokens a second per H100 while each user still got 50 output tokens a second, on 8k-in, 1k-out requests. gpt-oss-120b reached 8,973 per H100 at the same per-user speed. Faster per-user targets serve fewer tokens in total.

Does quantization change the cost?

Yes. FP8 halves the weight memory compared with BF16, so a model fits on fewer GPUs, and decoding reads half as many bytes. H100, L4, and RTX 4090 run FP8. A10 and A100 do not, so this tool loads FP8 models in BF16 there. gpt-oss ships in 4-bit MXFP4, which is why gpt-oss-120b fits on one 80 GB GPU.

Why do Llama and gpt-oss show a dash for quality?

Artificial Analysis's current Intelligence Index version has no score for them, and their model pages read Unknown. The page shows a dash instead of an older or estimated number. LMArena is linked as another view.

Can I self-host DeepSeek V3.2 on rented GPUs?

Not on any single machine in this tool. The FP8 weights are about 685 GB, more than 85% of eight 80 GB GPUs, so the calculator shows it as API-only. It needs H200, B200, or multi-node serving.