For most AI image work a 24 GB GPU such as the RTX 4090 is right: it runs SDXL, SD 3.5 Medium and FLUX.1 in FP8, and trains SDXL LoRAs. Use 48 GB for FLUX or SD 3.5 Large in full precision, and 80–96 GB for video models or many models at once.
- SD 1.5
- Runs on 4–8 GB
- SDXL
- 8–12 GB to generate; ~16–24 GB to train a LoRA
- FLUX.1 weights (BF16)
- ≈34 GB; ≈17 GB in FP8 (arithmetic)
- Best price per image (typical)
- RTX 4090, 24 GB, $1.59/hr
- Full-precision FLUX
- L40S, 48 GB, $1.89/hr
- Most VRAM on one workstation-class card
- RTX PRO 6000 Blackwell, 96 GB
The GPU you need for AI image generation is decided by one number first, VRAM, and by price per image second. Get the VRAM right and almost any modern NVIDIA card will make images; get it wrong and the model will not load at all, or will crawl along with half its weights in system RAM. This guide maps every popular image model to the memory it needs, then shows which card gives the best value for each kind of work.
For the end-to-end setup on a rented machine, see the pillar guide, how to run Stable Diffusion on a cloud GPU.
What matters most when choosing a GPU for image generation?
VRAM matters most, then tensor-core throughput and FP8 support, then memory bandwidth. VRAM is a hard limit; the other two only change speed.
- VRAM (GPU memory). The model's weights, its text encoders, the latent images and any LoRAs or ControlNets must fit, plus 10–20% headroom. If they do not, you quantise, offload to CPU RAM, or pick a bigger card. What GPU VRAM is covers the basics.
- Tensor-core throughput and precision. Diffusion transformers such as FLUX.1 and SD 3.5 do a lot of matrix maths per step. Ada, Hopper and Blackwell cards have FP8 tensor cores; Ampere (A100, RTX 3090) does not.
- Memory bandwidth. It matters, but less than for LLM chat, where each token re-reads all the weights. Image models reuse weights across a large block of latent pixels, so they lean more on compute.
- Price per hour. The final judge is price per image, which combines speed and hourly price. A faster card can be the more expensive way to make an image.
How much VRAM does each image model need?
From SD 1.5 at around 4 GB to FLUX.1 at about 34 GB in full precision, the spread is large. The table below uses published parameter counts and the rule weights ≈ parameters × bytes per parameter, rounded, then adds working headroom.
| Model | Weights at 16-bit (approx.) | Comfortable VRAM to generate | With FP8 / 4-bit / offload | To train a LoRA (rule of thumb) |
|---|---|---|---|---|
| SD 1.5 | ~2 GB | 6–8 GB | 4 GB | 8–12 GB |
| SDXL 1.0 base | ~7 GB | 12 GB | 8 GB | 16–24 GB |
| SD 3.5 Medium | ~5 GB + text encoders | 16 GB | 10–12 GB | 16–24 GB |
| SD 3.5 Large | ~16 GB + ~11 GB text encoders | 32–40 GB | 16–24 GB | 40–48 GB |
| FLUX.1 [dev] / [schnell] | ~24 GB + ~10 GB text encoders | 40–48 GB | 24 GB (FP8), 12–16 GB (4-bit) | 24 GB tight; 40–48 GB comfortable |
| Video (e.g. Wan 2.1 14B, HunyuanVideo) | 28 GB+ | 60–80 GB | 24 GB with heavy offload, slow | 80 GB+ |
The full working, component by component, is in how much VRAM you need for Stable Diffusion and FLUX. Two practical points matter more than the exact figures. First, a workflow is more than the base model: a ComfyUI graph with SDXL, a refiner, two ControlNets and an IP-Adapter can double SDXL's footprint. Second, upscaling and high-resolution passes need extra activation memory, so a 2048-pixel image needs noticeably more VRAM than a 1024-pixel one.
Which GPU is best for each kind of image work?
Match the card to the heaviest thing you will regularly do, not the lightest. This is our recommendation by workload, using the GPUs we rent plus consumer cards for context.
| Workload | Minimum sensible | Recommended | Why |
|---|---|---|---|
| SD 1.5 and SDXL, personal use | 12 GB consumer card | RTX 4090 (24 GB) | SDXL fits with room for LoRAs and ControlNets |
| FLUX.1 [schnell] / [dev] in FP8 | 16 GB (4-bit) | RTX 4090 | FP8 tensor cores; transformer is ~12 GB in FP8 |
| FLUX.1 or SD 3.5 Large in full BF16 | 40 GB | L40S (48 GB) | ~34 GB of weights fits with headroom |
| SDXL LoRA training | 16 GB | RTX 4090 | Fast and inexpensive for small datasets |
| FLUX LoRA training | 24 GB | L40S or A100 80GB | Bigger batches and resolutions without heavy tricks |
| ComfyUI with many models loaded | 24 GB | RTX PRO 6000 (96 GB) | Switch between FLUX, SDXL and video without reloading |
| Production image API, low latency | 24 GB | H100 (80 GB) or several RTX 4090s | Faster per request; or more cards for throughput |
| Open video models | 24 GB (small models) | 80–96 GB | Wan 2.1 14B and HunyuanVideo want 60–80 GB |
For a closer look at the two most common picks, see renting an RTX 4090 in the cloud and renting an L40S.
Which GPU gives the cheapest image?
For most still-image work the RTX 4090 gives the cheapest image, because its speed is close to data-centre cards and its hourly price is far lower. Price per image is speed times price, so you have to do the sum.
Cost per 1,000 images = seconds per image × 1,000 ÷ 3,600 × hourly price. The seconds below are our rough estimates for one 1024×1024 image, scaled from published community figures by each card's compute and bandwidth; they are not our own measurements.
| GPU | Price | SDXL, 30 steps (s, est.) | GPU-hours per 1,000 SDXL | FLUX.1 [dev], 28 steps (s, est.) | GPU-hours per 1,000 FLUX [dev] |
|---|---|---|---|---|---|
| RTX 4090 | $1.59/hr | 4.5 | 1.25 | 18 (FP8) | 5.00 |
| L40S | $1.89/hr | 5 | 1.39 | 20 | 5.56 |
| A100 80GB | $3.79/hr | 4 | 1.11 | 14 | 3.89 |
| H100 PCIe | $4.99/hr | 3 | 0.83 | 9 | 2.50 |
| RTX PRO 6000 | $4.89/hr | 3 | 0.83 | 9 | 2.50 |
Multiply the GPU-hours by the hourly price in the same row to get our cost per 1,000 images. Because the H100 is about half the time of the 4090 per FLUX image but costs several times more per hour, the 4090 wins on cost; the H100 wins on latency and on how many images one machine can produce per hour.
The same pattern holds at other providers. At RunPod's published Secure Cloud prices (checked 25 Nov 2026), FLUX.1 [dev] costs 5.00 × $0.89 = $4.45 per 1,000 on a 4090, 5.56 × $1.09 = $6.06 on an L40S and 2.50 × $2.89 = $7.23 on an H100 PCIe.
When is a bigger GPU worth it?
A bigger GPU is worth it when VRAM, not speed, is the problem, or when time is worth more than GPU cost. Four cases come up again and again.
- You keep hitting out-of-memory errors. Offloading and 4-bit quantisation work, but each costs speed and some quality. Moving from 24 to 48 GB removes that tax for FLUX and SD 3.5 Large.
- You switch between models all day. Loading a 24 GB FLUX transformer from disk takes time. On a 96 GB RTX PRO 6000 you can keep FLUX, SDXL and a video model resident.
- You serve users who are waiting. A person watching a progress bar values 9 seconds over 18. For an API with steady traffic, the faster card can be worth its premium.
- You generate video. Video models are an order of magnitude heavier than image models; 80 GB is the comfortable floor for the larger ones. See what GPU you need for AI video generation.
When none of these apply, more GPU just finishes the same job sooner while costing more. Two RTX 4090s usually beat one H100 for bulk image throughput per pound; how to generate images faster with multiple GPUs shows how to split the work.
What about the RTX 5090, A100 and older cards?
Each has a place, with caveats.
- RTX 5090. NVIDIA's Blackwell consumer card has 32 GB of GDDR7 at 1,792 GB/s, a real step up from the 4090 for FLUX. We do not rent it; for that money and memory we would put you on a 4090 for price or an RTX PRO 6000 for 96 GB of Blackwell.
- A100 80GB. Plenty of memory and bandwidth, but Ampere has no FP8 tensor cores, so FP8 checkpoints save VRAM without speeding up. It is a good training card for LoRAs and a sensible pick when 80 GB matters more than per-image speed.
- RTX 3090 / 3090 Ti. 24 GB on an older architecture without FP8. Still a capable second-hand card for SDXL at home.
- 8–12 GB cards. Fine for SD 1.5 and SDXL; FLUX only with 4-bit weights.
NVIDIA's product pages list exact specifications, for example the L40S and H100.
Should you buy a GPU or rent one for image generation?
Buy if you will keep a card busy for several hours on most days for a year or more; rent if you generate in bursts, need more than 24 GB, or want to try a model before committing. Image generation is usually bursty: an afternoon of iteration, then nothing for a week. That favours renting by the minute.
A rough break-even: divide the purchase price of a card by the hourly rental price of the same card. That is the number of hours you would need to use it before owning beats renting, before electricity, the host PC and resale value. Our renting versus buying GPUs guide works through that with real figures, and how to choose a GPU covers the wider decision.
How do you check a GPU is the right one before committing?
Test on the real workflow for an hour before you scale up. On a rented machine that costs an hour of GPU time.
- Launch the smallest card you think will work.
- Load your actual workflow: the model, LoRAs, ControlNets and resolution you use in production.
- Run
nvidia-smi --query-gpu=memory.used,memory.total,utilization.gpu --format=csv -l 2in a second terminal while you generate. Peak memory used tells you your headroom; utilisation near 100% tells you the GPU, not your code, is the bottleneck. - Time ten images after the first one (the first includes loading).
- Put those seconds into the cost formula above and compare cards.
If memory sits above 90% of the total, move up a size or quantise. If utilisation is low, fix the pipeline (batching, data loading) before paying for a faster card.
When does renting from Wandering Giants Compute fit?
Renting from us fits when you want to match the GPU to the model and change your mind cheaply. You can launch a 24 GB RTX 4090, a 48 GB L40S, an 80 GB A100 or H100, or a 96 GB RTX PRO 6000 Blackwell with root access, Ubuntu, CUDA and PyTorch ready, and pay by the minute from prepaid credit. If credit runs out the machine stops itself, so a forgotten ComfyUI session cannot run up a bill. Prices show in your own currency with UK VAT included.
It is not the cheapest per hour; marketplaces such as Vast.ai list 4090s for less. And we do not offer spot instances or serverless autoscaling. If you want a clean, private machine you can reshape in minutes, compare our GPUs and prices and start with the card in the "Recommended" column above.
Frequently asked questions
Is 12 GB of VRAM enough for AI image generation?
12 GB is enough for SD 1.5 and SDXL image generation, and for FLUX.1 with 4-bit weights. It gets tight for SDXL LoRA training, ControlNet stacks and FLUX in FP8. 16 GB is more comfortable; 24 GB removes most limits for still images.
Is the RTX 4090 good for Stable Diffusion and FLUX?
Yes. Its 24 GB of GDDR6X and Ada tensor cores with FP8 make it the usual best value for SDXL and FLUX.1 in FP8. It is often cheaper per image than an H100, because the H100's extra speed costs more per hour than it saves per image.
Do I need an H100 for image generation?
Rarely. An H100 is roughly 1.5–2 times faster per image than an RTX 4090 for SDXL and FLUX (estimate), but it costs several times as much per hour. It makes sense for a busy production API that needs low latency, or when 80 GB lets you keep several large models loaded.
What GPU do I need to train a FLUX LoRA?
With FP8 or quantised base weights and gradient checkpointing, FLUX LoRA training fits on 24 GB, slowly. 40–48 GB is comfortable and allows larger batch sizes and resolutions. Tools such as kohya-ss sd-scripts and ostris ai-toolkit document their own minimums.
Does memory bandwidth matter for image generation?
Less than for LLMs. Diffusion models are more compute-bound, so tensor-core throughput and FP8 support matter as much as bandwidth. That is why the L40S, with lower bandwidth than an RTX 4090, is not faster per image despite being a data-centre card.
Can I use AMD or Apple GPUs for Stable Diffusion?
Yes, with more friction. ComfyUI and diffusers support Apple silicon through PyTorch's MPS backend and AMD cards through ROCm, but most guides, custom nodes and optimisations assume NVIDIA and CUDA. We rent NVIDIA GPUs only.
Rent the GPU for this, by the minute.
Rent the GPU that matches your model: an RTX 4090 for SDXL and FP8 FLUX, an L40S for full-precision FLUX, or 96 GB of Blackwell for everything at once, all 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
- Complete guideHow to Run Stable Diffusion on a Cloud GPU
- GuideHow Much VRAM Do You Need for Stable Diffusion and FLUX?
- ComparisonBest RTX 4090 Cloud Rental Providers
- ComparisonBest L40S GPU Rental Providers
- GuideHow to Choose the Right GPU for Your AI Workload
- Head to headRenting vs Buying GPUs: Which Is Better in 2027?
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.