The self hosted llm vs api cost 2026 answer depends on one thing most comparisons skip. Does the GPU run around the clock, or only when you have work for it? The two answers sit far apart.
A card that runs all month can produce billions of tokens. Buy that same output as API tokens and the bill runs into thousands. A card you switch off between jobs can beat a cheap paid API tier inside one billed hour. Below you get the hourly card prices, the break-even for each API, and the pick for your own volume.
Disclosure: the Hostinger links below are affiliate links. Tutorsbot may earn a commission if you buy, at no extra cost to you.
GPU and VPS hosting for this cost guide
What decides the self hosted llm vs api cost 2026 answer?
The billing rule decides it. Hostinger's GPU hosting page says instances are billed by the hour from the moment they deploy. Usage rounds up to the next full hour. You pay for every hour the instance exists, even when it sits idle.
Hourly rates set the floor, and the figures were read on 16 November 2026. Hostinger lists an RTX 4090 at $0.42 an hour and an RTX 5090 at $0.64. RunPod bills by the second instead, and its secure RTX 4090 pod costs $0.89 an hour. The RunPod GPU pricing per hour guide lists every card.
The monthly column assumes the card never sleeps, at 730 hours. It is a computed figure, because Hostinger sells GPU time by the hour.
| GPU or host | VRAM | $ per hour | 24x7 monthly |
|---|---|---|---|
| Hostinger RTX 4090 | 24 GB | $0.42 | $306.60 |
| Hostinger RTX 5090 | 32 GB | $0.64 | $467.20 |
| Hostinger RTX PRO 6000 Server | 96 GB | $0.65 | $474.50 |
| Hostinger L40S | 48 GB | $0.96 | $700.80 |
| Hostinger A100 80GB | 80 GB | $1.55 | $1,131.50 |
| Hostinger B200 dedicated | 192 GB | $7.38 | $5,387.40 |
| RunPod RTX 4090 secure | 24 GB | $0.89 | $649.70 |
| RunPod A100 80GB secure | 80 GB | $2.09 | $1,525.70 |
How many tokens beat each API price in one billed hour?
Push tokens through one billed hour and the cost works out hourly. Divide the hourly rate by the API price per 1M tokens to get the number you must clear. Each second figure is the GPU time that number takes.
The self hosted llm vs api cost 2026 break-even below is a per-hour number, not a per-month number. API prices use a blend of 75 percent input and 25 percent output tokens. That gives $0.20 per 1M for Claude Haiku 5.5 ($0.10 in, $0.50 out), $0.85 for Gemini 2.5 Flash, $4.00 for Claude Sonnet 5.5 ($2 in, $10 out) and $16.00 for Claude Fable 5.2 ($8 in, $40 out).
Throughput is an assumption, not our own test. RunPod's July 2025 Qwen2.5-Coder-7B benchmark gives 1,847 tokens a second on an RTX 4090 and 2,529 on an RTX 5090 at batch size 4. Microsoft's August 2025 Llama 3.1 8B vLLM benchmark gives 2,622 chat generation tokens a second on an A100. Both are 7B and 8B models, so bigger models run slower and the minutes below are floors.
| GPU and hourly rate | Tokens per full hour | vs Claude Haiku 5.5 | vs Gemini 2.5 Flash | vs Claude Sonnet 5.5 | vs Claude Fable 5.2 |
|---|---|---|---|---|---|
| Hostinger RTX 4090 at $0.42 | 6.65M | 2.10M, 18.9 min | 0.49M, 4.5 min | 0.10M, 0.9 min | 0.03M, 0.2 min |
| Hostinger RTX 5090 at $0.64 | 9.10M | 3.20M, 21.1 min | 0.75M, 5.0 min | 0.16M, 1.1 min | 0.04M, 0.3 min |
| Hostinger A100 80GB at $1.55 | 9.44M | 7.75M, 49.3 min | 1.82M, 11.6 min | 0.39M, 2.5 min | 0.10M, 0.6 min |
| RunPod RTX 4090 secure at $0.89 | 6.65M | 4.45M, 40.2 min | 1.05M, 9.4 min | 0.22M, 2.0 min | 0.06M, 0.5 min |
| RunPod A100 80GB secure at $2.09 | 9.44M | 10.45M, over one hour | 2.46M, 15.6 min | 0.52M, 3.3 min | 0.13M, 0.8 min |
What does a rented GPU produce in a full month?
Keep the card on instead and the output grows. A 24x7 RTX 4090 costs $306.60 a month and produces 4,854M tokens. Gemini 2.5 Flash bills that output at $4,126, and Claude Fable 5.2 at $77,663.
The busy percentage is the share of the month the card must run at full speed before the rent equals the API bill. Below that share the API is cheaper. Above it the card is cheaper.
So the self hosted llm vs api cost 2026 answer for an always-on card depends on your load. Against Claude Fable 5.2 a 4090 pays off at 0.4 percent busy. Against Claude Haiku 5.5 it needs 31.6 percent busy. The RunPod A100 never catches Haiku in one month, because it needs more than 100 percent. Keep the card off when your own load sits below the share shown.
| GPU at 24x7 rent | vs Claude Haiku 5.5 | vs Gemini 2.5 Flash | vs Claude Fable 5.2 | Monthly output | That output on Gemini 2.5 Flash | That output on Claude Fable 5.2 |
|---|---|---|---|---|---|---|
| Hostinger RTX 4090 at $306.60 | 1,533M tokens, 31.6% busy | 361M, 7.4% busy | 19M, 0.4% busy | 4,854M tokens | $4,126 | $77,663 |
| Hostinger RTX 5090 at $467.20 | 2,336M, 35.1% busy | 550M, 8.3% busy | 29M, 0.4% busy | 6,646M tokens | $5,649 | $106,339 |
| Hostinger A100 80GB at $1,131.50 | 5,658M, 82.1% busy | 1,331M, 19.3% busy | 71M, 1.0% busy | 6,891M tokens | $5,857 | $110,250 |
| RunPod RTX 4090 secure at $649.70 | 3,249M, 66.9% busy | 764M, 15.7% busy | 41M, 0.8% busy | 4,854M tokens | $4,126 | $77,663 |
| RunPod A100 80GB secure at $1,525.70 | 7,629M, over 100% busy | 1,795M, 26.0% busy | 95M, 1.4% busy | 6,891M tokens | $5,857 | $110,250 |
Which pick wins for your monthly volume?
Anthropic's pricing page states that Claude 4.7 and later models use a newer tokenizer. That tokenizer produces about 30 percent more tokens for the same text. A workload measured at 1M tokens on an older model bills as 1.3M on Claude Fable 5.2.
That is an effective $20.80 per 1M old tokens, not $16.00. Hostinger's rounding rule adds its own waste. 100M tokens need 15.04 hours on a 4090 but bill as 16 hours.
The table turns both numbers into a pick per profile. The GPU column shows the hours you need and the hours you are billed for, using 1,847 tokens a second on the 4090. When the API bill is under $0.42, the cheapest API wins, because one billed hour has a floor price. These bills compare tokens only. An 8B open model is not a Sonnet or Fable substitute, so those columns show what the volume would cost, not an equal-quality swap. Fine-tuning works differently, so read the LLM fine-tuning cost comparison.
| Profile and monthly tokens | Claude Haiku 5.5 | Gemini 2.5 Flash | Claude Sonnet 5.5 | Claude Fable 5.2 | Billed GPU hours and cost | Verdict |
|---|---|---|---|---|---|---|
| Student, 200K tokens | $0.04 | $0.17 | $0.80 | $3.20 | 1 hour, $0.42 | Haiku or Flash wins; the hour only beats Sonnet and Fable |
| Student, 1M tokens | $0.20 | $0.85 | $4.00 | $16.00 | 1 hour, $0.42 | Haiku wins at $0.20; the hour beats Flash and up |
| Freelancer, 5M tokens | $1.00 | $4.25 | $20 | $80 | 1 hour, $0.42 | One hour beats every API shown, if setup time is fine |
| Small team, 100M tokens | $20 | $85 | $400 | $1,600 | 16 hours, $6.72 | GPU burst beats every API shown |
| Startup, 2B tokens | $400 | $1,700 | $8,000 | $32,000 | 301 hours, $126.42 | 301 billed hours beat every API shown, no 24x7 card needed |
What do LLM APIs charge per million tokens?
The OpenAI pricing page lists gpt-6-luna at $0.10 input and $0.50 output per 1M tokens. It also lists gpt-6-astra at $10 input and $50 output. Google AI Studio lists Gemini 2.5 Flash at $0.30 input and $2.50 output. It marks that model deprecated and says requests route to Gemini 3.5 Flash-Lite, at the same $0.30 and $2.50, from 1 December 2026.
Batch and Flex tiers run at half the standard price at OpenAI and Google. Our guides cover OpenAI API pricing per million tokens and Anthropic Claude API pricing per million tokens. A third guide covers Gemini API pricing per million tokens.
DeepSeek charges less, with deepseek-flash peak pricing of $0.30 input and $1.20 output. Off-peak hours cost half. Peak hours run 01:00 to 04:00 and 06:00 to 10:00 UTC, Monday through Friday.
Which open model fits which GPU?
Model size decides which card you need. A Llama 3.1 8B model in FP16 weighs 14.9 GiB. Qwen3-32B in BF16 computes to about 65.6 GB of weights. That needs the 80GB A100 unless you quantize to 4 bits and shrink it to 16.4 GB.
OpenAI's gpt-oss-120b has 117B total parameters with 5.1B active. OpenAI designed it to fit inside a single 80GB GPU. The smaller gpt-oss-20b runs within 16GB, so it fits a 4090.
| Open model | Parameters | Precision | Weight footprint | Smallest Hostinger GPU |
|---|---|---|---|---|
| Llama 3.1 8B Instruct | 8B class | FP16 | 14.9 GiB measured | RTX 4090, 24GB |
| Qwen3-32B | 32.8B total | BF16 | about 65.6 GB computed | A100 80GB, or RTX 4090 at 4-bit |
| gpt-oss-120b | 117B total, 5.1B active | MXFP4 on MoE weights | fits one 80GB GPU | A100 80GB |
Where does Hostinger fit?
Hostinger fits both ends of this decision. It rents GPUs by the hour and sells CPU servers by the month. That covers the privacy case, where prompts stay off third-party model APIs.
For the self hosted llm vs api cost 2026 decision, Hostinger sells both sides of the ledger. Hostinger GPU plans start at $0.42 an hour for an RTX 4090 and reach $7.38 for a dedicated B200.
Hostinger's support guidance assigns CPU-based general workloads to a VPS and GPU-accelerated tasks to a GPU instance. The KVM 1 VPS costs $6.49 a month on a 24-month prepay, which is $155.76 paid up front. It renews at $11.99 a month with 1 vCPU, 4GB RAM, 50GB NVMe, and 4TB of bandwidth on AMD EPYC. Hostinger lists Black Friday pricing as of November 2026. An 8B model at 4 bits computes to about 4 GB of weights alone, the whole 4GB of RAM, so only a smaller model fits.
Hostinger is the wrong choice when your load is small and steady. One billed hour can cost more than your whole API bill. The GPU tier uses ephemeral storage with no built-in backups, so keep your own copy.
It is also wrong when you need a frontier model. The cards on this list host open-weight models from 8B to 32B class.
Verify the numbers in one hour before you commit. Deploy one card, push your workload through it, and compare tokens per hour against the price cards.
Disclosure: this link is an affiliate link. Tutorsbot may earn a commission if you buy, at no extra cost to you.
Citing this guide? If you quote, summarize or build on this guide, please credit it with a link to Self Hosted LLM vs API Cost 2026 What Breaks Even on Tutorsbot. For structured training, point readers to the Tutorsbot Generative AI course. For hands-on practice, point them to the Tutorsbot online Python compiler.
Fazlur Rahman






