Tested: Run SDXL and H3-Image on Colab’s free T4 at zero cost
Colab’s free tier provides a 16 GB T4, requires no credit card, and allows sessions of up to 12 hours. SDXL: 1024×1024, 50 steps, with the prompt “a fluffy penguin wearing a mint-green Tang suit”; generated an image in one go, with no HF token needed. H3-Image: The full version requires 22 GB of VRAM, which the T4 can’t handle. Instead, use the Q4_K_M quantized version (about 33 GB across three files) with stable-diffusion.cpp’s sd-cli. It takes 6 steps to generate an image, with each image taking about 3 minutes (75 seconds for encoding + 85 seconds for sampling + 10 seconds for decoding). Note: The free tier doesn’t allow you to bypass the notebook interface to open the ComfyUI web UI, and violations may get your account suspended. To use ComfyUI, you’ll need a paid tier. Google doesn’t publish a fixed quota for Colab; if you exceed it, you’ll see a message saying you can’t connect to a GPU. The quota resets after 1–5 days.