Custom nodes for using Flux models with fal API in ComfyUI with only one API Key for all.
-
Navigate to your ComfyUI custom nodes directory:
cd custom_nodes
-
Clone this repository:
git clone https://github.com/gokayfem/ComfyUI-fal-API.git
-
Install the required dependencies:
pip install -r requirements.txt
-
Get your fal API key from fal.ai
-
Open the
config.ini
file in the root directory of this project -
Replace
<your_fal_api_key_here>
with your actual fal API key:[API] FAL_KEY = your_actual_api_key
After installation and configuration, restart ComfyUI. The new nodes will be available in the node browser under the "FAL" category.
- Flux Pro (fal): Generate high-quality images using the Flux Pro model
- Flux Dev (fal): Use the development version of Flux for image generation
- Flux Schnell (fal): Fast image generation with Flux Schnell
- Flux Pro 1.1 (fal): Latest version of Flux Pro for image generation
- Flux General (fal): ControlNets, Ipadapters, Loras for Flux Dev
- Kling Video Generation (fal): Generate videos using the Kling model
- Kling Pro Video Generation (fal): Advanced video generation with Kling Pro
- Runway Gen3 Image-to-Video (fal): Convert images to videos using Runway Gen3
- Luma Dream Machine (fal): Create videos with Luma Dream Machine
- Load Video from URL: Load and process videos from a given URL
- LLM (fal): Large Language Model for text generation and processing
- Available models:
- google/gemini-flash-1.5-8b
- anthropic/claude-3.5-sonnet
- anthropic/claude-3-haiku
- google/gemini-pro-1.5
- google/gemini-flash-1.5
- meta-llama/llama-3.2-1b-instruct
- meta-llama/llama-3.2-3b-instruct
- meta-llama/llama-3.1-8b-instruct
- meta-llama/llama-3.1-70b-instruct
- openai/gpt-4o-mini
- openai/gpt-4o
- Available models:
- VLM (fal): Vision Language Model for image understanding and text generation
- Available models:
- google/gemini-flash-1.5-8b
- anthropic/claude-3.5-sonnet
- anthropic/claude-3-haiku
- google/gemini-pro-1.5
- google/gemini-flash-1.5
- openai/gpt-4o
- Supports various tasks such as image captioning, visual question answering, and more
- Available models:
If you encounter any errors during installation or usage, try the following:
- Ensure you have the latest version of ComfyUI installed
- Update this custom node package:
cd custom_nodes/ComfyUI-FLUX-fal-API git pull pip install -r requirements.txt
- If you're using ComfyUI Windows Portable, you may need to install fal-client manually:
ComfyUI_windows_portable>.\python_embeded\python.exe -m pip install fal-client
This project is licensed under the Apache License 2.0. See the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you encounter any issues or have questions, please open an issue on the GitHub repository.