How to install Stable Diffusion on any Windows PC

Blue abstract image of a neural networkStable Diffusion

Wondering how to install Stable Diffusion on Windows? We give you the lowdown on how to install the disruptive AI image generation software.

Stable Diffusion is an AI image generator, where you are able to input a prompt, and output an image. You can do this on any PC that has a GPU, though a PC with the latest and greatest graphics cards, like the RTX 40-series will be much more effective than an older card.

Article continues after ad

Much like ChatGPT, Stable Diffusion is one of the most popular artificial intelligence image generators next to alternatives like Adobe Firefly.

The process of installing Stable Diffusion will require some knowledge of the command prompt, but aside from that, it’s a relatively straightforward process that we will be able to walk you through.

1. Install Python on your PC

The first step to getting Stable Diffusion up and running is to install Python on your PC.

  • Download Python 3.10.6 here or on the Microsoft Store.
  • Run the installer and check “Add Python to PATH”. This will allow Python from the command prompt.
  • Go through the setup process to get the software fully installed with any customizations you require.
  • Once the installation is finished, you will see a screen with the message “Setup was successful”.

2. Install Git

Git is a piece of software used to manage repositories on your PC, and is widely used for software development. Getting Git installed will assist in the Stable Diffusion installation process.

Article continues after ad
  • Download Git on Windows here.
  • Follow the instructions on the installer once it is downloaded.

3. Clone Web-UI

Now, this is where it can get complicated, what we’re going to do is get the basics of the Stable Diffusion installation on your PC.

  • Run “command prompt” on your PC
  • Navigate to “C:\Users\X> – “X” denotes your user name. To get there, you can also type “cd %X%” and press enter. This will get you to the right file directory.
  • Paste the following command into the window without quote marks. git clone
  • After running this command, open your file explorer and navigate to your user folder. If successful, you should have a new folder named “stable-diffusion-webui

4. Download a Stable Diffusion model file

Next, you will need to get a Stable Diffusion model file, this is usually several gigabytes, and that’s totally normal, it just might take a while to install.

  • Download a Stable Diffusion model file from HuggingFace here.
  • Navigate to the “stable-diffusion-webui” folder we created in the previous step.
  • Locate the “models” folder, and inside that, open “stable-diffusion”. Inside, there will be a text file.
  • Move the previously-downloaded Stable Diffusion model file to this folder.

5. Set up Web-UI

Finally, you’ll need to set up Web-UI in order to finally run Stable Diffusion. Luckily, this is a relatively simple process.

Article continues after ad
  • Open the “stable-diffusion-wbui” folder we created in Step 3.
  • Run “webui-user.bat”
  • This will open a command prompt window which will then install all of the necessary tools to run Stable Diffusion, this process can take 5-10 minutes.
  • You will know when the process is completed when you see the URL “” in the command prompt window.

6. Run Stable Diffusion

With all of that installed, all you now need to do is open your web browser and paste “” into the address bar. This will then run Stable Diffusion in your browser.

How to use Stable Diffusion

Blue background with vague numerical charactersStable Diffusion

In order to use Stable Diffusion, input a prompt on the WebUI window, which will then generate an image based on that prompt. You’ll need a powerful Nvidia or AMD graphics card in order to create the image. On the UI, you can also adjust things like the size of the image, and how many images you want the software to generate, too.

Article continues after ad

What is Stable Diffusion?

Stable Diffusion is a piece of software with a trained dataset that can turn text prompts into AI-generated images. The generated images can be of almost anything that you can imagine, though it does require some fine prompt tuning in order to get the output that you want.