How to Use Vast.ai: The Cheapest Way to Rent a GPU (2026 Step-by-Step)

Written by Jakub Rusinowski · Last updated July 21, 2026

Last Updated: July 2026 — Vast.ai is a peer-to-peer GPU marketplace: individuals and datacenters rent out spare cards, and you bid for them. That makes it the cheapest way to get GPU-hours — often 30–

In This Guide

Last Updated: July 2026 — Vast.ai is a peer-to-peer GPU marketplace: individuals and datacenters rent out spare cards, and you bid for them. That makes it the cheapest way to get GPU-hours — often 30–50% below RunPod — at the cost of more variability. This guide shows how to pick a good host, launch an instance, and run a model without overpaying or leaking data.

When (and why) to use Vast.ai

Vast.ai is the right tool when:

It's the wrong tool for sensitive data or production uptime — you may be running on someone's personal machine. For that, use RunPod Secure Cloud, Lambda, or keep it local.

Rent a GPU by the hour
Need more VRAM than you own? Spin up a cloud GPU big enough for any model in minutes — pay for the hours you use instead of buying a card.

Affiliate links — we may earn a commission if you sign up, at no extra cost to you.

Vast.ai
Marketplace pricing — the cheapest per-hour rates for spot/interruptible GPUs.
Rent GPUs on Vast.ai →
RunPod
On-demand pods with a simple UI — good for a quick one-off inference or fine-tune.
Rent GPUs on RunPod →

Step 1 — Create an account and add credit

1. Sign up at Vast.ai and add credit (card or crypto). 2. In your account settings, add an SSH public key — you'll use it to connect to instances.

Rent GPUs on Vast.ai →

Step 2 — Search the marketplace like a pro

The search page is a filterable list of offers. The settings that matter:

Step 3 — Launch with a template

Choose a Docker image before you rent. Good starting points:

Then click Rent. The instance boots in a minute or two.

Step 4 — Connect and run

# Vast.ai shows the exact SSH command per instance
ssh -p <port> root@<host> -L 8080:localhost:8080

# Install Ollama if it's not in your image, then run a model
curl -fsSL https://ollama.com/install.sh | sh
ollama run llama3.1:8b

Watch the on-screen billing meter — Vast.ai bills per second while the instance is running.

Step 5 — Protect your budget and your data

Vast.ai vs the alternatives

You want…Use
The absolute cheapest GPU-hoursVast.ai (this guide)
A simpler UI + per-second serverlessRunPod
Guaranteed datacenter uptimeLambda / Hyperstack — see the Cloud GPU Rental Guide
To stop renting and own the hardwareBuild Guide + cost calculator

FAQ

Is Vast.ai safe? For non-sensitive experimentation, yes. For confidential data, no — you may be on a stranger's machine. Keep private workloads on Secure Cloud or local.

Why is my instance so cheap? Interruptible/spot pricing and consumer hardware. The trade-off is it can be paused if someone outbids you.

How does Vast.ai compare to RunPod on price? Vast.ai is usually cheaper (marketplace competition); RunPod trades a little cost for a smoother UI and per-second serverless. Many people prototype on Vast.ai and move production to RunPod or local hardware.

Related Guides

← All Guides | Check GPU Compatibility