Where you can run a self-hosted large language model (LLM) depends on how much memory it needs, which follows from its size. By our calculation, its weights need about 2 GB per billion parameters at 16-bit precision and a little over 0.5 GB at 4-bit. So an 8-billion-parameter model runs on an ordinary server with no GPU, while the largest need a machine with eight GPUs, or even several machines.
Self-hosting an LLM means running an open model on hardware you control or rent, instead of calling someone else's API. An open model is one whose weights, the numbers it learned in training, are published for anyone to download, sometimes after accepting its licence.
If the weights fit in about 16 GB and one person can wait for each reply, a CPU-only server will do. Up to 80 GB, rent one GPU by the hour, and move to a monthly GPU server once it is busy most of the month. A monthly server with one card holds up to 141 GB; beyond that, you need several GPUs in one machine. An open-model API works at any size. Each route has a price box filled from our weekly price checks, so every price shows the day we last checked it.

Who this is for
- you want to run an open model such as Qwen, gpt-oss, Llama or DeepSeek on a server you rent
- you know which model you want, or at least its size, and need the cheapest machine it fits on
- you are weighing a rented server against paying per token through an API
Not for you if you only run n8n or an AI agent that uses a model through an API: see our AI agent hosting guide.
Key numbers
- 2 GB memory the weights need per billion parameters at 16-bit (about 0.56 GB at 4-bit) Our calculation,
- 16 GB enough memory for gpt-oss-20b, according to OpenAI Official page,
- 80 GB one GPU of this size holds gpt-oss-120b, according to OpenAI Official page,
- 640 GB GPU memory of eight H100 cards in one machine, the most in our price records so far Our calculation,
- €0.20 in / €0.75 out per million tokens (checked 25 October 2026) Infomaniak's API price for Mistral Small 4 (119B) Official page,
- A CPU-only server (small models in RAM): connects to One GPU by the hour (needs a GPU).
- One GPU by the hour (24 to 80 GB of GPU memory): connects to A GPU server by the month (busy most of the month).
- A GPU server by the month (24 to 141 GB, one fixed monthly fee): connects to Several GPUs in one machine (outgrows one GPU).
- Several GPUs in one machine (2 to 8 GPUs, 640 GB in our records so far): connects to An open-model API (outgrows one machine).
- An open-model API (no server; pay per million tokens)
Up to about 16 GB, a model can run without a GPU; one card holds up to 141 GB; beyond that, you need several GPUs.
| Route | Memory you get | What fits at 4-bit (examples) | How you pay | Example plan and price |
|---|---|---|---|---|
| A CPU-only server | 8 to 24 GB of RAM | models up to about 20 billion parameters, such as gpt-oss-20b | by the month; some of the lowest prices need a 24-month term | DigitalOcean Basic Droplet with 16 GB: $96 a month (checked 25 October 2026) |
| One GPU by the hour | 24 to 80 GB of GPU memory | up to gpt-oss-120b, on an 80 GB card | by the second or by the hour | UpCloud with one L4: €0.58 an hour (about €390 a month, with a 28-day monthly cap; checked 25 October 2026) |
| A GPU server by the month | 24 to 141 GB of GPU memory | the same models, on a card that is yours all month | a fixed monthly fee; some prices need a 24-month term | Unihost AZM-04 with one RTX 4090: €359.90 a month (checked 25 October 2026) |
| Several GPUs in one machine | 64 to 640 GB of GPU memory in our price records | DeepSeek-V4.1-Flash, on eight 80 GB cards | by the hour or by the month | DigitalOcean with eight H100 cards: $35.28 an hour (about $25,754 a month; checked 25 October 2026) |
| An open-model API | no server to size | any model the provider runs | per million tokens in and out | Infomaniak, Mistral Small 4: €0.20 in / €0.75 out per million tokens (checked 25 October 2026) |
Monthly costs for hourly prices assume the server runs all month (730 hours), or less where a provider caps the monthly bill.
Start with the model's size
Each weight is a parameter, and the number of parameters is the model's size, such as 8 billion. Running a model to answer requests is called inference. For inference, the whole model must sit in memory: the GPU's own memory (VRAM), the server's RAM or both.
Working out the memory the weights need is plain arithmetic. Multiply the number of parameters, in billions, by the number of bits stored for each one, then divide by 8 to get gigabytes. For each billion parameters, that gives:
- 2 GB at 16-bit precision, the form Qwen3.5-9B, Qwen3.8-27B and Llama 3.3 70B are published in
- 1 GB at 8-bit
- about 0.56 GB at 4-bit: 4-bit files also store small scale numbers, so we count 4.5 bits
Storing each weight in fewer bits is called quantisation (often spelled "quantization"). This makes the model smaller on disk and in memory, so it fits on smaller hardware. On top of the weights, every conversation needs working memory, the key-value (KV) cache. It grows with the context window, the amount of text the model keeps in view. Our GPU memory guide works out that part in full, model by model.
Models read and write text in tokens: short pieces of text, often a word or part of one. Some models, including gpt-oss, DeepSeek-V4.1-Flash and Kimi K3, are built as a mixture of experts: only part of the model works on each token. The memory rule still counts every parameter, because all of them must be loaded. OpenAI's gpt-oss-120b, for example, has 117 billion parameters, of which 5.1 billion are active for each token.
At 4-bit, a 27-billion-parameter model fits in 24 GB, while Kimi K3, with 2.8 trillion parameters, needs one of the largest eight-GPU machines for hire.
| Model | Weights at 4-bit (GB) | Smallest route that holds it |
|---|---|---|
| Qwen3.5-9B | 5.4 | a CPU-only server with 8 GB or more |
| gpt-oss-20b | 13.8 (as released) | a CPU-only server with 16 GB or more (OpenAI: runs within 16 GB) |
| Qwen3.8-27B | 15.6 | a CPU-only server with 24 GB of RAM, for one person; one 24 GB GPU for speed or several users |
| Llama 3.3 70B | 39.7 | one 48 GB GPU for conversations of up to 8K tokens; one 80 GB GPU at 32K tokens |
| gpt-oss-120b | 65.2 (as released) | one 80 GB GPU (OpenAI's own statement) |
| DeepSeek-V4.1-Flash | 510.3 (files as released) | eight 80 GB GPUs in one machine |
| Kimi K3 | 1,560.9 (as released) | eight B300 GPUs in one machine (not yet in our price records) |
The 4-bit column is the lowest precision this guide sizes for, although llama.cpp can go down to 1.5-bit. Some models are published already compressed: Kimi K3's weights and the expert weights of gpt-oss are stored in a 4-bit format called MXFP4. For them, and for DeepSeek-V4.1-Flash, the table gives the size of the files as released. The KV cache comes on top. To try other models and context windows, use the GPU memory calculator: it does the sums for you.
Which route suits your model
Four questions settle most cases. Work out the memory with the formula above first. The largest single card in our price boxes, NVIDIA's H200, holds 141 GB.
Question 1 Must the model run on a server you control?
- No, calling it over the internet is fine: an open-model API
- Yes: go to question 2
Question 2 How much memory do its weights need at the precision you will use?
- Up to about 16 GB: go to question 3
- More than 16 GB, up to 80 GB: go to question 4
- More than 80 GB, up to 141 GB: a GPU server by the month
- More than 141 GB: several GPUs in one machine
Question 3 Will one person use it, and can each reply take its time?
- Yes: a CPU-only server
- No, it must be quick or serve several people: go to question 4
Question 4 Will the GPU be busy for most of the month?
- No, a few hours at a time: one GPU by the hour
- Yes, most days and nights: a GPU server by the month
A CPU-only server for small models
The cheapest place to run a model is an ordinary virtual private server (VPS) with no GPU at all. The model sits in the server's RAM and runs on its processor cores. Ollama, a model runner, reports "100% CPU" in ollama ps when a model sits entirely in RAM. The open-source engine llama.cpp supports the vector instructions of x86 processors (AVX to AMX), is tuned for Apple silicon and also runs on GPUs.
What fits depends on how much RAM is left once the operating system has taken its share. By our formula, Qwen3.5-9B needs about 5.4 GB at 4-bit. OpenAI states that gpt-oss-20b runs within 16 GB of memory. A server with 16 to 24 GB of RAM therefore covers most models up to about 20 billion parameters at 4-bit.
This route suits one person trying out models, running private experiments or background jobs where a slow answer does no harm.
| Plan | Price | New-customer offer | Link |
|---|---|---|---|
| Hostinger KVM 2 2 vCPU, 8 GB | $8.79/month 24-month term, paid up front; Black Friday first-term price, then $14.99 checked 25 Oct 2026 | Black Friday prices on VPS plans and AI automation apps, for the first subscription term only checked 30 Oct 2026 | Visit |
| DigitalOcean Basic Droplet, 8 vCPUs, 16 GiB 8 vCPU, 16 GB | $96/month billed per second (60-second minimum), capped at this monthly price · VAT not stated checked 25 Oct 2026 | New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 | Visit |
| Kamatera Cloud server Type B (General Purpose), 4 cores, 16 GB 4 vCPU, 16 GB | $132/month monthly, no long-term contract · VAT not stated checked 25 Oct 2026 | A 30-day trial of one cloud server in a configuration worth up to $100 checked 29 Oct 2026 | Visit |
| Cherry Servers Cloud VDS 2 4 vCPU, 16 GB | €29/month monthly, no long-term contract; Autumn Sale price, with no end date stated checked 25 Oct 2026 | Autumn Sale prices on Cloud VDS plans, up to 41% off, applied without a code checked 30 Oct 2026 | Visit |
| Contabo Cloud VPS 8 8 vCPU, 24 GB | €11.20/month 24-month term, paid up front; the price applies to the first 24 months and to the EU region in Germany; other regions cost more each month checked 25 Oct 2026 | No offer | Visit |
RAM is what you are paying for here: it decides which models fit. Some of the lowest prices need a 24-month term, paid up front; the note under each price says so.
Our guide to running Ollama on a server without a GPU shows the speeds public benchmarks report for small models on a processor alone.
One GPU by the hour
When a model needs a GPU, renting one by the hour is the most flexible way in. You start a cloud server with one GPU, run your job and delete the server when you have finished. The two providers in the price box below bill in different ways:
- DigitalOcean bills its GPU Droplets, as it calls these servers, by the second. It keeps billing a switched-off Droplet until you delete it.
- UpCloud bills its GPU servers by the hour, and any part of an hour counts as a full one. It caps each month's charge at 28 days of use.
The GPU's memory decides what fits, and NVIDIA's product pages give the sizes. On a 24 GB L4, Qwen3.8-27B fits at 4-bit, with about 15.6 GB of weights. A 48 GB L40S holds Llama 3.3 70B's 4-bit weights, about 40 GB, with room for short conversations only. At 32K tokens, it needs an 80 GB card. An 80 GB H100 runs gpt-oss-120b, which OpenAI says fits on a single GPU of that size.
| Plan | Price | New-customer offer | Link |
|---|---|---|---|
| UpCloud GPU Server, 1 x NVIDIA L4, 8 cores, 64 GB 24 GB GPU | €0.58/hour (about €390/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; monthly cost capped at 28 days of use checked 25 Oct 2026 | No offer | Visit |
| UpCloud GPU Server, 1 x NVIDIA L40S, 8 cores, 64 GB 48 GB GPU | €1.11/hour (about €746/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; monthly cost capped at 28 days of use checked 25 Oct 2026 | No offer | Visit |
| UpCloud GPU Server, 1 x NVIDIA H100, 12 cores, 240 GB 80 GB GPU | €2.17/hour (about €1,458/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; monthly cost capped at 28 days of use checked 25 Oct 2026 | No offer | Visit |
| DigitalOcean GPU Droplet, 1 x NVIDIA L40S 48 GB GPU | $1.57/hour (about $1,146/month) on demand, billed per second · VAT not stated checked 25 Oct 2026 | New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 | Visit |
| DigitalOcean GPU Droplet, 1 x NVIDIA H100 80 GB GPU | $4.41/hour (about $3,219/month) on demand, billed per second · VAT not stated checked 25 Oct 2026 | New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 | Visit |
UpCloud prices are in euros and DigitalOcean prices in US dollars; we do not convert them.
Hourly rental suits experiments, batch jobs and work that runs a few hours a day. You pay for every hour the server runs, busy or idle, so a GPU left running overnight costs as much as a busy one. Here is what part-time use adds up to on one H100:
| What it is for | Plan and price | Amount | Cost | Link |
|---|---|---|---|---|
| H100 GPU Droplet, 176 hours | DigitalOcean GPU Droplet, 1 x NVIDIA H100 $4.41/hour (about $3,219/month) on demand, billed per second · VAT not stated checked 25 Oct 2026 | 176 hours | $776.16 | Visit |
| Total | $776.16 | |||
The 176 hours are our own example (8 hours on each of 22 working days), not a measurement.
Runpod and Vast.ai also rent GPUs by the hour. They will join the box above once our weekly checks have confirmed a price and a location for each.
For more on this route, see our guide to the best GPU clouds for renting by the hour. Our guides to running Llama 3.3 70B on one rented GPU and to what gpt-oss-120b needs cover those two models.

A GPU server by the month
If the model answers requests all day, every day, a dedicated GPU server can cost less than renting by the hour. You pay one fixed fee a month, however much you use it. The whole server is yours for the term.
Read the terms before you compare. The GPU Mart prices we list are the monthly rate of a 24-month term, paid in advance. Liquid Web charges less for the first month. Its row in the box shows that first-month price; the note under it gives the full price from the second month. Unihost bills monthly with a one-month minimum, and some of its servers add a one-off set-up fee, given in the note under the price.
The chart below compares the two ways of paying for an 80 GB H100. Up to the point where the lines cross, paying by the hour costs less; beyond it, the monthly server is cheaper.
A month is counted as 730 hours (8,760 hours in a year divided by 12).
| Hours in a month | DigitalOcean GPU Droplet, 1 x NVIDIA H100 | GPU Mart Enterprise Dedicated GPU Server - H100 |
|---|---|---|
| 0 | $0.00 | $2,099.00 |
| 200 | $882.00 | $2,099.00 |
| 400 | $1,764.00 | $2,099.00 |
| 475.9637 (same cost) | $2,099.00 | $2,099.00 |
| 600 | $2,646.00 | $2,099.00 |
| 730 | $3,219.30 | $2,099.00 |
The monthly price is the rate of GPU Mart's 24-month term, paid in advance. The hourly line counts only the hours the server runs.
| Plan | Price | New-customer offer | Link |
|---|---|---|---|
| GPU Mart Enterprise Dedicated GPU Server - RTX 4090 24 GB GPU | $409/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| Unihost AZM-04, NVIDIA RTX 4090 24 GB GPU | €359.90/month monthly, paid in advance; minimum one month checked 25 Oct 2026 | No offer | Visit |
| GPU Mart Enterprise Dedicated GPU Server - RTX 5090 32 GB GPU | $479/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| Liquid Web GPU server, NVIDIA L40S 48GB 48 GB GPU | $1,049.25/month monthly; 25% off the first month, then $1,399 · VAT not stated checked 25 Oct 2026 | No offer | Visit |
| GPU Mart Enterprise Dedicated GPU Server - A100(80GB) 80 GB GPU | $1,559/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| GPU Mart Enterprise Dedicated GPU Server - H100 80 GB GPU | $2,099/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| Liquid Web GPU server, NVIDIA H100 NVL 94GB 94 GB GPU | $2,174.25/month monthly; 25% off the first month, then $2,899 · VAT not stated checked 25 Oct 2026 | No offer | Visit |
| Unihost AZM-10, NVIDIA H200 141 GB GPU | €2,999.90/month monthly, paid in advance; minimum one month checked 25 Oct 2026 | No offer | Visit |
Memory per card, from NVIDIA: 24 GB for the RTX 4090, 32 GB for the RTX 5090 and 48 GB for the L40S. The A100 and H100 have 80 GB, the H100 NVL 94 GB and the H200 141 GB.
Our guide to dedicated GPU servers by the month works out the break-even point for each card. It also covers set-up fees and contract terms in more detail.
Several GPUs in one machine
Once a model's weights outgrow the largest single card, you need a server with two, four or eight GPUs that share the work. The documentation of vLLM, an open-source model server, calls this tensor parallelism. When a model is too big for one GPU but fits in one machine, vLLM splits it across that machine's GPUs. You set --tensor-parallel-size to the number of GPUs.
Our price records hold machines with 64 GB (two RTX 5090 cards) to 640 GB (eight 80 GB H100 cards) of GPU memory. That counts only the machines whose memory the provider states. DeepSeek-V4.1-Flash, whose files take 510.3 GB as released, needs one of the eight-card machines with 640 GB.
| Plan | Price | New-customer offer | Link |
|---|---|---|---|
| GPU Mart Enterprise Multi-GPU Dedicated Server - 2xRTX 5090 2× 32 GB GPUs | $859/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| UpCloud GPU Server, 2 x NVIDIA H100, 24 cores, 480 GB 2× 80 GB GPUs | €4.34/hour (about €2,916/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; price for the whole 2-GPU server checked 25 Oct 2026 | No offer | Visit |
| GPU Mart Enterprise Multi-GPU Dedicated Server - 4xRTX A6000 4× 48 GB GPUs | $1,199/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| GPU Mart Enterprise Multi-GPU Dedicated Server - 4xA100 4× 40 GB GPUs | $1,899/month monthly rate of a 24-month term, paid in advance · VAT not stated checked 25 Oct 2026 | A free 24-hour trial of a VPS, dedicated or GPU server for new clients, on request checked 29 Oct 2026 | Visit |
| Unihost LWN-G17, 4x Nvidia H100 4× 80 GB GPUs | €4,399.90/month monthly, paid in advance; minimum one month; plus a one-off set-up fee of €36.90 checked 25 Oct 2026 | No offer | Visit |
| DigitalOcean GPU Droplet, 8 x NVIDIA H100 8× 80 GB GPUs | $35.28/hour (about $25,754/month) on demand, billed per second; price for the whole 8-GPU machine · VAT not stated checked 25 Oct 2026 | New accounts get a $5 credit that lasts 90 days and covers every product except SaaS add-ons checked 29 Oct 2026 | Visit |
| UpCloud GPU Server, 8 x NVIDIA H100, 96 cores, 1920 GB 8× 80 GB GPUs | €17.36/hour (about €11,666/month; no charge after 28 days of use)30-day month: the last 2 days are free.31-day month: the last 3 days are free.February: no free days (one in a leap year).Started mid-month: it may never reach the cap that month. on demand, billed by the starting hour; price for the whole 8-GPU server checked 25 Oct 2026 | No offer | Visit |
| Unihost AZM-12, 8x NVIDIA H100 NVLink 8× 80 GB GPUs | €13,890.90/month monthly, paid in advance; minimum one month checked 25 Oct 2026 | No offer | Visit |
Each price is the provider's own price for the whole machine. We never multiply a single-GPU price by the number of cards.
Beyond 640 GB, no machine in our price records is big enough yet. Kimi K3, with 2.8 trillion parameters, takes 1,560.9 GB as released. Larger single machines can be rented: UpCloud lists servers with eight B200 or eight B300 cards, and DigitalOcean lists GPU Droplets with eight H200 cards. By NVIDIA's figures, they hold about 1,400 GB, 2,100 GB and 1,128 GB, so only the B300 machine fits Kimi K3. We will add their prices once we have checked them.
Past one machine, you need a cluster: several machines that run one model together. The vLLM guide says this takes tensor parallelism plus pipeline parallelism, which spreads the model's layers over the machines. Clusters are beyond the plans in this guide. For most people, an API that serves such a model is the practical route. Our guide to running Kimi K3 or DeepSeek V4 yourself looks at the hardware in detail.
Or skip the server: an open-model API
An open-model API runs the model for you and charges by the token. You send a request over the internet and pay for the tokens you send and the tokens the model writes back, each priced per million. There is no server to size, patch or switch off, and the model can be any size the provider offers.
The trade-off is less choice and less control. You can only use the models and versions the provider runs, and your prompts leave your own systems. Infomaniak, a Swiss host, serves open models from its data centres in Switzerland. They include Mistral Small 4 (Mistral-Small-4-119B-2603, 119 billion parameters) and Apertus 70B (Apertus-v1.5-70B). Its AI Services page states that prompts are not recorded or used to train models (read 25 October 2026).
| Plan | Price | New-customer offer | Link |
|---|---|---|---|
| Novita AI OpenAI GPT OSS 120B | $0.05 / $0.25 per 1M tokens, input / output · Pay per use; input and output tokens priced separately checked 27 Oct 2026 | No offer | Visit |
| Novita AI Llama 3.3 70B Instruct | $0.135 / $0.40 per 1M tokens, input / output · Pay per use; input and output tokens priced separately checked 27 Oct 2026 | No offer | Visit |
| Novita AI Qwen3.8 27B | $0.42 / $3 per 1M tokens, input / output · Pay per use; input and output tokens priced separately checked 27 Oct 2026 | No offer | Visit |
| Infomaniak AI Services: mistralai/Mistral-Small-4-119B-2603 | €0.20 / €0.75 per 1M tokens, input / output · pay as you go, no commitment; billed at the end of each month checked 25 Oct 2026 | No offer | Visit |
| Infomaniak AI Services: swiss-ai/Apertus-v1.5-70B | €0.70 / €2.50 per 1M tokens, input / output · pay as you go, no commitment; billed at the end of each month checked 25 Oct 2026 | 1M free credits to start with AI Services, then pay as you go checked 29 Oct 2026 | Visit |
Input and output tokens are priced separately, each per million tokens.
Novita AI gives a count of its regions, not their names, so ask it if your data must stay in the EU; Infomaniak runs in Switzerland. Our guide to using an open model without a server compares these services.
Cost per million tokens: the API price, and the sum for your own server
On the API route the price is already per million tokens, so the sums are short. Here is a month's cost for a small team, using our own example of 20 million tokens in and 5 million out:
| What it is for | Plan and price | Amount | Cost | Link |
|---|---|---|---|---|
| Input, 20 million tokens | Infomaniak AI Services: mistralai/Mistral-Small-4-119B-2603 €0.20 / €0.75 per 1M tokens, input / output · pay as you go, no commitment; billed at the end of each month checked 25 Oct 2026 | 20 million input tokens | €4.00 | Visit |
| Output, 5 million tokens | Infomaniak AI Services: mistralai/Mistral-Small-4-119B-2603 €0.20 / €0.75 per 1M tokens, input / output · pay as you go, no commitment; billed at the end of each month checked 25 Oct 2026 | 5 million output tokens | €3.75 | Visit |
| Total | €7.75 | |||
The token counts are our example, not a measurement.
On your own server the sum runs the other way, from the hourly price to the tokens the server can write in that hour. For a server that is busy all the time: cost per million tokens = hourly price ÷ (tokens per second × 3,600) × 1,000,000. Tokens per second is the speed at which a server writes its answer. It changes with the model, the software and the number of users.
Speed decides the cost per million tokens on your own server, and it depends on the model, the card and the software. Our guide to whether an API, a rented GPU or your own hardware is cheapest shows how to work out the break-even.
Which software to run the model with
Ollama, llama.cpp, vLLM and SGLang are four programs that serve open models on your own server. Each has its own minimum requirements, and the table lists what their official documentation asked for on 25 October 2026. Compute capability, in the last column, is NVIDIA's version number for the features of a GPU.
Ollama and llama.cpp run without a GPU. The main install guides for vLLM and SGLang ask for Linux and an NVIDIA GPU of compute capability 7.5 or newer.
| Software | What it is | Runs on | Official minimum |
|---|---|---|---|
| Ollama | a model runner that installs with one command on Linux and serves its own API on port 11434 | Linux, macOS and Windows; the processor alone, or NVIDIA, AMD or Apple GPUs | NVIDIA GPUs of compute capability 5.0 or newer, with driver 550 or newer (570 or newer for compute capability 5.0 to 6.2); on AMD, the ROCm v7 driver on Linux |
| llama.cpp | a C/C++ engine with 1.5-bit to 8-bit quantisation and its own server, llama-server | x86 processors and Apple silicon, plus NVIDIA, AMD, Apple and other GPUs | none stated: it needs no other libraries, and it supports AVX, AVX2, AVX512 and AMX on x86 processors |
| vLLM | a model server whose API follows the format of OpenAI's own | Linux (no native Windows support) | Python 3.11 to 3.14; NVIDIA GPUs of compute capability 7.5 or newer, such as the T4, L4, A100 and H100 |
| SGLang | a serving framework for language models and for multimodal models, such as those that also read images | Linux with NVIDIA GPUs in its main install guide; other hardware in separate guides | Python 3.11 or newer and CUDA 13; its default attention back end needs compute capability 7.5 or newer |
Our comparison of vLLM, Ollama, llama.cpp and SGLang covers how they differ. Both vLLM and llama.cpp come with a server that answers in the format of OpenAI's API. A chat front end or an agent built for that format can therefore work with either.
A private chat assistant for a team
A common reason to run your own model is a private chat assistant for a team. It has three parts: a chat front end opened in a browser, a model server and the GPU server that holds the model. Open WebUI, a self-hosted chat front end, describes itself as "built to run entirely offline". It connects to Ollama or to any OpenAI-compatible API, such as vLLM's.
- Each team member (in a web browser): connects to Open WebUI (HTTPS).
- Open WebUI (the chat front end): connects to vLLM or Ollama (OpenAI-style API).
- vLLM or Ollama (serves the model through an API): connects to GPU server.
- GPU server (holds the model in its memory)
The number of people matters too. By default, Ollama handles one request per model at a time, according to its FAQ, and the OLLAMA_NUM_PARALLEL setting raises that limit. Our guide to a private, ChatGPT-style assistant for your team will size the server for 5 to 20 people.
Is running your own model worth it?
It can be, if you need control or your traffic is steady and high. Control means you choose the exact model and version, decide where your data goes and keep that model for as long as you want. It also costs effort: you install and update the software, secure the server and pay for it whether it is busy or idle.
An API charges only for what you use, so it can stay cheaper until your traffic is steady and high. The fair test sets the API's price per million tokens against your server's cost per million tokens, from the formula above. That needs the speed your server reaches with your model. Our guide to whether an API, a rented GPU or your own hardware is cheapest will then run the numbers.
Meanwhile, the chart shows how much more a month costs once a GPU is involved, for plans priced in US dollars by the month.
| Plan | Price | Checked on |
|---|---|---|
| Hostinger KVM 2 | $8.79/month | 25 Oct 2026 |
| DigitalOcean Basic Droplet, 8 vCPUs, 16 GiB | $96.00/month | 25 Oct 2026 |
| Kamatera Cloud server Type B (General Purpose), 4 cores, 16 GB | $132.00/month | 25 Oct 2026 |
| GPU Mart Enterprise Dedicated GPU Server - RTX 4090 | $409.00/month | 25 Oct 2026 |
| GPU Mart Enterprise Dedicated GPU Server - RTX 5090 | $479.00/month | 25 Oct 2026 |
| GPU Mart Enterprise Multi-GPU Dedicated Server - 2xRTX 5090 | $859.00/month | 25 Oct 2026 |
| GPU Mart Enterprise Dedicated GPU Server - A100(80GB) | $1,559.00/month | 25 Oct 2026 |
| GPU Mart Enterprise Dedicated GPU Server - H100 | $2,099.00/month | 25 Oct 2026 |
| GPU Mart Enterprise Multi-GPU Dedicated Server - 4xA100 | $1,899.00/month | 25 Oct 2026 |
Hourly plans and plans priced in euros are left out, so that every dot is in the same unit and currency. Liquid Web is left out because its first month is discounted. Several of these prices need a 24-month term; the price boxes above give each term.
Mistakes to avoid
Sizing a model by its parameter count alone
Instead: Work out the memory at your precision, plus room for the KV cache.
Counting only the active parameters of a mixture-of-experts model
Instead: Count them all: gpt-oss-120b has 5.1 billion active parameters but 117 billion to load.
Comparing a 24-month rate with an hourly price as if they were alike
Instead: Read the term under each price and compare like with like.
Leaving an hourly GPU server running after the job is done
Instead: Delete it when you finish; see our guide to stopping a runaway AI bill.
Opening the model server to the whole internet
Instead: Keep Ollama on its default address, 127.0.0.1, which only the server itself can reach. Connect through a front end or a tunnel.
Installing vLLM on a GPU it does not support
Instead: Check the card's compute capability first: vLLM's GPU guide asks for 7.5 or newer.
Related guides and pages
For more detail, see these guides and pages:
- How much GPU memory an LLM needs, model by model
- GPU memory calculator for LLMs
- Running Ollama on a server without a GPU
- The best GPU clouds for renting by the hour
- Running Qwen3.8-27B on one 24 GB or 32 GB GPU
- Dedicated GPU servers by the month
- Can you run Kimi K3 or DeepSeek V4 yourself?
- Use an open model without a server
- How fast open models run on rented GPUs
- AI Hosting Price Index
- AI hosting in Europe: where your data sits
To find the plans for your project, start from the finder on our homepage. The comparison table on the same page lets you pick what you want to run, then filter by memory, billing and location. The providers in this guide have their own pages: Hostinger, DigitalOcean, Kamatera, Cherry Servers, Contabo and UpCloud. So do Runpod, Vast.ai, GPU Mart, Unihost, Liquid Web, Infomaniak and Novita AI.
How we price
Every price on this page comes from our price records; none is written into the text by hand. We read each price on the provider's own pricing page. We note its currency, whether it includes VAT, its billing unit and any term or promotion. We check it again every week, and the date beside each price is our latest check. Our page on how we check prices explains the rest.
We show a machine with several GPUs only when its provider states a price for the whole machine. This guide rests on the providers' published prices and the official documentation listed below.
Other questions
Can a model use the GPU and the processor at the same time?
Yes, when the model is too big for the GPU alone. Both llama.cpp and Ollama can split a model between GPU memory and RAM; Ollama's ollama ps command then shows a split such as "48%/52% CPU/GPU". The part held in RAM runs on the processor, so only the rest gets the GPU's speed.
Is a self-hosted copy as good as the online model?
Not always: a copy compressed to a low bit count is not identical to the original. Its context window, the text the model keeps in view, may also be short. Ollama's context-length page sets the default by GPU memory: 4k tokens below 24 GiB, 32k from 24 to 48 GiB and 256k from 48 GiB. Our guide to why a self-hosted model can seem worse will cover the fixes.
What are small models good for on a CPU-only server?
In a Lemmy Selfhosted thread from 16 June 2025, users named jobs for models of 3 billion parameters or fewer. They mentioned turning free text into structured data (JSON), handling voice commands in Home Assistant and writing short one-off scripts. Others there found anything below about 7 billion parameters too limited. Our guide to running Ollama on a server without a GPU shows the waiting times at typical processor speeds.
Sources and test notes
- OpenAI's gpt-oss-20b model card on Hugging Face, read
- OpenAI's gpt-oss-120b model card on Hugging Face, read
- Qwen3.5-9B model card on Hugging Face, read
- Qwen3.8-27B model card on Hugging Face, read
- Meta's Llama 3.3 70B Instruct model card on Hugging Face, read
- DeepSeek-V4.1-Flash model card on Hugging Face, read
- DeepSeek-V4.1-Flash-1017 model card on Hugging Face (the files we size), read
- Kimi K3 model card on Hugging Face, read
- Mistral Small 4 (119B) model card on Hugging Face, read
- Apertus 70B model card on Hugging Face, read
- vLLM documentation: installing on a GPU, read
- vLLM documentation: online serving and its OpenAI-compatible server, read
- vLLM documentation: parallelism and scaling, read
- Ollama documentation: installing on Linux, read
- Ollama documentation: hardware support, read
- Ollama documentation: FAQ, read
- Ollama documentation: context length, read
- Ollama on GitHub (downloads for macOS, Windows and Linux), read
- llama.cpp on GitHub (project page), read
- SGLang documentation: installation, read
- SGLang on GitHub (project page), read
- Open WebUI documentation, read
- NVIDIA: CUDA GPUs and compute capability, read
- NVIDIA H100 product page, read
- NVIDIA H200 product page, read
- NVIDIA A100 product page, read
- NVIDIA L40S product page, read
- NVIDIA L4 product page, read
- NVIDIA GeForce RTX 5090 product page, read
- NVIDIA GeForce RTX 4090 product page, read
- NVIDIA HGX page (total GPU memory of the B200 and B300 eight-GPU systems), read
- Infomaniak AI Services page (data centres and prompts), read
- Infomaniak AI Services prices, read
- DigitalOcean Droplet pricing documentation (GPU Droplets: per-second billing, billing while switched off, eight-GPU machines), read
- DigitalOcean Gradient AI Platform pricing (serverless inference), read
- UpCloud pricing (GPU server prices, billed by the starting hour; eight-GPU B200 and B300 servers), read
- UpCloud GPU Servers page (FAQ: hourly billing, monthly cost capped at 28 days), read
- GPU Mart home page (prices shown on a 24-month basis), read
- GPU Mart H100 server page (24-month term), read
- GPU Mart multi-GPU servers, read
- Database Mart billing FAQ (24-month term paid in advance), read
- Liquid Web GPU server configurator (first-month discount), read
- Unihost dedicated servers in the Netherlands (minimum term, set-up fees), read
- Runpod pricing, read
- Vast.ai pricing, read
- Novita AI pricing, read
- Lemmy Selfhosted thread on small self-hosted models (user comments, posted 16 June 2025), read
No test was run for this guide. Prices come from our weekly price records, and each price box shows the date of its check. Memory figures come from our GPU memory guide. They are our calculation from the parameter counts and file sizes that Hugging Face lists for each model, read 25 October 2026.
Guides in this section
-
GPU memory by modelHow much GPU memory popular open models need at 16-bit, 8-bit and 4-bit, the extra that long conversations take, and which rentable GPUs fit each one.
-
Kimi K3 and DeepSeek V4 yourselfKimi K3 has 2.8 trillion parameters. We work out the GPUs it and DeepSeek V4 need, the hourly cost of the machines and when an API makes more sense.
-
Llama 3.3 70B on one GPUWhich rented GPU holds Llama 3.3 70B at each precision, the speed each card can reach by NVIDIA's own figures, and the Ollama commands to run it.
-
gpt-oss-120bgpt-oss-120b needs one 80 GB GPU, gpt-oss-20b a 16 to 24 GB card. The memory each needs, the cards to rent and the Ollama and vLLM commands to run them.
-
Speed on rented GPUs Data pageTokens per second for open models on the H100, H200, A100, L40S, RTX 4090 and other GPUs, from public llama.cpp benchmarks, with sources and dates.
-
Qwen3.8-27B on one GPUWhich Qwen3.8-27B files fit on one 24 GB or 32 GB GPU, how long a conversation each allows, the speed to expect and the commands to run it.
-
vLLM, Ollama, llama.cpp or SGLangWhich serving engine to run on a rented GPU: published tests of vLLM, Ollama and SGLang, what each suits, and the set-up commands for all four.
-
Private chat for a teamWhat server a private chat assistant for 5 to 20 people needs, Open WebUI or AnythingLLM, and step-by-step set-up with logins and HTTPS.
-
Dedicated GPU serversMonthly GPU servers from GPU Mart, Unihost and Liquid Web: cards, data centres, terms and fees, and when a monthly server beats paying by the hour.
-
Quantisation and qualityHow much quality 8-bit, 6-bit, 4-bit and 2-bit files lose, by llama.cpp's own tests, and the settings that make a self-hosted model answer worse.
-
GPU clouds by the hourRunpod, Novita, DigitalOcean, UpCloud and Vast.ai compared from their own pages: billing steps, stopped-machine charges, locations and live prices.
-
GPU memory calculator Calculator
Pick a model, precision and context length to see the GPU memory it needs and the GPU plans that fit, with prices from our weekly checks.