Invoke AI Brev Template

In this guide, we'll show you how you can run the InvokeAI Stable Diffusion WebUI out of the box. We've pre-configured it to run without issues on Brev!

  1. Sign up for an account

  2. It'll redirect you to an instance creation page pre-configured with the defaults you need. (We recommend sticking to the default GPU - it's the cheapest that'll do inference with the Stable Diffusion model).

  3. At the bottom, add a payment method...we give you 30 minutes free of GPU use but we just need to make sure people don't abuse our systems 🙂

  4. Hit create!

Installing Brev:

Once your instance is created install Brev:

brew install brevdev/homebrew-brev/brev && brev login

If you're not on Mac, install the CLI from here.

Setting up InvokeAI:

Open your new invokeai Brev environment:

brev open invokeai --wait

This will boot you right into the InvokeAI repo.

Run the install script (we recommend sticking with the default options suggested by the installer):


Cd into the generated directory:

cd /home/ubuntu/invokeai

Run invoke:


This will start the server and VSCode will automatically forward the port to your local machine.