How this guide is made. Wandering Giants publishes this guide and sells GPU compute, so we’ve put ourselves first. Other providers are judged on the same criteria, with prices taken from each provider’s own public pricing page (checked November 2026). Prices change often, so check before you buy. Last reviewed 25 November 2026.
Wandering Giants Compute is our pick for Stable Diffusion: an RTX 4090 at $1.59/hr with root access for ComfyUI, billed by the minute, plus 48 GB to 96 GB cards for SD 3.5 and big batches. RunPod and Vast.ai cost less per hour; a per-image API can be cheaper at low volume if you need no custom models.
- SDXL VRAM in practice
- 8–12 GB at 1024×1024
- SD 3.5 Large parameters
- 8.1 billion (plus text encoders)
- Best-value card for SDXL
- RTX 4090, 24 GB
- Wandering Giants RTX 4090
- $1.59/hr, billed by the minute
- Replicate FLUX.1 [schnell] API
- $0.003 per image (checked 25 Nov 2026)
- Cost per 1,000 images formula
- Hourly price × seconds per image ÷ 3.6
The shortlist
- Wandering Giants ComputeOur pickBest for: Your own ComfyUI or Automatic1111 box, any checkpoint · RTX 4090 $1.59/hr, L40S $1.89/hr
A dedicated RTX 4090 with root access runs ComfyUI, any checkpoint, LoRA or ControlNet, and you only pay for the minutes it is on. Larger cards up to 96 GB on one GPU handle SD 3.5 Large, big batches and LoRA training without memory tricks.
- Best for: Cheap pods with ready ComfyUI templates · RTX 4090 $0.89/hr, L40S $1.09/hr
Lower hourly prices than ours, per-second billing and popular one-click templates for ComfyUI and Stable Diffusion web UIs.
- Best for: The lowest price per hour for image generation · RTX 4090 $0.47/hr median
The cheapest 4090 hours available. Host quality varies, which matters less for image generation than for customer-facing work.
- Best for: Hosted image models by API, no GPU to manage · FLUX.2 [dev] $0.0154 per image; no SDXL price listed
No GPU to manage and you pay per image, but you get the hosted models only, not your own checkpoints and workflows, and its price list no longer shows SDXL.
- Best for: Running community image models through an API · L40S $3.51/hr, billed per second
Thousands of public models and simple APIs, billed by the second of runtime. More expensive per GPU-hour than renting a pod.
- Best for: Serverless image endpoints that scale to zero · L40S $1.95/hr, per second
Ideal for an app that generates images in bursts: pay per second while running, nothing when idle. Requires writing Python.
- Best for: Notebooks and GPU Droplets from a general cloud · L40S $1.57/hr
Paperspace, now part of DigitalOcean, was an early favourite for Stable Diffusion notebooks; GPU Droplets bill per second with a 5-minute minimum.
- Best for: Budget RTX 4090 VMs · RTX 4090 from $0.35/hr
Marketplace VMs at very low prices with full OS access, suited to hobby use and batch rendering.
Stable Diffusion is a family of open image-generation models from Stability AI, from the small SD 1.5 to SDXL and the 8.1-billion-parameter SD 3.5 Large. Running it in the cloud means renting a GPU, installing a front end such as ComfyUI or Automatic1111, and loading the checkpoints, LoRAs and ControlNets you want. This guide ranks eight places to do that, explains which card each Stable Diffusion version needs, and works out cost per 1,000 images on real hourly prices.
How we compared GPU clouds for Stable Diffusion
Image generation stresses a GPU differently from a chatbot: it is compute-bound, the models are small enough for consumer cards, and you often run the GPU interactively while you iterate. So we weighed:
- Price of a 24 GB card, because an RTX 4090 runs SD 1.5 and SDXL comfortably.
- Access to larger cards for SD 3.5 Large, high-resolution upscaling, big batches and training.
- Freedom to install anything: custom checkpoints, LoRAs, ControlNet, custom nodes.
- Billing granularity, because interactive sessions start and stop.
- Setup time to a working ComfyUI or web UI.
- Per-image API pricing where a provider sells images instead of GPU time.
Prices come from each provider's public page: our 25 Nov 2026 survey or checked in November 2026. We did not benchmark the providers; generation times below are labelled planning assumptions.
Which GPU does each Stable Diffusion version need?
Stable Diffusion is light on memory compared with LLMs. The main question is speed per pound, not whether it fits.
| Model | Main model size | VRAM at default resolution | Comfortable card | Notes |
|---|---|---|---|---|
| SD 1.5 | ~0.9B (UNet + text encoder) | 4–8 GB at 512×512 | RTX 4090 | Huge LoRA and checkpoint ecosystem |
| SDXL 1.0 | ~3.5B (base) | 8–12 GB at 1024×1024 | RTX 4090 | Add ~6 GB if the refiner is also loaded |
| SDXL Turbo | ~3.5B | 8–10 GB at 512×512 | RTX 4090 | 1–4 steps, very fast |
| SD 3.5 Medium | 2.5B | ~12–16 GB with text encoders | RTX 4090 | Lighter SD 3.5 variant |
| SD 3.5 Large | 8.1B + T5-XXL encoder | ~20–30 GB depending on T5 precision | L40S (48 GB) | Fits 24 GB with an FP8 T5 or offloading |
ControlNet adds a few GB per model loaded, high-resolution fixes and upscalers add more, and batch size multiplies activation memory. On a 24 GB card you will sometimes juggle; on a 48 GB L40S or 96 GB RTX PRO 6000 you will not. For the detail, see VRAM for Stable Diffusion and FLUX.
The best GPU clouds for Stable Diffusion
1. Wandering Giants Compute
Wandering Giants Compute rents dedicated NVIDIA GPUs. For Stable Diffusion you use Root mode: a full Ubuntu machine with CUDA and PyTorch, SSH and Jupyter, on which you install ComfyUI, Automatic1111 or Forge and any checkpoint you like. Stable Diffusion is not one of our one-click chat models, so expect about ten minutes of setup the first time; pause the machine afterwards and your install and models stay on disk for about 3 cents an hour per 50 GB.
Strengths. A dedicated RTX 4090 at $1.59/hr, an L40S with 48 GB at $1.89/hr and an RTX PRO 6000 Blackwell with 96 GB at $4.89/hr, so SD 3.5 Large, big batches and LoRA training fit without memory workarounds. Per-minute billing suits stop-start creative sessions, and the machine stops itself when credit runs out. Prices in your own currency, VAT shown for UK customers (£1.49/hr for the 4090). Your prompts and images stay on your machine.
Weaknesses. More expensive per hour than RunPod, Vast.ai and TensorDock on the 4090. No one-click Stable Diffusion template, no serverless image endpoint, no spot pricing. Newly launched.
Best for. People who want a private, full-control Stable Diffusion box with predictable per-minute costs and room to grow into bigger cards.
2. RunPod
RunPod rents GPU containers billed per second and has widely used community templates for ComfyUI and Stable Diffusion web UIs. Secure Cloud on 25 Nov 2026: RTX 4090 $0.89/hr, L40S $1.09/hr, A100 80GB $2.09/hr.
Strengths. Cheaper than us per hour, quick template-based setup, and network volumes for keeping models between sessions. Community Cloud is cheaper still.
Weaknesses. Templates vary in quality and age; when one breaks after a ComfyUI update you fix it.
Best for. Regular Stable Diffusion users who want a ready template at a low price.
3. Vast.ai
Vast.ai is a marketplace of independent GPU hosts. On 25 Nov 2026 the median RTX 4090 was $0.47/hr and the median L40S $0.80/hr.
Strengths. The cheapest 4090 hours available. Image generation tolerates host variation well: if a host drops, you lose a session, not a customer.
Weaknesses. Download speeds, disk and reliability vary by host. Models and outputs sit on someone else's machine.
Best for. Hobbyists and batch rendering where price matters most.
4. Together AI
Together AI sells image generation by the image. Its pricing page (checked 25 Nov 2026) no longer lists SDXL; its image models are now FLUX variants, for example FLUX.2 [dev] at $0.0154 per image.
Strengths. No GPU to manage and nothing to pay while idle, which beats a rented GPU that sits unused most of the day.
Weaknesses. Hosted models only: no custom checkpoints, LoRAs or ComfyUI graphs, and prompts go to a shared service.
Best for. Apps that need standard hosted image models by API.
5. Replicate
Replicate runs public and private models behind a simple API and bills hardware per second. Prices (checked Nov 2026): L40S $3.51/hr, A100 80GB $5.04/hr, T4 $0.81/hr; some official models are priced per image instead.
Strengths. A large library of community image models, fine-tuning flows and an easy API.
Weaknesses. Higher per-GPU-hour cost than renting a pod, and cold starts on less-used models.
Best for. Developers who want to try many community models through one API.
6. Modal
Modal runs Python functions on GPUs, billed per second with nothing charged when idle. Prices (checked Nov 2026): L40S $1.95/hr, A100 80GB $2.50/hr, H100 $3.95/hr.
Strengths. A Stable Diffusion endpoint that scales to zero between requests, with good tooling for batch jobs.
Weaknesses. Code-first; not suited to clicking around ComfyUI interactively. Cold starts load the model each time a container starts.
Best for. Apps with bursty image traffic.
7. DigitalOcean (Paperspace)
Paperspace, now part of DigitalOcean, was one of the first popular homes for Stable Diffusion notebooks. DigitalOcean GPU Droplets bill per second with a 5-minute minimum; the L40S was $1.57/hr on 25 Nov 2026.
Strengths. A general-purpose cloud with GPUs beside storage, databases and app hosting.
Weaknesses. Pricier than specialist GPU clouds for the same card, and fewer consumer-class GPUs.
Best for. Teams already building on DigitalOcean.
8. TensorDock
TensorDock is a marketplace of GPU VMs with RTX 4090s from $0.35/hr on 25 Nov 2026.
Strengths. Full VMs at very low prices.
Weaknesses. Quality varies by host; you install everything.
Best for. Budget users who want a full VM rather than a container.
Comparison table: Stable Diffusion in the cloud
| Provider | RTX 4090 / 24 GB | 48 GB card | Custom checkpoints and LoRAs | ComfyUI | Billing |
|---|---|---|---|---|---|
| Wandering Giants Compute | $1.59/hr | L40S $1.89/hr | Yes | Install on root | Per minute |
| RunPod | $0.89/hr | L40S $1.09/hr | Yes | Templates | Per second |
| Vast.ai | $0.47/hr median | L40S $0.80/hr median | Yes | Templates | Usage-based, set by host |
| Together AI | n/a | n/a | No | No | Per image |
| Replicate | n/a | L40S $3.51/hr | Via custom models | No | Per second or per image |
| Modal | n/a | L40S $1.95/hr | Yes, in code | Possible, code-first | Per second |
| DigitalOcean | n/a | L40S $1.57/hr | Yes | Install yourself | Per second, 5-min min |
| TensorDock | from $0.35/hr | Varies | Yes | Install yourself | Usage-based, set by host |
Worked example: cost per 1,000 Stable Diffusion images on our GPUs
Image generation is compute-bound, so the honest way to cost it is from seconds per image. The times below are planning assumptions for a single image per batch with standard samplers and no acceleration tricks, broadly in line with commonly reported figures; time your own workflow with the script further down before relying on them. Formula: cost per 1,000 images = hourly price × seconds per image × 1,000 ÷ 3,600. Prices are ours at 25 Nov 2026.
| Workload | GPU | Assumed seconds per image | Hourly price | Cost per 1,000 images |
|---|---|---|---|---|
| SD 1.5, 512×512, 25 steps | RTX 4090 | 1.0 | $1.59/hr | ~$0.44 |
| SD 1.5, 512×512, 25 steps | L40S | 1.3 | $1.89/hr | ~$0.68 |
| SDXL, 1024×1024, 30 steps | RTX 4090 | 4.0 | $1.59/hr | ~$1.77 |
| SDXL, 1024×1024, 30 steps | L40S | 5.0 | $1.89/hr | ~$2.63 |
| SDXL, 1024×1024, 30 steps | RTX PRO 6000 | 2.5 | $4.89/hr | ~$3.40 |
| SDXL, 1024×1024, 30 steps | H100 PCIe | 2.5 | $4.99/hr | ~$3.47 |
| SD 3.5 Large, 1024×1024, 28 steps | RTX 4090 | 12 | $1.59/hr | ~$5.30 |
| SD 3.5 Large, 1024×1024, 28 steps | L40S | 13 | $1.89/hr | ~$6.82 |
| SD 3.5 Large, 1024×1024, 28 steps | RTX PRO 6000 | 6 | $4.89/hr | ~$8.15 |
Example: SDXL on the 4090 is $1.59/hr × 4 s × 1,000 ÷ 3,600 ≈ $1.77 per 1,000 images at the 25 Nov 2026 price.
What the table tells you:
- The RTX 4090 is the cost-per-image winner for SD 1.5 and SDXL. Faster data-centre cards do not finish proportionally faster for small diffusion models.
- Bigger cards earn their keep on SD 3.5 Large and when you batch, upscale or train, because they avoid offloading and let you raise batch size.
- Utilisation dominates. In an interactive ComfyUI session the GPU may be busy only 20% of the time while you edit prompts and nodes. At 20% busy, the 4090's SDXL cost becomes about $8.83 per 1,000 images (five times the full-load figure).
- An API can be cheaper at low volume. Replicate's FLUX.1 [schnell] at $0.003 per image (checked 25 Nov 2026) is $3.00 per 1,000 with nothing to pay while idle, which beats a 4090 that is busy only 20% of the time. Together AI's price list no longer shows SDXL. Rent a GPU when you need your own checkpoints, LoRAs, ControlNet or workflows, or when you will keep it busy.
For a bigger run priced end to end, see the cost to generate 10,000 AI images.
What does training an SDXL LoRA cost?
A typical SDXL LoRA on 20 to 40 images runs 1,500 to 3,000 steps. Assuming about 1.5 seconds per step at batch size 1 on an RTX 4090, 1,500 steps take about 38 minutes, or roughly $1.01 at the 25 Nov 2026 price. With per-minute billing you pay for those 38 minutes, not a rounded hour.
Should you keep your models on disk between sessions?
Stable Diffusion setups grow quickly. An SDXL checkpoint in FP16 safetensors is about 6.9 GB, SD 1.5 checkpoints are 2 to 4 GB, each LoRA is tens to hundreds of MB, and a few ControlNets, upscalers and custom-node dependencies push a working ComfyUI install to 50 GB or more. You can either keep that disk between sessions or rebuild it each time.
| Approach | What you pay | Time cost per session | Best when |
|---|---|---|---|
| Pause the machine, keep a 50 GB disk | About 3¢ an hour, roughly $21.90 for a full 730-hour month | None: resume and carry on | You generate several times a week |
| Stop and rebuild each time | Nothing between sessions | Install plus downloads: ~70 s per 7 GB at 100 MB/s, more for big collections | You generate once or twice a month |
| Keep a script that rebuilds everything | Nothing between sessions | A few minutes, unattended | You want both low idle cost and fast starts |
The arithmetic for the download column is simply size ÷ speed: 6.9 GB at 100 MB/s is about 69 seconds; real speeds depend on the source and the data centre. The middle path, a short shell script that clones ComfyUI, installs your custom nodes and pulls your checkpoints with huggingface-cli download, is what most regular cloud users settle on, because it also documents exactly which model versions produced which images.
On our machines a paused GPU pays only for its disk, and if your credit runs out the machine stops and its disk is kept free for 7 days, so a forgotten session costs you at most the credit you loaded.
How to run Stable Diffusion on a rented GPU
On a root-access machine, ComfyUI takes a few commands (assumes Python 3.10 or later and a CUDA build of PyTorch already installed, as on our Root image):
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
pip install -r requirements.txt
# put checkpoints in models/checkpoints, LoRAs in models/loras
python main.py --listen 0.0.0.0 --port 8188Open it from your laptop through an SSH tunnel: ssh -L 8188:localhost:8188 root@YOUR-GPU, then browse to http://localhost:8188.
To time your own seconds per image for the cost formula, use diffusers:
import time, torch
from diffusers import StableDiffusionXLPipeline
pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0",
torch_dtype=torch.float16, variant="fp16", use_safetensors=True,
).to("cuda")
prompt = "a lighthouse on a cliff at dusk, oil painting"
pipe(prompt, num_inference_steps=30) # warm-up
t = time.perf_counter()
for _ in range(10):
pipe(prompt, num_inference_steps=30, height=1024, width=1024)
print(f"{(time.perf_counter() - t) / 10:.2f} s per image")The ComfyUI documentation, the diffusers docs and the SDXL model card cover the details. Our full walkthroughs are how to run Stable Diffusion on a cloud GPU and how to run ComfyUI on a cloud GPU.
How to choose a GPU cloud for Stable Diffusion
- Casual or hobby use, lowest price. Vast.ai or TensorDock 4090s, or RunPod Community Cloud. Accept some host variation.
- Regular creative work with your own models, private. A dedicated 4090 you can pause between sessions, which is the way Wandering Giants Compute works.
- SD 3.5 Large, big batches or training. Step up to 48 GB or 96 GB so you stop fighting memory.
- An app that needs standard images from a hosted model. A per-image API such as Replicate or Together AI; check which models each currently lists.
- An app with your own fine-tuned model and bursty traffic. Modal or Replicate for scale-to-zero, or a dedicated card if traffic is steady.
For GPU selection across all image models, see choosing a GPU for AI image generation, and for a broader list of providers, the best GPU cloud providers.
When Wandering Giants Compute fits for Stable Diffusion
Use us when you want your own Stable Diffusion machine: any checkpoint, any LoRA, any custom node, on a GPU nobody else uses, billed by the minute and paused between sessions. Start on the RTX 4090 for SD 1.5 and SDXL, and move to an L40S or RTX PRO 6000 when SD 3.5 Large, big batches or LoRA training make 24 GB feel small.
If you only need occasional standard SDXL images, an image API costs less. If you want the absolute lowest hourly price and do not mind variable hosts, a marketplace costs less. We think the dedicated, private, pause-when-done model is the best balance for people who generate seriously.
Frequently asked questions
What is the best cloud GPU for Stable Diffusion?
For SD 1.5 and SDXL, the RTX 4090 is the best value: 24 GB is more than enough and it is fast for its price. For SD 3.5 Large, big batches, high resolutions or LoRA training at larger batch sizes, a 48 GB L40S or 96 GB RTX PRO 6000 removes memory pressure.
How much VRAM does Stable Diffusion need?
SD 1.5 runs in 4 to 8 GB, SDXL in about 8 to 12 GB at 1024×1024, and SD 3.5 Large needs around 20 GB or more depending on how the T5 text encoder is loaded. Upscaling, ControlNet and large batches add to that.
How much does it cost to generate 1,000 Stable Diffusion images in the cloud?
On an RTX 4090 at full utilisation, our estimate for SDXL at 1024×1024 and 30 steps is roughly $1.77 per 1,000 images, assuming about 4 seconds per image. SD 1.5 at 512×512 is about $0.44 per 1,000. Idle time while you tweak prompts raises the real cost per image.
Can I run ComfyUI on a rented GPU?
Yes. On any root-access GPU you clone ComfyUI, install its requirements, download checkpoints into its models folder and start it listening on a port. You then open it through an SSH tunnel or the provider's proxy.
Is it cheaper to use an image API than to rent a GPU?
For standard models at low volume, often yes. Replicate charges $0.003 per FLUX.1 [schnell] image (checked 25 Nov 2026), which beats a rented GPU that sits idle much of the time. Renting wins when you keep the GPU busy, or when you need custom checkpoints, LoRAs, ControlNet or ComfyUI workflows that APIs do not offer.
Should I use an RTX 4090 or an H100 for Stable Diffusion?
Usually the RTX 4090. An H100 is faster per image but costs about three times as much per hour, so its cost per image is higher for SDXL in our estimates. The H100 makes sense only when you need its memory or are training larger models.
Rent the GPU for this, by the minute.
Launch an RTX 4090 with root access, install ComfyUI and generate with any checkpoint or LoRA, billed by the minute.
Prepaid credit, billed by the minute, stops itself when credit runs out. Prices in £, $, €, ¥, CA$, A$, CHF and S$; UK prices include VAT.
Keep reading
- ComparisonBest GPU Cloud Providers for LLM Inference
- Complete guideHow to Run Stable Diffusion on a Cloud GPU
- Comparison10 Best GPU Cloud Providers in 2027
- TutorialHow to Run ComfyUI on a Cloud GPU
- GuideHow Much VRAM Do You Need for Stable Diffusion and FLUX?
- Cost breakdownHow Much Does It Cost to Generate 10,000 AI Images?
About this article. Written by the Wandering Giants Compute team, the people who run Wandering Giants Compute. Hardware figures are the manufacturers’ published specifications. Speeds and costs marked as estimates are worked out from those specifications and our current prices, with the method shown; they are not measured benchmarks. Wandering Giants prices are taken live from our price list each time this page is built.
Last reviewed 25 November 2026.