# Generate images with ComfyUI

You will run **ComfyUI**, a node-based image tool, on a rented GPU and make a picture from a text prompt with clicks only: the template installs ComfyUI and downloads a starter image model for you. You need credit; an SSH key is optional.

## 1. Deploy the server

1. Open **Deploy**, sort by **Price, low to high** and pick a GPU with **VRAM** of 12 GB or more. Select **Continue**.
2. Above the template cards, select the **Image** filter. Select the **ComfyUI** card, then **Continue**.
3. Name the server `images-test` and keep the disk size. An SSH key is optional.
4. Check **Per hour** on the review step and select **Start my server**.

You can also start it from **Quick start**: choose **Generate images**, check the price and select **Start my server**. Quick start picks ComfyUI and the cheapest server in stock that fits.

> [!NOTE]
> At the time of writing the ComfyUI template does not run on RTX 50-series and other Blackwell GPUs. **Deploy** marks those configurations with **This template does not run on … GPUs yet**; choose another GPU.

## 2. Wait for ComfyUI

The first start installs ComfyUI and downloads the starter model, Stable Diffusion 1.5 (`v1-5-pruned-emaonly-fp16.safetensors`, about 2 GB). Meanwhile the server page shows **Finishing setup** with the download progress: the server already runs and is billed, but ComfyUI cannot make pictures yet. When that notice goes away and **What now?** appears, it is ready, usually a few minutes after **Running**. We also send you an e-mail.

## 3. Make a picture

1. On the **Connect** tab, select **Open app**. The browser asks you to sign in: the user name is `admin` and the password is on the **Connect** tab, under **Sign in with**.
2. ComfyUI opens its **Templates** window. Select **Getting Started**, then the **Image Generation** card. A ready-made graph opens, already set to the starter model.
3. In the **Step 2 - Prompt** group, replace the text in the upper (green) box with your prompt, for example `a lighthouse at sunrise, watercolor`.
4. Select **Run** at the top right.

A first picture takes longer because the model is loaded onto the GPU; later pictures take seconds. The result appears in the **Save Image** node on the right. Right-click it and choose **Save Image** to keep it. Pictures are also kept on the server in `/workspace/ComfyUI/output`.

> [!NOTE]
> The starter model is published under the CreativeML OpenRAIL-M licence, which allows commercial use but forbids some uses. Read it on the model's page before you publish pictures. To start with another checkpoint, put its download address in the `MODEL_URL` variable when you launch, or leave it empty to download nothing.

## Add your own models

ComfyUI keeps its models in folders under `/workspace/ComfyUI/models` on the server's disk. The ones you need first:

| Folder | What goes there |
|---|---|
| `checkpoints` | Main image models (`.safetensors` or `.ckpt` files). The starter model is here |
| `loras` | LoRA add-ons that change a style or subject |
| `vae` | VAE files, when a model asks for a separate one |

The folder names are ComfyUI's own; its documentation lists the others. To add a model:

1. Copy the download address of the file from the model's page. Read the model's licence first.
2. Open a terminal on the server over SSH, with the command on the **Connect** tab. This needs an SSH key on the server.
   If you turned on **Browser terminal** on the review step, the server's **Connect** tab (**Open terminal**) works too, without a key.
3. Run, with your address in place of `MODEL_ADDRESS`:

```bash
cd /workspace/ComfyUI/models/checkpoints
curl -fL -O MODEL_ADDRESS
```

4. Reload the ComfyUI page, then pick the new file in the **Load Checkpoint** node.

A model that needs a login to download also needs your access token; follow the model page's instructions. Bigger models need more GPU memory and disk: see [Which GPU do I need?](/docs/tutorial-which-gpu). Files on the disk stay after a stop, and a model already in `checkpoints` is not downloaded again at the next start.

## Prefer Forge?

The **Stable Diffusion WebUI Forge** template has its web page on port 7860 and a longer first start. It comes without a model: download a checkpoint into `/workspace/stable-diffusion-webui-forge/models/Stable-diffusion/` yourself, for example in a terminal on the server, then choose it at the top of the page.

## When you are done: stop or delete

- **Stop** ends the compute charge. The disk keeps ComfyUI, the model and your pictures, and is still charged. After **Start**, read the new address on the **Connect** tab.
- **Destroy** ends every charge and deletes the disk. Copy your pictures first. The next server downloads the model again. See [Start, stop and restart](/docs/start-stop-restart).

## Next

- [Move data in and out](/docs/tutorial-move-data)
- [Save money](/docs/tutorial-save-money)
