
How to Run ComfyUI for Free on Google Colab (No GPU Needed)
Want to use ComfyUI for AI image generation but don’t have a GPU? You can run it completely free on Google Colab. In this beginner-friendly guide I’ll set up a ComfyUI environment in the cloud that you can save, reuse, and launch any time, even on a low-end laptop.
What is ComfyUI?
ComfyUI is a powerful node-based interface for Stable Diffusion and other image (and video) generation models. You build workflows by dragging and connecting nodes, which makes it far more visual and flexible than most UIs. The catch is that it normally needs a GPU.
That’s where Colab comes in. Even the free tier gives you a cloud GPU, usually a Tesla T4 with about 12–15 GB of VRAM, which is plenty for many low-VRAM Stable Diffusion models.
Step 1: Copy the notebook and pick a GPU
- Open my ready-made ComfyUI Colab notebook.
- Click File → Save a copy in Drive so you have your own editable copy.
- Go to Runtime → Change runtime type, set the hardware accelerator to T4 GPU, and save.
- Click Connect if it doesn’t connect automatically. You should see around 12–15 GB of GPU memory and over 100 GB of disk.
Step 2: Install ComfyUI
Run the first install cell with the play button. It installs ComfyUI and its dependencies in 2–3 minutes. A ComfyUI folder appears in the file sidebar with the usual subfolders: models, checkpoints, vae, loras, embeddings, and more.
Optional: to keep models between sessions, untick the update option and enable Google Drive mounting so models are stored in your Drive instead of the temporary Colab disk.
Step 3: Download models
The notebook includes example cells that download models from Civitai or Hugging Face. One downloads a Ghibli-style LoRA .safetensors file into the LoRAs folder, and you can expand the folder in the sidebar to confirm it arrived. To add any other model, copy its download link and use wget in a new cell, pointing at the right folder:
!wget "MODEL_DOWNLOAD_URL" -O /content/ComfyUI/models/checkpoints/model-name.safetensorsChange the folder to match the model type (checkpoints, loras, vae, and so on). Stick to low-VRAM models on the free tier, such as SD 1.5-based checkpoints. I keep a list of low-VRAM models that work well on free Colab.
Step 4: Launch ComfyUI
Scroll to the last cell, Run ComfyUI, and press play. After a few seconds a link appears in the output. Open it and the ComfyUI interface loads in your browser, running on Colab’s GPU.
Step 5: Load a workflow and fix missing models
Open the Templates library and pick a workflow, such as text-to-image. If it needs models you don’t have, ComfyUI shows a dialog listing each missing file, its download URL, and the folder it belongs in. To fix it:
- Stop the Run ComfyUI cell.
- Add a new code cell above it and run a
wgetcommand for each missing model, using the URL and folder from the dialog. - Run the ComfyUI cell again and open the new link. Your template reloads with the models in place (or reopen it from Templates).
Step 6: Generate your first image
With the template loaded, the prompts and models are already wired up. Click Run. The job joins the queue, and after a short wait your image appears in the output node. Right-click to save it to your computer, or save outputs to Google Drive if you mounted it.
Tips for free Colab
- Free sessions time out. Save your notebook copy and keep important models in Drive.
- Stay within about 15 GB of VRAM. Large SDXL or video models may not fit.
- You can import your own workflows or build new ones directly in the cloud interface.
FAQ
Is running ComfyUI on Colab really free?
Yes, on the free Colab tier with a T4 GPU, within Google’s usage limits.
Will my models be saved?
Only if you mount Google Drive and store them there. The default Colab disk is wiped when the session ends.