MCPcopy Index your code
hub / github.com/black-forest-labs/bfl-comfy-nodes

github.com/black-forest-labs/bfl-comfy-nodes @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
34 symbols 99 edges 2 files 0 documented · 0% updated 17mo ago★ 9011 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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_nodes directory.

Step 2: Set Up Your BFL API Key

There are two ways to provide your key to ComfyUI:

  1. Environment Variable Method (Recommended)
    • Export your BFL API key as an environment variable: bash export BFL_API_KEY=<your_api_key_here>
  2. Text File Method
    • Alternatively, insert your API key into a file named bfl_api_key.txt.
    • Ensure that the bfl_api_key.txt file is placed in the same directory as bfl_api.py.

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:

ComfyUI_temp_qkhdn_00005_

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.txt file.
  • Node Not Appearing: Confirm that bfl_api.py is placed somewhere in ComfyUI/custom_nodes and restart ComfyUI.

For more information about the Black Forest Labs API, visit the Black Forest Labs API.


Core symbols most depended-on inside this repo

_convert_image_to_base64
called by 12
bfl_api.py
call
called by 11
bfl_api.py
_process_image_response
called by 2
bfl_api.py
_convert_mask_to_base64
called by 2
bfl_api.py
get_api_key
called by 1
bfl_api.py
_make_request
called by 1
bfl_api.py
_handle_response
called by 1
bfl_api.py
_poll_for_result
called by 1
bfl_api.py

Shape

Method 20
Class 13
Function 1

Languages

Python100%

Modules by API surface

bfl_api.py34 symbols

For agents

$ claude mcp add bfl-comfy-nodes \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact