A no-nonsense guide to renting powerful GPUs, launching ComfyUI, and actually enjoying the ride.
When you first dip your toes into the world of AI tools, everything feels like a smooth ride. You type a prompt into ChatGPT, and there you go โ instant results. You show it around โ applause. You click around in Midjourney or Runway, and bam โ pretty images, stuff is moving, no assembly required.
But eventually, you hit a point where you want to go a little deeper.
You donโt just want to use AI โ you want to build with it. Control it. Understand (at least to a degree) how the magic happens. For me, this thought led me down the rabbit hole of ComfyUI.
What Is ComfyUI?
ComfyUI is a free, open-source tool for generating images and videos with AI โ built around a modular, node-based interface. Instead of just typing a prompt and hoping the AI gets it right, you design your own image generation workflows step by step.
ComfyUI is an image generation tool, thatโs free to use. Its node-based UI is not nearly as hard to get into as you might think.
Each block (or โnodeโ) in ComfyUI represents a part of the process โ loading a model, interpreting a prompt, tweaking parameters, generating the image โ and you can connect and customize them however you like.
What makes ComfyUI stand out:
- Itโs free and open-source, meaning anyone can use, extend, or modify it, no subscription needed.
- It gives you much more control over the generation process.
- Itโs powered by Stable Diffusion, but it doesnโt lock you into one way of working.
If youโve ever wanted to peek under the hood of AI image generation and actually build your own system โ ComfyUI lets you do that, without needing to pay for some closed, black-box platform.
The node-based interface might seem a bit daunting at first, but youโll realize quickly, that ComfyUI is a modular, visual sandbox that gives you actual control over what you create โ And thatโs where things get exciting.
How to Get Started with ComfyUI
Technically, thereโs nothing stopping you from downloading ComfyUI to your computer and running it from there โ but get ready to wait. A lot. AI Models like ComfyUI use a lot of your graphics cardโs capacity, and if youโre not running a super-high-end gaming setup, things will be slow.
Especially when youโre still figuring out what all the settings do, waiting several minutes just to get an image full of artifacts isโฆ less than ideal. Thatโs why we will be renting out some GPUs to do the heavy lifting for us. Donโt worry, itโs surprisingly simple and involves no commitment.
When I first got started, this is what came out after 5 minutes of waiting. So better rent a decent GPU.
There are generally two ways to go about it:
One is the just-a-few-clicks-template-way โ simple and fast, but with a little more jank.
The other is a manual CLI based setup โ with all the power, and all the responsibility that comes with it.
Ready? Letโs go.
Setting Up ComfyUI Using a Template
This oneโs pretty simple. Weโll just rent a GPU and get a link to open a pre-installed version of ComfyUI right after. You can start using it immediately โ no setup, no stress. And it really sounds like more commitment than it is. Our provider of choice here is CloudRift.
CloudRift is a GPU provider that lets you rent high-performance models like NVIDIAโs RTX 4090 and RTX 5090 for a decent hourly price. No long-term commitment โ just pay as you go.
When youโre picking a GPU on CloudRift the selection might look different to you, depending on whatโs available, but an RTX 4090 is always a good choice.
Hereโs how to get started:
- Go to โcloudrift.ai and log in.
- Add credits (10 USD is more than enough to get started).
- Click โNewโ to start setting up your instance.
- Select Container Mode.
- Pick your GPU (if youโre not sure, start with the cheapest โ even low-end ones handle basic workflows surprisingly well).
- Under the Select Software tab, choose Recommended.
- Look for the template called ComfyUI-FLUX.1-Schnell under Image Generation. Select it and confirm.
- Click โDeployโ and wait a minute while your instance spins up.
- In the dashboard, youโll see a summary of your instance โ click Connect, then open the link in the window that pops up. There, youโll also find a lot of helpful resources on how to use ComfyUI.
The new browser window that pops up should look a little something like this.
Setting Up ComfyUI Using the CLI (aka the more complex way)
As mentioned before, using the template lets you get started right away. Through the Manager menu in ComfyUI, you can even install updates, additional tools, and plugins relatively easily.
But I found that by setting everything up manually, I got a much better picture of how it all works โ and I could be more intentional and precise with my setup.
So, hereโs the advanced version:
Letโs start with the basics: CLI = Command Line Interface. Itโs a tool that lets you interact with services (like your rented GPU) using text commands instead of clicking buttons. If youโre on a Mac, just open Terminal. On Windows, itโs CMD or PowerShell.
In our case, weโd have to install an additional tool before we get started: the CloudRift CLI โ a lightweight command-line tool that connects to the cloud GPU you rented and lets you deploy applications (like ComfyUI) in just a few lines.Hereโs how to install the CloudRift CLI.
Once thatโs done, go to โcloudrift.ai to rent a GPU and letโs get our hands dirty.
Step 1: Rent a GPU via CloudRift
CloudRift is a GPU provider that lets you rent out models like RTX 4090 and RTX 5090 for a pretty decent price.
- Go to Cloudrift.ai and log in.
- Add Credits
- Choose โNewโ to start setting up your instance.
- Select Container Mode.
- Pick your GPU
- In the โSelect Softwareโ tab, this time, select โNo Containerโ. This gives us a clean slate.
- Click โDeployโ and wait a moment.
Renting your GPU should be pretty straightforward. Under the software tab, choose โNo containerโ.
Step 2: Launch ComfyUI with a Single Command
Now that youโve got your GPU running somewhere in the cloud, letโs access it.
First, open your terminal and make sure youโve installed the CloudRift CLI โ otherwise, the rift command weโre about to use wonโt work.
First, check if your GPUs are actually available by typing:
rift cluster info
and hit enter.
This is what your terminal will show you. Here I rented two RTX 4090. The machine theyโre running on has its own name and ip address, as seen in the first and second column.
Hereโs the command youโll run in your terminal next:
rift docker -x <executor id> run -p 8188 -e WEB_ENABLE_AUTH=false –name comfyui -it –rm ghcr.io/ai-dock/comfyui:latest-cuda
Letโs break it down:
- rift docker: Youโre running Docker on your cloud GPU.
- -x <executor-id>: Optional as long as you only have one instance running โ Replace this with the name from rift cluster info (e.g. my-gpu-01).
- -p 8188: Opens port 8188 so you can access ComfyUI via browser.
- -e WEB_ENABLE_AUTH=false: Disables the login screen for simplicity.
- –name comfyui: Optional โ makes your container easier to reference later.
- -it: Runs the container in interactive mode.
- –rm: Removes the container when you stop it, so it doesn’t take up space.
- ghcr.io/ai-dock/comfyui:latest-cuda: This is the Docker image for ComfyUI (basically the app weโre installing).
Youโll see some logs fly by โ messages about pulling the image, connecting tunnels, etc. Thatโs normal. Give it a minute or two. Congrats, you just set up your first container and installed ComfyUI on it!
Quick Note: Keep It Running
If you close the terminal window now, your container stops running. Just keep it up and open a new terminal window to continue.
Step 3: Confirm Itโs Up
In the new terminal window, use the following command:
rift docker ps
This will list all active containers. If ComfyUI is running, youโll see something like:
Then, open your browser and go to:
http://{node-IP-address}:8188
Replace {node-IP-address} with the IP from rift cluster info (or check the IP listed in your NeuralRack rental details).
This is what you should be seeing about now.
Congrats! Youโve officially launched ComfyUI on a rented GPU. Now letโs make it do something.
Step 4: Download a โCheckpointโ
Before generating images, you need a checkpoint โ a trained model that tells ComfyUI how to turn your prompts into images. Think of it like the โbrainโ of the operation. If ComfyUI is the body, the checkpoint is what actually knows what to draw.
Weโll use DreamShaper, a beginner-friendly model that works great out of the box. You can find other checkpoints on CivitAI.
Run the following to connect to your container:
rift docker exec -it comfyui bash
Now youโre inside the container โ itโs like opening a terminal inside the rented machine.
Next, navigate to the correct folder:
cd /opt/ComfyUI/models/checkpoints/
And then run this to download DreamShaper V8:
wget https://civitai.com/api/download/models/128713 –content-disposition
(obviously, you can exchange this one for any other checkpointโs download link)
This may take a minute or two depending on the model size and internet speed. Youโll see something like:
dreamshaper_8.safetensors 100%[====================>] 1.99G
When thatโs done, exit the container with:
exit
Step 5: Start Generating!
Open your browser (if itโs not already), and go to:
http://{node-IP-address}:8188
You should see ComfyUIโs interface. Load the default text-to-image workflow if itโs not already there.
I went and updated ComfyUI through the manager menu, see here:
After youโre done, make sure your DreamShaper V8 checkpoint is selected in the โLoad Checkpointโ node.
Then comes the magic. Click the top box that says โPromptโ and enter your prompt. The box below is the negative prompt, meaning what you put there, is what you donโt want to be in the image.
Click โQueue Promptโ, wait a few seconds, and there it is: Your first custom image using ComfyUI + a rented GPU.
Iโm a fantasy and video game nerd, so naturally, when presented with the opportunity to create crazy AI generated artwork, my mind goes to something like what you see below. But of course, you can go and put together whatever you fancy (no judgement). You could also try and load different checkpoints from sources like CivitAI. In this case, when you use this command, like you did earlier:
wget https://civitai.com/api/download/models/128713 โ content-disposition
you just replace the link with the download link of whatever model you found.
When youโre done, donโt forget: Shut it down
And one more thing: When youโre done, go to your NeuralRack dashboard and stop the instance there to avoid charges.
TL;DR:
- ComfyUI is a free node-based AI image generation tool you can run in the cloud using CloudRift CLI.
- Renting a GPU via CloudRift gives you the power without the heat (or hardware costs) and significantly increases the speed with which content is created.
- You can start from scratch using a single command, download a model from CivitAI, and generate your first image in minutes.
- The process is surprisingly approachable โ even if the terminal looks scary at first.
Thats all for today. Stay curious, stay scrappy, and donโt be afraid to type weird things into a black box.
Thatโs where the good stuff happens.