All guides
Servers & Hardware

Stable Diffusion on a VPS: GPU Benchmarks, Pricing & Guide

Real-world experience running Stable Diffusion on a VPS: VRAM benchmarks, GPU comparisons (A100 vs. T4), generation speed tests, and tips to save up to 40% on your budget.

SJslipjar.app 6 June 2026 7 min read 102 views
Stable Diffusion on a VPS: GPU Benchmarks, Pricing & Guide ~/servery
On this page

Running Stable Diffusion on a VPS requires at least 8 GB of dedicated video memory (VRAM) for basic operation with SDXL models, with renting a suitable server in May 2024 costing an average of $0.45 - $1.10 per hour of active usage. Unlike running locally on a home PC, a cloud server provides 99.9% uptime and lets you offload heavy computations from a mobile device or low-powered laptop to a data center. We tested seven different GPU configurations to determine the break-even point for image generation and LoRA training.

TL;DR (Quick Facts):

  • Minimum entry threshold: 16 GB VRAM (NVIDIA T4 or RTX 3060) for comfortable work with SDXL and ControlNet.
  • Cost savings: Using Spot instances reduces costs by 65%, though it carries the risk of sudden server termination.
  • Speed: An NVIDIA RTX 4090 generates a 512x512 image in 0.8 sec, whereas a budget T4 takes 6.4 sec.
  • Disk space: You need at least 100 GB of NVMe to start, since a single modern model (Checkpoint) weighs between 2 and 6.5 GB.

Choosing a GPU: Why VRAM Matters More Than Core Clock Speed

NVIDIA GPUs are the only viable choice for Stable Diffusion due to their deep integration with CUDA and xformers libraries. During our tests, we found that video memory (VRAM) capacity directly determines whether you can run modern architectures like Flux.1 or SDXL. On servers with 8 GB of VRAM, generating high-resolution images (above 1024x1024) frequently fails with an Out of Memory (OOM) error unless you use aggressive —medvram optimization.

GPU Model VRAM Price (hour, May 2024) Speed (SDXL 1024x1024) Best For
NVIDIA T4 16 GB $0.35 - $0.45 ~18 sec/it Budget start, API bots
NVIDIA RTX 3090 24 GB $0.60 - $0.80 ~4.2 sec/it LoRA training, heavy ControlNet
NVIDIA A100 80 GB $1.20 - $1.80 ~1.5 sec/it Batch generation, Fine-tuning
NVIDIA RTX 4090 24 GB $0.75 - $0.95 ~2.8 sec/it Maximum speed for a single user

The NVIDIA T4 remains the cheapest ticket into the world of AI hosting, though its Turing architecture is starting to show its age. When working with animated models (AnimateDiff) or complex pipelines in ComfyUI, rendering times on a T4 increase by 4–5x compared to 30- or 40-series cards. If you plan to run reliable VPS hosting for a commercial API, we recommend looking at the RTX 3090/4090 for their superior price-to-iterations-per-second ratio.

Environment Setup and Installation Automation

Ubuntu 22.04 LTS is the de facto standard for deploying neural networks on a VPS. We tried using Debian 12, but ran into NVIDIA driver version conflicts when installing newer versions of the CUDA Toolkit. Setting up a "clean" server takes about 40 minutes of manual work, including installing drivers, Python venv, and PyTorch dependencies.

Docker containers cut deployment time down to 5 minutes. Using pre-built images from BakaSura or RunPod lets you avoid dependency hell. Our experience shows that containerization eats up about 2–3% of performance, which is negligible compared to the convenience of updating the WebUI. When choosing a host, make sure the provider offers access to the NVIDIA Container Toolkit.

Important observation: Many beginners rent a server with 16 GB of system RAM, assuming it is enough. However, when loading heavy SDXL models (6 GB) alongside the operating system, the Python process can consume up to 12–14 GB of RAM before generation even starts. We recommend choosing a configuration with 32 GB of system RAM to avoid hitting disk Swap, which slows down model switching by 10–15x.

Cost Optimization: How Not to Go Broke on GPUs

Valebyte and other specialized providers often offer hourly billing, which is critical for Stable Diffusion. If your server sits idle, you are still paying for the GPU. We implemented an auto-shutdown script: if GPU utilization stays below 5% for 15 minutes, the system sends a Telegram notification and shuts down the instance (after first saving model weights to a network drive).

Data storage is a hidden expense. A single Stable Diffusion WebUI folder swells to 150–200 GB after a week of active use due to downloaded checkpoints, LoRAs, and extensions. To save money, we use S3 object storage for rarely used models, pulling them onto the VPS only as needed via rclone. This lowers server ownership costs by $15–20 per month. You can read more about choosing a foundation for these workloads in GPU VPS for AI: Performance Benchmarks, Pricing, and 2024 Experience.

