Nodes Browser

ComfyDeploy: How ComfyUI-fal-Connector works in ComfyUI?

What is ComfyUI-fal-Connector?

The ComfyUI-fal-Connector is a tool designed to provide an integration between ComfyUI and fal. This extension allows users to execute their ComfyUI workflows directly on [a/fal.ai](https://fal.ai/). This enables users to leverage the computational power and resources provided by fal.ai for running their ComfyUI workflows.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for ComfyUI-fal-Connector and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-fal-Connector

The ComfyUI-fal-Connector is a tool designed to provide an integration between ComfyUI and fal. This extension allows users to execute their ComfyUI workflows directly on fal.ai. This enables users to leverage the computational power and resources provided by fal.ai for running their ComfyUI workflows.

Usage

Installation:

  1. Cloning the required repositories: Clone the ComfyUI-fal and install the required dependencies using the provided requirements.txt file. ComfyUI-fal repository includes all the necessary custom extensions including this one.
git clone --recursive https://github.com/badayvedat/ComfyUI-fal.git

cd ComfyUI-fal

pip install -r requirements.txt
  1. Set up a fal API key: Generate an API key from fal dashboard and add it to the fal-config.ini file in the ComfyUI-fal/custom_nodes/ComfyUI-fal-Connector directory.

[!WARNING] The fal-config.ini file is not in the root directory of the ComfyUI-fal repository, but in the ComfyUI-fal/custom_nodes/ComfyUI-fal-Connector directory.

  1. Start the Comfy Server: Run the main.py file to start the Comfy server and initiate the connector.

  2. Execute Workflows: Use ComfyUI to create and configure your AI workflows. When ready, execute the workflows directly on fal using the connector.

How to use it outside of ComfyUI?

After you set up a workflow, and made sure it is working properly. You can generate a "fal format" using Save as fal format button. Then you can post the generated JSON to https://fal.run/fal-ai/comfy-server to execute it and obtain the results.