Rent a GPU for AI: how it works, what it costs and where to rent
New to cloud GPUs? The three ways to rent one for AI, how to pick the right GPU, a step-by-step first launch, and how to keep the bill from surprising you.
Quick comparison
| Provider | From | Starting plan | Free tier | Our rating | Link |
|---|---|---|---|---|---|
RunPodChecked | $0.34/hr | RTX 4090 24GB (Community Cloud) | No free credits; small referral bonus after a $10 top-up | Not rated | Visit |
Vast.aiChecked | $0.47/hr | RTX 4090 24GB | No free credits | Not rated | Visit |
LambdaChecked | $2.29/hr | GH200 96GB (1x instance)64 vCPU · 432 GB RAM | No | Not rated | Visit |
ModalChecked | $1.10/hr | A10 | $30/month of free credits on the Starter plan | Not rated | Visit |
Why rent instead of buy
Renting a cloud GPU gets you a high-end card by the hour, with nothing to install at home. As of October 2026, an RTX 4090 rents for $0.34 an hour on RunPod’s Community Cloud, and an H100 from $1.99.
Renting makes sense when:
- Your use is uneven. You experiment in the evenings, run a fine-tune once a month, or demo a model to a client.
- You need more memory than you own. A 70B model or a training run can need 48 GB, 80 GB or more on one card.
- You don’t want the power bill or the noise. NVIDIA rates the RTX 5090 at 575 W of graphics power and recommends a 1,000 W power supply (NVIDIA).
Buying makes sense when a GPU would be busy most of the day for many months. A quick test: divide the hardware price by the hourly rent. At $0.34 an hour, every $1,000 of hardware buys about 2,940 hours of a rented RTX 4090, or about four months of round-the-clock use. If you’d use it less than that before upgrading, rent.
Three ways to rent
1. A GPU pod or virtual machine
You get a whole GPU with a container or virtual machine around it, and you’re billed while it runs. This is the most flexible option: open a notebook, connect over SSH, install whatever you like.
Billing increments differ: RunPod bills pods by the second (RunPod docs), Lambda in one-minute increments (Lambda docs), and DigitalOcean by the second with a 60-second minimum.
Pick this if you want full control, or you’re following a tutorial that assumes a normal Linux machine.
2. A marketplace GPU
On Vast.ai, independent hosts list their GPUs and set their own prices. It offers on-demand, reserved and interruptible instances; interruptible ones are often 50% or more cheaper but can be paused (Vast.ai docs). RunPod’s Community Cloud works on a similar idea, connecting you to vetted independent providers.
Pick this if price matters most and you can live with quality that varies from host to host.
3. Serverless GPU
You deploy code, and the platform starts a GPU only when a request arrives. You pay per second while it runs and nothing once it scales back to zero.
On Modal, containers stay up for 60 seconds after the last request by default, and that time is billed; CPU and memory are charged on top of the GPU (Modal pricing). RunPod Serverless bills from the moment a worker starts until it stops, and its flexible workers scale to zero after a default idle timeout of 5 seconds (RunPod docs).
Pick this if you’re building an app or API whose traffic comes and goes.
| Pod or VM | Marketplace | Serverless | |
|---|---|---|---|
| You pay for | Running time | Running time, at the host’s price | Seconds your containers run |
| Best for | Experiments, training, full control | Lowest prices | Apps with uneven traffic |
| Watch out for | Paying for idle time | Host reliability, bandwidth fees | Cold starts, CPU and memory extras |
Pick the right GPU
Memory (VRAM) is what matters most. Hugging Face’s rule of thumb: a model needs about 2 GB of VRAM per billion parameters at 16-bit precision, half that at 8-bit and a quarter at 4-bit (Hugging Face). Leave extra room for context.
| What you want to do | GPU to rent | VRAM |
|---|---|---|
| Chat with a small model like gpt-oss-20b (runs within 16 GB, per OpenAI’s model card) | RTX 4090 | 24 GB |
| Generate images with SDXL in ComfyUI | RTX 4090 or L40 (RunPod’s suggestion) | 24 GB or more |
| Run a 32B model at 4-bit | RTX 4090 or RTX 5090 | 24–32 GB |
| Run a 70B model at 4-bit, or fine-tune with QLoRA | L40S | 48 GB |
| Run gpt-oss-120b (fits one 80 GB GPU such as an H100, per its model card) | H100 | 80 GB |
| Run a 32B model at 16-bit | A100 or H100 | 80 GB |
For every GPU, its price at each provider and the full sizing table, see best GPU servers for AI.
Your first rented GPU, step by step
This walk-through uses RunPod, because its documentation covers each step. Other GPU clouds follow the same pattern.
-
Create an account and add credits. Sign up, verify your email and turn on two-factor authentication. You’ll be asked for a payment method and to buy credits; RunPod needs at least one hour’s worth of credits for the GPU you choose before it will start it (billing docs).
-
Choose a template and a GPU. A template is the ready-made software image your pod runs. Official templates include PyTorch with JupyterLab, and there’s a ComfyUI template for image generation (with a separate Blackwell Edition for the RTX 5090 and B200). Then pick the GPU from the table above.
-
Deploy and connect. Click Deploy. Open JupyterLab from the pod’s HTTP services, connect over SSH with a key you’ve added to your account, or open ComfyUI on port 8188 from the Connect menu. RunPod warns that the ComfyUI pod can take up to 30 minutes to start the first time.
-
Run a model. RunPod’s Ollama tutorial starts from the PyTorch template, exposes HTTP port 11434, sets the environment variable
OLLAMA_HOSTto0.0.0.0, and then runs commands like these in the web terminal:apt update && apt install -y lshw zstd (curl -fsSL https://ollama.com/install.sh | sh && ollama serve > ollama.log 2>&1) & ollama run gpt-oss:20bThe tutorial runs an older model; any model from the Ollama library works, and gpt-oss:20b is a 14 GB download. To see which models fit which GPU, and the chat apps to put in front of them, read our self-hosted AI guide.
-
Stop or terminate when you’re done. This is the step that saves money, and the next section explains the difference.
Avoid surprise bills
Stop vs terminate
Stopping a machine usually keeps your data, but you keep paying for storage, and on some clouds for the whole machine. Terminating (or destroying) deletes it, and the charges for it stop.
| Provider | After you stop it | To stop all charges |
|---|---|---|
| RunPod | Volume disk billed at $0.20/GB/month; you may get no GPU back on restart (docs) | Terminate (deletes everything not on a network volume) |
| Vast.ai | Storage keeps billing | Delete the instance |
| DigitalOcean | Powered-off GPU Droplets are billed in full (docs) | Destroy the Droplet |
| Vultr | Stopped instances are billed (docs) | Destroy the instance |
| Lambda | Billed while running, even if idle | Terminate; delete filesystems you no longer need |
To keep files between sessions on RunPod without paying for a stopped pod, use a network volume: $0.07/GB/month, and it survives termination. Our RunPod pricing guide compares every RunPod storage type and what happens to each when a pod stops or credit runs out.
Set an automatic stop
If you start a long job before bed, schedule the stop. RunPod’s docs show this one-liner, run inside the pod:
sleep 2h; runpodctl pod stop $RUNPOD_POD_ID &
Know what happens when credit runs out
Prepaid credits limit what you can spend, but running out has consequences. On RunPod, pods stop when your balance reaches $0, and pods without a network volume are terminated, with no way to recover the data. On Vast.ai, instances stop at zero; with a card on file you’re charged to top up, and without one your instances and data are scheduled for deletion.
Check data transfer
RunPod, Lambda and Hyperstack charge nothing for data in or out. Vast.ai charges per byte at a rate each host sets, so check it before downloading a 65 GB model. DigitalOcean includes an allowance, then charges $0.01 per GiB out.
What it costs: three examples
GPU prices as of October 2026. Storage and taxes are extra.
One evening of image generation
Four hours on an RTX 4090 in ComfyUI:
- RunPod Community Cloud: 4 × $0.34 = $1.36
- RunPod Secure Cloud: 4 × $0.89 = $3.56
Keeping a 50 GB volume between sessions costs $10 a month while the pod is stopped, more than the evening itself. If you only generate now and then, terminate the pod and download the models again next time, or keep them on a cheaper network volume.
A week-long fine-tune
Seven days (168 hours) of QLoRA fine-tuning on one L40S with 48 GB:
| Provider | Price per hour | Week |
|---|---|---|
| RunPod Community Cloud | $0.79 | $132.72 |
| RunPod Secure Cloud | $1.09 | $183.12 |
| DigitalOcean | $1.57 | $263.76 |
| Vultr | $1.671 | $280.73 |
Save checkpoints often. On marketplace or interruptible machines, a lost host shouldn’t mean a lost week.
An always-on chatbot
A month of 24/7 uptime is about 730 hours:
- RTX 4090 on RunPod Community Cloud: $248.20 a month
- RTX 4090 on RunPod Secure Cloud: $649.70 a month
- L40S on DigitalOcean: $1,146.10 a month
If the bot is busy only a couple of hours a day, serverless can cost far less. On Modal, 60 hours of L40S time is $117.07 a month for the GPU, plus CPU and memory. And if you’d rather pay per message than per hour, compare the numbers with our AI token cost calculator.
Where to rent: a short list
- RunPod if you’re new: templates, per-second billing, and a choice of cheaper Community or data-center Secure Cloud.
- Vast.ai if you want the lowest price and can choose hosts carefully. Our RunPod vs Vast.ai comparison shows which is cheaper for each GPU, with yearly totals.
- Lambda if you need data-center H100s and B200s with no data-transfer fees.
- Modal if you’re building an app; its Starter plan includes $30 of free credits a month.
For more options, see RunPod alternatives and the full GPU cloud list. We haven’t rented these GPUs for tests of our own, so startup times and real bills aren’t covered here (see how we work).
FAQ
How much does it cost to rent a GPU for AI?
As of October 2026, from $0.34 an hour for an RTX 4090 (RunPod Community Cloud), and $2.50 to $4.41 an hour for an H100 at the data-center clouds we track. Our cheapest cloud GPU page lists the lowest price for each GPU.
Can I rent a GPU by the minute?
Yes. RunPod and Vast.ai bill by the second, Lambda and Hyperstack by the minute, and serverless platforms like Modal by the second while your code runs.
Do I pay when my GPU is stopped?
Usually for storage, and sometimes in full. RunPod and Vast.ai charge for disk on stopped machines; DigitalOcean and Vultr bill stopped instances until you destroy them.
Is it safe to put private data on a rented GPU?
On marketplaces and RunPod’s Community Cloud, your job runs on hardware owned by an independent host. For sensitive data, choose a data-center tier such as RunPod’s Secure Cloud or a provider like Lambda, and read the provider’s security documentation.