Vast.ai
On-demand cloud GPU marketplace with low hourly rates for self-hosting open-weight LLMs and fine-tuning runs.
Best for: Budget GPU rentals for break-even self-hosting and fine-tuning experiments
Published 2026-07-06 · 29 open-weight models · 2143 cloud API routes
Running an LLM on your own hardware is no longer a fringe experiment. Tools like Ollama and llama.cpp make local inference as easy as a single command, and consumer GPUs can run models up to 70B parameters at usable speeds. But cloud APIs keep getting cheaper too — and they offer frontier models no local setup can match.
This guide compares the two approaches across cost, capability, privacy, and practical trade-offs, using the site's local model database and our full cloud API catalog.
Running models on your own hardware is worth considering when any of these matter to you:
Your prompts, context, and model outputs stay on your hardware. No data is sent to a third-party API endpoint. For applications handling customer PII, internal documents, or proprietary code, this alone can justify local deployment.
Cloud APIs charge per token. If your application processes millions of tokens daily, the per-token cost adds up fast. Local inference has a high upfront cost (GPU hardware) but near-zero marginal cost per request — just electricity. At high enough volume, local becomes cheaper than even the most affordable cloud API.
Cloud APIs enforce rate limits, may deprecate models without warning, and change pricing on their schedule. A local model runs exactly how you configure it, as long as your hardware lasts.
Local inference eliminates network round trips. Typical latency is 100-500ms versus 500-2000ms for cloud APIs, which matters for real-time applications like chat, coding assistants, and voice agents.
Browse 29 open-weight local models →
Cloud APIs remain the right choice in many scenarios:
Today's most capable models — Claude Opus 4, GPT-5.4, Gemini 3.1 Pro — are proprietary and only accessible via API. If your task needs top-tier reasoning, coding, or multimodal performance, a cloud API is your only option.
If your request volume spikes and dips, a cloud API scales with you. You pay for what you use and nothing when your application is idle. Local hardware is a fixed cost whether or not you run inference.
A cloud API key takes five minutes to generate. Running a local model requires GPU hardware, driver setup, model download (4-40 GB each), and ongoing maintenance. For teams evaluating LLMs or building prototypes, cloud APIs are the faster path.
Cloud APIs let you switch between models for different tasks — use a cheap model for classification, a mid-tier model for chat, and a reasoning model for complex analysis. Locally, each model requires separate download and GPU memory. Our routing cascade guide covers this strategy in depth.
Browse 2143 cloud API models →
Comparing local and cloud costs requires looking at total cost of ownership, not just per-token prices.
Cloud pricing is straightforward: you pay per million input and output tokens. Use our cost calculator with workload presets to estimate your monthly bill. For high-volume workloads, prompt caching and batch processing can cut costs by 50% or more (see our cache and batch pricing guide).
| Provider | Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|---|
| deepinfra | Llama-3.2-3B-Instruct | $0.0200 / 1M tokens | $0.0200 / 1M tokens | 131.1K |
| deepinfra | Meta-Llama-3.1-8B-Instruct-Turbo | $0.0200 / 1M tokens | $0.0300 / 1M tokens | 131.1K |
| deepinfra | Mistral-Nemo-Instruct-2407 | $0.0200 / 1M tokens | $0.0400 / 1M tokens | 131.1K |
| deepinfra | Meta-Llama-3-8B-Instruct | $0.0300 / 1M tokens | $0.0600 / 1M tokens | 8.2K |
| deepinfra | Meta-Llama-3.1-8B-Instruct | $0.0300 / 1M tokens | $0.0500 / 1M tokens | 131.1K |
| deepinfra | gpt-oss-20b | $0.0300 / 1M tokens | $0.1400 / 1M tokens | 131.1K |
Local costs divide into hardware (one-time), electricity (ongoing), and your time (setup and maintenance).
For a hypothetical comparison that counts cloud input tokens only, an input price of $0.10–0.50 per 1M tokens and a one-time hardware purchase of $800–1,600 imply a hardware-price equivalent of roughly 1.6–16 billion cloud input tokens. At 10,000 input tokens per request over 12 months, that is about 13,300–133,300 requests per month, not a few hundred. This is not a full break-even estimate: cloud output and cache charges, local throughput capacity, hardware depreciation, electricity, and maintenance all affect the comparison. Estimate real input and output usage with the calculator, then compare the same period of total local costs.
Estimate your cloud API cost with the calculator →
Here is what the current open-weight landscape looks like versus comparable cloud offerings. The largest open-weight models in our catalog:
| Model | Parameters | Architecture | Min VRAM | Precision |
|---|---|---|---|---|
| mixtral-8x22B-Instruct-v0.1 | 141B | Mixtral | 339.9 GB | FP16 |
| mistral-large-instruct-2407 | 123B | Mistral | 296.7 GB | FP16 |
| Llama-3.3-70B-Instruct | 70B | Llama | 85.5 GB | FP8 |
| llama2:70b | 70B | Llama | 169.5 GB | FP16 |
| llama3:70b | 70B | Llama | 169.5 GB | FP16 |
| mixtral-8x7B-Instruct-v0.1 | 47B | Mixtral | 114.3 GB | FP16 |
For comparison, cloud APIs offer equivalent open-weight models (Llama 4, DeepSeek V4, Qwen 3.7) via inference providers like Together, Fireworks, DeepInfra, and Groq at a fraction of frontier pricing. The key difference: a local setup gives you unlimited inference at marginal electricity cost, while the cloud gives you instant access without hardware investment.
For proprietary frontier models — Claude, GPT-5, Gemini Pro — cloud is the only option regardless of your budget. Compare capabilities side by side with our model comparison tool.
Choosing hardware for local inference starts with VRAM. Here is a rough guide by model size:
| Model size | FP16 VRAM | INT4 VRAM | Recommended GPU |
|---|---|---|---|
| 7B | ~16 GB | ~4 GB | RTX 3060 12 GB, M1 Pro |
| 13B | ~26 GB | ~7 GB | RTX 3090 24 GB |
| 20B | ~40 GB | ~10 GB | A6000 48 GB, 2x RTX 3090 |
| 70B | ~140 GB | ~35 GB | 2x RTX 3090 (quantized), A100 80 GB |
Quantization (INT4 or INT8) dramatically reduces VRAM requirements at a modest quality cost. Most local models support multiple quantization levels — check individual model pages in the local model explorer for specific quantization support.
If you do not have a compatible GPU, cloud GPU rental (A10G, A100, H100 instances) can serve as an intermediate step between cloud APIs and full local ownership. At $0.50-2.00/hour, a long-running inference job may still beat per-token API costs for high-volume workloads.
Filter local models by VRAM requirement →
| Factor | Local | Cloud API |
|---|---|---|
| Upfront cost | $300-1,600 (GPU) | $0 |
| Per-request cost | ~$0 (electricity only) | $0.0001-0.050+ per request |
| Best model quality | Up to ~70B (quantized) | Frontier (Claude Opus 4, GPT-5.4, Gemini 3.1 Pro) |
| Data privacy | Complete (local only) | Depends on provider |
| Setup time | 30 min + hardware | 5 min (API key) |
| Scalability | Fixed by hardware | Elastic to millions of requests |
| Model variety | 1-2 models at a time | Many models, instant switching |
Choose local when: privacy matters, you have predictable high-volume usage, you need low latency, and the available open-weight models meet your quality bar.
Choose cloud when: you need frontier models, your workload is variable, you are prototyping or iterating quickly, or you want multi-model routing without managing hardware.
Many teams use both: cloud APIs for complex reasoning or multimodal tasks, and local models for high-volume classification, extraction, and chat where cost and latency matter most. This hybrid approach balances capability with cost.
Start by exploring what is available: browse 29 local models, check cloud model comparisons, or run your workload through the cost calculator.
Cloud GPU options
Test hourly GPU rentals or serverless endpoints before buying dedicated local hardware.
On-demand cloud GPU marketplace with low hourly rates for self-hosting open-weight LLMs and fine-tuning runs.
Best for: Budget GPU rentals for break-even self-hosting and fine-tuning experiments
Developer-focused GPU pods and serverless vLLM/Ollama endpoints that scale down when idle.
Best for: Spiky inference traffic where serverless GPU autoscaling beats idle instances
Open-weight LLM inference APIs and serverless/on-demand GPU instances with per-token and hourly billing.
Best for: Comparing low-cost open-weight API routes or spinning up GPU instances
Dedicated and fractional cloud GPUs across global regions with predictable hourly/monthly pricing.
Best for: Production cloud GPU hosting with predictable regional infrastructure
Disclosure: Some outbound links may be partner or referral links. Model pricing, rankings, and calculator outputs remain completely independent.
Pricing data sourced from our catalog. Check data sources for provenance and freshness.