What you’ll learn
In this tutorial, you’ll learn how to:- Deploy a Bnode with ComfyUI pre-installed.
- Connect to the ComfyUI web interface.
- Browse pre-configured workflow templates.
- Install new models to your Bnode.
- Generate an image.
Requirements
Before you begin, you’ll need:- A Brightnode account.
- At least $10 in Brightnode credits.
- A basic understanding of AI image generation.
Step 1: Deploy a ComfyUI Bnode
First, you’ll deploy a Bnode using a template that pre-installs ComfyUI and the ComfyUI Manager plugin:1
Deploy a Bnode from the ComfyUI template
Go to the Better Comfy Slim template in the Brightnode console and click Deploy.
There are several ComfyUI templates available in the Brightnode console, many with pre-installed models. We’re using this one because it’s extremely lightweight, but it comes with the ComfyUI Manager plugin pre-installed so you can easily install the specific models/bnodes you need after deployment.
2
Configure your Bnode
Configure your Bnode with these settings:
- GPU selection: Choose an L40 or RTX 4090 for optimal performance with SDXL-Turbo. Lower VRAM GPUs may work for smaller models.
- Storage: The default container and volume disk sizes set by the template should be sufficient for SDXL-Turbo. You can also add a network volume to your Bnode if you want persistent storage.
- Deployment type: Select On-Demand for flexibility.
3
Deploy and wait
Click Deploy On-Demand to create your Bnode.The Bnode can take up to 30 minutes to initialize the container and start the ComfyUI HTTP service.
Step 2: Open the ComfyUI interface
Once your Bnode has finished initializing, you can open the ComfyUI interface:1
Open your Bnode in the console
Go to the Bnodes section in the Brightnode console, then find your deployed ComfyUI Bnode and expand it.
2
Start the ComfyUI service
Click Connect on your Bnode, then select the last HTTP service button in the list, labeled Connect to HTTP Service [Port 8188].This will open the ComfyUI interface in a new browser tab. The URL follows the format:
https://[POD_ID]-8188.proxy.brightnode.net.If you see the label “Not Ready” on the HTTP service button, or you get a “Bad Gateway” error when first connecting, wait 2–3 minutes for the service to fully start, then refresh the page.
Step 3: Load a workflow template
ComfyUI workflows consist of a series of bnodes that are connected to each other to create a AI generation pipeline. Rather than creating our own workflow from scratch, we’ll load a pre-configured workflow that was created for the specific model we intend to use:1
Open the template browser
When you first open the ComfyUI interface, the template browser should open automatically. If it doesn’t, click the Workflow button in the top right corner of the ComfyUI interface, then select Browse Templates.
2
Load the SDXL-Turbo template
In the sidebar to the left of the browser, select the Image tab. Find the SDXL-Turbo template and click on it to load a basic image generation workflow.
Step 4: Install the SDXL-Turbo model
As soon as you load the workflow, you’ll see a popup labeled Missing Models. This happens because the Bnode template we deployed doesn’t come pre-installed with any models, so we’ll need to install them now. Rather than clicking the download button (which downloads the missing model to your local machine), use the ComfyUI Manager plugin to install the missing model directly onto the Bnode:1
Open the ComfyUI Manager
Close the Missing Models popup by clicking the X in the top right corner. Then click Manager in the top right of the ComfyUI interface, and select Model Manager from the list of options.
2
Install the SDXL-Turbo model checkpoint
In the search bar, enter
SDXL-Turbo 1.0 (fp16), then click Install.3
Refresh the interface
Before you can use the model, you’ll need to refresh the ComfyUI interface. You can do this by either refreshing the browser tab where it’s running, or by pressing R.
4
Configure the checkpoint bnode
Find the bnode labeled Load Checkpoint in the workflow. It should be the first bnode on the left side of the canvas.Click on the dropdown menu labeled
ckpt_name and select the SDXL-Turbo model checkpoint you just installed (named SDXL-TURBO/sd_xl_turbo_1.0_fp16.safetensors).Step 5: Generate an image
Your workflow is now ready! Follow these steps to generate an image:1
Customize your prompt
Locate the text input bnode labeled CLIP Text Encode (Prompt) in the workflow.Click on the text field containing the default prompt and replace it with your desired image description.Example prompts:
- “A serene mountain landscape at sunset with a crystal clear lake.”
- “A futuristic cityscape with neon lights and flying vehicles.”
- “A detailed portrait of a robot reading a book in a library.”
2
Start generation
Click Run at the bottom of the workflow (or press Ctrl+Enter) to begin the image generation process.Watch as the workflow progresses through each bnode:
- Text encoding.
- Model loading.
- Image generation steps.
- Final output processing.
The first generation may take a few minutes to complete as the model checkpoint must be loaded. Subsequent generations will be much faster.
3
View your result
The generated image appears in the output bnode when complete.Right-click the image to save it to your local machine, view it at full resolution, or copy it to your clipboard.
Troubleshooting
Here are some common issues you may encounter and possbile solutions:- Connection errors: Wait for the Bnode to fully initialize (up to 30 minutes for initial deployment).
- HTTP service not ready: Wait at least 2 to 3 minutes after Bnode deployment for the HTTP service to fully start. You can also check the Bnode logs in the Brightnode console to look for deployment errors.
- Out of memory errors: Reduce image resolution or batch size in your workflow.
- Slow generation: Make sure you’re using an appropriate GPU for your selected model. See Choose a Bnode for guidance.
Next steps
Once you’re comfortable with basic image generation, explore the ComfyUI documentation to learn how to build more advanced workflows. Here are some ideas for where to start:Experiment with different workflow templates
Use the template browser from Step 3 to test out new models and find a workflow that suits your needs. You can also browse the web for a preconfigured workflow and import it by clicking Workflow in the top right corner of the ComfyUI interface, selecting Open, then selecting the workflow file you want to import. Don’t forget to install any missing models using the model manager. If you need a model that isn’t available in the model manager, you can download it from the web to your local machine, then use the Brightnode CLI to transfer the model files directly into your Bnode’s/workspace/madapps/ComfyUI/models directory.
Create custom workflows
Build your own workflows by:- Right-clicking the canvas to add new bnodes.
- Connecting bnode outputs to inputs by dragging between connection points.
- Saving your custom workflow with Ctrl+S or by clicking Workflow and selecting Save.