API-backed app
2 vCPU, 2-4 GB RAM, 25-40 GB SSD; inference happens at the model provider.
Practical VPS tutorial
Choose an AI VPS for API apps, Ollama or local LLMs. Work out CPU, RAM, SSD and GPU needs, then test a plan before committing to annual billing.
Before comparing VPS plans, answer one question: will the server run the model, or call a model API? That choice changes the hardware bill more than almost anything else.
For a light API-backed app, I'd start testing with 2 vCPU and 2-4 GB RAM. For one local 7B-8B model at roughly 4-bit quantization, 8-16 GB RAM is a more useful starting range, with enough CPU or GPU performance for the response time you need.
Those are planning estimates, not official minimums or benchmark results. This guide helps you shortlist a machine; your application test decides whether to keep it.
2 vCPU, 2-4 GB RAM, 25-40 GB SSD; inference happens at the model provider.
2-4 vCPU, 4-8 GB RAM, 40-80 GB SSD for a suitable 1B-4B model.
4+ vCPU, 8-16 GB RAM, 60-100 GB SSD; measure CPU latency.
A browser worker, document parser or vector database needs its own budget. An “agent” isn't a fixed hardware category: an API worker can be light, while a browser-heavy agent can be demanding.

*The same interface can call an external provider or a local model. Only local inference needs the model loaded on this server.*
For an external-API app, CPU handles request processing, tools and other local work. More cores won't make a slow remote model generate tokens faster.
For CPU-only Ollama, I'd test four or more vCPUs with the intended model and prompts. Generation speed depends on memory bandwidth, instructions, runtime settings and host contention, not just clock speed. Adding threads can stop helping or even hurt performance; the llama.cpp performance notes explain why thread settings need testing.
Before buying, check three things:
For an occasional summary, slow CPU inference may be acceptable. For a chat service people wait on, test time to first token and generation speed before paying for a long term.
Start with the exact model and quantization, then add context cache, runtime buffers and the other services. A typical quantized 7B-8B model can be a candidate for 8-16 GB host RAM, but long context and parallel requests can push it higher.
Use the AI VPS RAM guide for model-size examples and a worked memory budget.
Count what will stay on disk: the OS, images, model files, application data and temporary backup/update space. Don't buy a large disk just because “AI” appears in the product name.
For example, Ollama lists qwen3:8b at about 5.2 GB. Three model files of that size take about 15.6 GB. If you budget another 25 GB for the OS and apps, plus 20 GB for working space, that's about 61 GB before future growth. These are illustrative allowances, not measurements of a deployed stack; an 80 GB disk would be one candidate to test.
I'd choose an SSD. NVMe helps loading and disk-heavy tasks, but a good SATA SSD can be sufficient. Once a model is resident, CPU/GPU compute and memory bandwidth matter more than disk interface for token generation. Check I/O limits and free space too.
Yes, if the model fits in host RAM and CPU speed meets your needs. Small personal deployments and background jobs are reasonable places to try it.
GPUs also accelerate text inference. They aren't reserved for image generation. A shared chat service or a larger model may justify GPU cost even when every response is plain text.
Check the runtime's hardware support for the actual GPU. Host RAM and GPU VRAM are different pools; partial offloading is not the same as fitting everything into VRAM.
For chat, provider latency and stable streaming often matter more than a headline 1 Gbps port. Place an API app sensibly relative to its users and dependencies, then test a complete request.
Large model downloads, documents and backups can use far more traffic than chat text. Check transfer allowances, egress charges and sustained-use rules. There is no universal requirement for every multi-user chatbot to have a 1 Gbps connection.
Use your real prompt length, uploaded files and expected busy-hour concurrency. On the server:
free -h
vmstat 1 10
df -h
# For containerized applications:
sudo docker stats --no-stream
# For a local Ollama model:
ollama psThen compare plans using the bottleneck you measured. I'd pay for the resource that fixes the problem rather than upgrading every specification at once.
It can be for a light external-API app. Local models, browser automation and databases can need considerably more.
It can suit small quantized models and some 7B-8B deployments with limited context. Measure the chosen model alongside the rest of the stack; 16 GB leaves more room.
First make sure the working model and cache fit in suitable memory. Faster storage helps loading, but doesn't substitute for enough RAM or VRAM.
Next step
Commands assume a fresh Ubuntu server. Replace domains, users, database names and provider-specific values before running them. VPS sizing is a practical starting point, not a guarantee: monitor the real workload and resize when CPU, memory, disk or network headroom becomes tight.
Affiliate links: you pay the same price as buying direct.