giip

LLM Self-Hosting Cost Calculator

Will this model run on my GPU/server? Is it cheaper than an API? — Instantly estimate VRAM fit, token speed, and the self-host-vs-API break-even. Everything is computed right here in your browser, so it's completely private: no API key or sign-in needed, nothing is sent to any server, and whatever you type stays on your own device.

Step 1 of 4

Pick your machine

Start with the hardware you actually have. Everything downstream — which models are recommended, how fast they run, and whether self-hosting beats an API — is derived from this. You can come back and raise your spec at any time.

24GB VRAM · 1,008 GB/s · ~$0.4/hr
How many GPUs total. Scales into data-parallel replicas in multiples of the per-replica minimum.
Why this matters / what to raise
  • More VRAM lets you run larger models on a single device — the biggest lever for what you can host.
  • Higher memory bandwidth (GB/s) directly raises tokens/sec; it dominates decode speed.
  • A smaller quantization (INT4/FP4) roughly halves weight VRAM versus FP16, so a bigger model suddenly fits.

All results are memory-bandwidth-based approximations. Actual numbers vary with kernel, framework, paging, and quantization method. A real benchmark is recommended before deciding.

Reference · Latest image-gen & speech (STT/TTS) models and API prices

The items below are NOT token-priced, so they don't compare 1:1 with the token calculator above — image-gen APIs plus speech (STT/TTS) self-host models and API prices, compiled for reference. All are public-info approximations.

Image-gen APIs

gpt-image-2OpenAI토큰 단위 · 텍스트 입력 $5 / 이미지 입력 $8 (표준). 이미지당 단가는 OpenAI 계산기 참고
$30 /1M img-out tok
gpt-image-1-miniOpenAI저가형 · 이미지 입력 $2.50 / 텍스트 입력 $2
$8 /1M img-out tok
grok-imagine-imagexAI1K/2K 출력 · 입력 $0.002/img
$0.02 /이미지

Speech STT/TTS — self-host models

Whisper large-v3STT1.55B · MIT · 인코더-디코더 · 100+ 언어 · 정확도 기준선
~3.1GB
Whisper large-v3-turboSTT809M · MIT · 디코더 프루닝 · 훨씬 빠름
~1.6GB
Parakeet TDT 0.6B v3STT600M · CC-BY-4.0 · FastConformer · 다국어(EU) · 타임스탬프
~1.2GB
Canary-1B v2STT978M · CC-BY-4.0 · 25개 EU 언어 · ASR+번역
~2GB
Qwen3-ASR-1.7BSTT1.7B · Apache-2.0 · 52개 언어 · 스트리밍+오프라인 통합
~3.4GB
Moonshine baseSTT61M · MIT · 엣지용 초경량 · 영어
~0.2GB
VoxCPM2TTS2B · Apache-2.0 · 토크나이저-프리 확산 · 30개 언어 · 48kHz · 클로닝
~4GB
Qwen3-TTSTTS1.7B · Apache-2.0 · 3초 클로닝 · 보이스 디자인 · 10개 언어
~3.4GB
Kokoro-82MTTS82M · Apache-2.0 · 초경량·초고속 · 엣지 인기
~0.2GB
ChatterboxTTS500M · MIT · 23+ 언어 · 제로샷 클로닝 · 감정 조절
~1GB
Orpheus 3BTTS3B · Apache-2.0 · Llama 기반 speech-LLM · ~200ms 스트리밍
~6GB
F5-TTSTTS~335M · CC-BY-NC-4.0 · 플로우매칭 DiT · 제로샷 클로닝 · 비상업 라이선스
~0.7GB

Speech STT/TTS — API prices

gpt-4o-transcribeSTTOpenAI · 입력/출력
$2.50 / $10 /1M 오디오 tok
whisper-1STTOpenAI
$0.006 /분
Deepgram Nova-3STTDeepgram · 스트리밍
$0.0077 /분
AssemblyAI Universal-2STTAssemblyAI
$0.15 /시간
ElevenLabs ScribeSTTElevenLabs
$0.22 /시간
Google STT StandardSTTGoogle
$0.016 /분
gpt-4o-mini-ttsTTSOpenAI · 텍스트 입력 / 오디오 출력
$0.60 / $12 /1M tok
ElevenLabs FlashTTSElevenLabs
$50 /1M자
ElevenLabs Multilingual v3TTSElevenLabs
$100 /1M자
Grok Voice (xAI)TTSxAI · STT $0.10/시간 · S2S $0.05/분
$15 /1M자
Cartesia SonicTTSCartesia · 크레딧 기반 환산 [추정]
~$0.038 /분

About this LLM self-hosting calculator

