Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

Image generation

stable-diffusion-xl-base-1.0: GPU memory and a server to run it

By our estimate stable-diffusion-xl-base-1.0 needs about 10 GB of GPU memory and 120 GB of disk with the ComfyUI template. Below: how the figure is worked out, the servers that fit and what they cost now.

  • Generate in your browserNo code needed: ComfyUI on your own server, opened in your browser, with stable-diffusion-xl-base-1.0 already loaded; type a prompt to get pictures. Ready in about 20 minutes on one RTX 3060, $0.2283 per hour while it runs.
  • Start image generationOr choose the GPU and the settings yourself, step by step.
Read the step-by-step guide

These are estimates from the model's recorded files, not measurements. Real use can need more, for example with longer prompts or several requests at once.

stabilityai/stable-diffusion-xl-base-1.0
GPU memory (estimate)
10 GB
Disk
120 GB
Time until it answers
about 20 min
Cheapest server that fits
$0.2283 per hour

About stable-diffusion-xl-base-1.0

Task
Image generation
Parameters
2.6 B
Stored precision
—
Template that runs it
ComfyUI

The licence is set by the model's publisher; read it on the model's own page. We do not give licence advice.

How to run stable-diffusion-xl-base-1.0 on a GPU

Four steps from an empty account to a running server.

  1. 1

    Start ComfyUI

    Sign up, then start the ComfyUI template with stable-diffusion-xl-base-1.0 already set. There is nothing to install on your computer.

  2. 2

    Pick a GPU with at least 12 GB of memory

    This page's estimate for stable-diffusion-xl-base-1.0 is 10 GB. The cheapest GPU that fits right now is one RTX 3060, $0.2283 per hour.

  3. 3

    Open ComfyUI and type a prompt

    ComfyUI opens in your browser with stable-diffusion-xl-base-1.0 loaded, so you can generate pictures without writing code.

  4. 4

    Stop it when you are done

    A server bills by the hour only while it runs. Stop or delete it from the console and the charge ends.

How much GPU memory stable-diffusion-xl-base-1.0 needs

A model's weights must fit in the memory on the graphics card (GPU memory, or VRAM), with room for the text it is working on. More parameters need more memory. Quantisation stores each weight in fewer bits, for example 4 instead of 16, so the same model needs about a quarter of the memory, with a small loss of quality. What GPU memory is

Estimated GPU memory of stable-diffusion-xl-base-1.0 by build
BuildWeightsCacheOverheadTotal (estimate)
—this page6.5 GB0 GB3 GB10 GB

Estimate: (weights + overhead) ÷ 1 × 1.05, rounded up. Weights are the recorded file sizes, and the overhead is what the serving software needs on top.

The ComfyUI template asks for at least 12 GB of GPU memory, so servers are chosen with 12 GB.

These are estimates from the model's recorded files, not measurements. Real use can need more, for example with longer prompts or several requests at once.

Servers that fit stable-diffusion-xl-base-1.0

Chosen from our live catalogue with at least 12 GB of GPU memory. Prices include the disk the launch uses.

Cheapest that fits

Available

1× RTX 3060, 12 GB GPU memory

$0.2283 per hour, disk included

RTX 3060 plans and prices

Faster option

Available

1× RTX A4000, 16 GB GPU memory

$0.2763 per hour, disk included

RTX A4000 plans and prices

What it costs to run

Estimated cost of one hour and eight hours on the servers that fit
Server1 hour8 hours
1× RTX 3060Cheapest that fits$0.2283$1.826
1× RTX A4000Faster option$0.2763$2.21

Hourly price today with the launch disk included, times 1 and 8. It is an estimate: you pay for the time the server runs and see the exact price before you deploy. Stop the server when you are done.

What you get

ComfyUI in your browser on your own server, protected by a password. Open it from the server's page and generate pictures from a prompt.

Replace SERVER_ADDRESS and API_KEY with the address and key shown on the server's Connect tab.

Launch settings

Deploy the ComfyUI template and set these variables at launch:

MODEL_URL
https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0/resolve/462165984030d82259a11f4367a4eed129e94a7b/sd_xl_base_1.0.safetensors

Questions

How much GPU memory does stable-diffusion-xl-base-1.0 need?

About 10 GB by our estimate: 6.5 GB of weights, 0 GB of cache for 0 tokens and 3 GB of overhead. Servers are chosen with at least 12 GB.

Which GPU do I need for stable-diffusion-xl-base-1.0?

Right now the cheapest of our servers that fits is 1× RTX 3060 with 12 GB of GPU memory.

How long until stable-diffusion-xl-base-1.0 answers?

About 20 minutes after launch by our estimate: the machine starts, 6.9 GB of model files and the serving software download, then the server sets itself up.

How do I use stable-diffusion-xl-base-1.0 once it runs?

In ComfyUI, a web page on your server protected by a password.

Before you start

Two short guides that explain the numbers on this page and the steps to a working server for stable-diffusion-xl-base-1.0.

Ready to try stable-diffusion-xl-base-1.0? Pick a server and start it with the model already set; stop it whenever you like.