Black Forest Labs API Nodes
ComfyUI nodes for Black Forest Labs API Services
Nodes (12)
Canny control without the local ControlNet stack
Canny edges, but now it's your face in the frame
Depth-conditioned FLUX with no depth model download
Depth control that keeps your finetuned subject
The open-weights model, as a paid API call — and when that's still worth it
The masked inpainter that actually respects your mask
Inpainting with a model that knows your subject
The uncompromised base model, pre-distillation
Your finetune at full flagship strength
The generation most people skipped
Text in, magazine cover out
Your finetune at the no-dials flagship
Black Forest Labs API Nodes for ComfyUI
This setup allows you to integrate and access BFL's API directly from within your ComfyUI workflow.
Installation Instructions
Step 1: Add bfl_api.py to Your ComfyUI Environment
- Clone this repo in your
ComfyUI/custom_nodesdirectory.
Step 2: Set Up Your BFL API Key
-
To authenticate your requests, you need to provide your BFL API key from the Black Forest Labs API.
There are two ways to provide your key to ComfyUI:
- Environment Variable Method (Recommended)
- Export your BFL API key as an environment variable:
export BFL_API_KEY=<your_api_key_here>
- Export your BFL API key as an environment variable:
- Text File Method
- Alternatively, insert your API key into a file named
bfl_api_key.txt. - Ensure that the
bfl_api_key.txtfile is placed in the same directory asbfl_api.py.
- Alternatively, insert your API key into a file named
- Environment Variable Method (Recommended)
Step 3: Restart ComfyUI
- Restart ComfyUI if already open
Step 4: Insert a FLUX API Node into Your Workflow
-
Once ComfyUI has restarted, you can now insert a FLUX API Node such as FLUX 1.1 [pro] into your workflow.
-
To get started quickly, drag and drop the following node image into your workflow:
Step 5: Enjoy the nodes
Troubleshooting
- Invalid API Key Error: Ensure your API key is correctly set either in the environment variable or the
bfl_api_key.txtfile. - Node Not Appearing: Confirm that
bfl_api.pyis placed somewhere inComfyUI/custom_nodesand restart ComfyUI.
For more information about the Black Forest Labs API, visit the Black Forest Labs API.