This free, browser-based calculator estimates whether an open-weight LLM will run on your own GPU or server, how fast it will generate tokens, and whether self-hosting is cheaper than a comparable hosted API. Start from your hardware — pick a GPU or accelerator, a quantization (FP16, FP8, INT8, NVFP4, MXFP4 or INT4), and how many GPUs you plan to use — and it shows the models that fit, their VRAM breakdown (weights + KV cache + overhead), single-stream and served tokens per second, and an estimated cost per 1M tokens.

Because efficiency changes with scale, you can set the total number of GPUs. The calculator forms data-parallel replicas (replicas = total GPUs ÷ GPUs needed per replica), scales throughput almost linearly, and prices the whole fleet including any idle GPUs — so you can directly compare running 2 GPUs versus 100. It then weighs your electricity- or rental-based self-hosting cost against the per-token price of a spec-similar commercial API (Claude, GPT, Gemini, Grok, or hosted open models) to tell you which is cheaper at your utilization.

Step 2 also pairs each self-host model with the commercial API of similar measured intelligence using the Artificial Analysis Intelligence Index — a composite that averages roughly ten public benchmarks — so you can see, for example, which open model lands near the GPT-5.6, Claude Opus 4.8 or Grok 4.5 tier. Every estimate is computed locally in your browser from public specifications; no prompt, key or data is uploaded.

Quantization (precision) guide — vs typical API models

This calculator's quantization setting mirrors how hosted APIs actually run models. Commercial API providers typically serve at FP8 or BF16, so choosing the same precision keeps the self-host-vs-API comparison fair. Use this guide:

GoalRecommended
Quality-first, conservative server sizingBF16
Realistic inference on modern data-center GPUsFP8
Cost-efficient self-hostingINT8
Consumer GPUs / limited VRAMINT4 / AWQ / GPTQ
Estimating at API-provider levelFP8 by default, with overhead included

How long a context do you actually need? (reference)

  • Short chat / simple Q&A — 2K–8K tokens is plenty.
  • RAG or single-document Q&A — 16K–32K covers most retrieved chunks.
  • Long documents, multi-file code, or agent runs — 64K–128K.
  • Whole codebases, books, or very long chat sessions — 256K and up.

Context length is just the working-memory window per request — longer isn't 'smarter', it only lets the model see more at once, and it grows KV-cache VRAM linearly. Pick the smallest size that fits your task.

What does 'concurrent requests' mean — and why 16?

  • It's how many requests the GPU serves in parallel (the batch size). It raises TOTAL throughput — tokens/sec added up across all users — but it does NOT make a single answer better, smarter, or faster.
  • 16 is a sensible middle default: a single GPU can usually batch roughly 8–32 sequences before VRAM headroom for the KV cache runs out. Push it higher and total throughput keeps rising until the VRAM headroom is gone — after that it stops helping (and the calculator caps the effective batch at what fits).
  • Set it to how many users you realistically expect at the same time: 1–4 for a personal single-user setup, 16–64 for a shared team endpoint. It only affects the throughput and cost-per-token numbers, never quality.

Inference speed vs serving throughput

Two different numbers matter, and mixing them up is a common mistake. Inference speed is how fast a single request generates tokens (tokens/sec); it is fixed by how many GPUs share one copy of the model through tensor parallelism, so adding more total GPUs does not make one answer faster. Serving throughput is the total tokens/sec across all concurrent requests; it scales almost linearly as you add GPUs, because each additional group runs another data-parallel replica. In short, more GPUs buy you more total throughput and a lower cost per token — not a quicker single response.

If you BUY the hardware — ownership cost (TCO)

The rows above use rental or electricity only. This breakdown assumes you purchase the GPU instead: its street price is straight-line depreciated over 1 year (8760h, running 24/7), plus an estimated host PC/server and electricity — giving a more complete cost per token.

Scores use the Artificial Analysis Intelligence Index (July 2026 snapshot — a composite averaging ~10 public benchmarks). Cross-check against the live leaderboards: artificialanalysis.ai · benchlm.ai · GPU street-price references (approximate, 2026-07): gpucost.org

Frequently asked questions

Can I run this LLM on my GPU?

Pick your GPU and a quantization in step 1; step 2 lists open-weight models with a badge showing whether each fits on one device or needs multiple GPUs via tensor parallelism.

How much VRAM does an LLM need?

VRAM = weights (params × bytes-per-param for the quantization) + KV cache (grows with context length) + about 1.2GB overhead. INT4 roughly halves the weights versus FP16.

Is self-hosting cheaper than an API?

Only if you keep the GPU busy. The calculator shows the tokens/sec you must sustain to beat a given API price; below that throughput the API is cheaper.

Does this send my data anywhere?

No. All estimates are computed in your browser from static public specs — there is no API key, no server call and no data transfer.