Run ComfyStream
Stream live AI video with ComfyStream using a ComfyUI workflow
ComfyStream (API Server)
Before starting ComfyStream UI, we must start the ComfyStream API server on a system with a GPU
- Activate the
comfystream
environment and change to theComfyStream
directory
- Start ComfyStream
Run ComfyStream (UI)
ComfyStream UI must be ran on a system with physical or virtual camera. If you are running ComfyStream API locally, you can use the same folder for UI.
- Clone ComfyStream UI:
- Run the following command to install the project’s dependencies using npm:
This will download and set up all required Node.js modules.
If you run encounter packages install errors, check the installed versions of node:
node -v && npm -v
Switch to the correct node version if necessary:
nvm use 18
- From the
comfystream/ui
directory, start ComfyStream UI:
- Open a browser and navigate to http://localhost:3000
Obtaining the Stream URL
The Stream URL in ComfyStream UI should be set to the url and external port for the ComfyStream API environment.
- Log into RunPod and go the Pods page.
- Click on the Connect button.
- Click the TCP Port Mappings tab.
- Copy the IP address and external port for 8889, to create the url
http://IP:PORT
Customizing the default stream URL
If you are not running ComfyStream UI on the same host as the ComfyStream API, you can customize the default stream URL to ease testing.
Create a new .env
file with your running ComfyStream API URL:
Supported workflows
Refer to Available ComfyUI Nodes for sample workflows to import into ComfyStream and ComfyUI
examples
directory of most node repositories