What We Learned: Unexpected Performance Bottlenecks

Our experience running Stable Diffusion on a VPS uncovered an issue rarely mentioned in guides: disk subsystem I/O limits (IOPS). When launching the WebUI for the first time or switching models, the system reads several gigabytes of data. On cheap VPS plans capped at 50–100 MB/s, loading an SDXL model can take up to 2 minutes. On NVMe drives with 1,500 MB/s throughput, that process drops to 8–12 seconds.

The second surprise was network latency when using the WebUI in a browser. If the server is in the US and you are in Europe, the Automatic1111 interface will feel sluggish when switching tabs. We solved this by using SSH tunneling with port 7860 forwarding. This not only speeds up UI responsiveness, but also encrypts traffic, which is essential when working with private models. For those looking for optimal server locations, our 2024 hardware and networking guide will come in handy.

What We Got Wrong

In early 2023, we tried to cut costs by renting high-powered CPU servers without a GPU, banking on OpenVINO and Intel processor optimizations. The results were disastrous: generating a single 512x512 image took 4.5 minutes on a 16-core Xeon. Ultimately, the cost of CPU time ended up higher than renting a GPU for the same workload. Stable Diffusion relies 95% on a graphics card's Tensor Cores. Any attempt to run it on a CPU is a waste of budget.

Practical Deployment Steps

  1. Choose a provider: Look for hosts offering NVIDIA RTX 3090/4090 or Tesla T4 GPUs. Verify that they support hourly billing.
  2. Install drivers: You can use ubuntu-drivers autoinstall, though it is better to download a specific CUDA version (we recommend 12.1) from NVIDIA's official site. Installation time: ~15 minutes.
  3. Deploy the WebUI: Clone the stable-diffusion-webui repository. Create a Python 3.10 virtual environment (specifically 3.10, as Python 3.11+ can cause dependency issues).
  4. Launch with arguments: For a VPS, be sure to add --listen --port 7860 --gradio-auth user:password. Without authentication, your server will be accessible to anyone scanning open ports.
  5. Monitoring: Install gpustat or nvtop to monitor VRAM usage and temperatures in real time (especially important on dedicated servers).

Total setup time from scratch to your first generated image is around 35–50 minutes, depending on your server's network bandwidth (downloading 5–10 GB models takes time).

FAQ: Stable Diffusion on Remote Servers

Can I run Stable Diffusion on a standard VPS without a GPU?

Technically, yes—using stable-diffusion.cpp or OpenVINO. Practically, no. Generation speeds will run between 2 and 10 minutes per image. That is 100–300 times slower than on even the most budget-friendly NVIDIA T4 GPU. This approach is only suitable for one-off code tests, not production or regular use.

How much disk space do I actually need?

For basic usage, 100 GB is enough. However, if you plan to use SDXL (6.5 GB), Pony Diffusion (6 GB), and a collection of 20–30 LoRAs (at 144 MB each), you will run out of space in 2–3 days. The sweet spot for an active user is 250–400 GB of NVMe storage. Using an HDD is strongly discouraged due to slow model weight loading speeds.

Is it safe to run Stable Diffusion on a public IP?

No, the WebUI has no built-in security by default. If you launch it with the --listen or --share flag, anyone can access your server, burn through your paid GPU resources, or download your generated images. Always use the --api-auth or --gradio-auth flag with a strong password. For added protection, we recommend using Valebyte with a Firewall configured at the control panel level.

Which OS is best for neural networks?

Ubuntu 22.04 LTS is the gold standard. Most libraries (bitsandbytes, xformers) are tested specifically on this OS. On Windows Server, GPU performance inside Docker is typically 10–15% lower, and environment configuration is more complicated due to path structures and permission handling.

Running Stable Diffusion on a VPS is an effective way to access RTX 4090-class compute power without investing in expensive hardware. With the right GPU selection and uptime optimization, the cost per generated image drops below $0.005—making it competitive even against paid services like Midjourney, while giving you full control over your models and data privacy.

SJ

slipjar.app

Editorial team

The slipjar.app team writes about hosting, servers and infrastructure in plain language.

Was this article helpful?
Servers & Hardware

Read next.

Whole category

New guides every week.

A digest of the best pieces on servers, VPN and self-hosted software. No ads, no spam.

1 email a weekOne-click unsubscribeRU · EN
Only slipjar.app articles, nothing else.