A custom node implementation for ComfyUI that integrates with Together.ai's FLUX image generation models. This project is inspired by and adapted from ComfyUI-FLUX-BFL-API to work with the Together.ai API.
- Direct integration with Together.ai's FLUX models
- Support for FLUX.1-schnell-Free model
- Configurable parameters including steps, guidance scale, and dimensions
- Negative prompt support
- Error handling and retry mechanisms
- Clone this repository into your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/BZcreativ/ComfyUI-FLUX-TOGETHER-API.git- Install the required dependencies:
pip install -r requirements.txtOR From the Comfyui Folder
./python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-FLUX-TOGETHER-API\requirements.txt- Create a
config.inifile in the root directory with your Together.ai API key:
[API]
together_api_key = your_api_key_here- Get your API key from Together.ai
- Copy the
config.ini.exampletoconfig.ini - Add your API key to the configuration file
- Start ComfyUI
- Find the "Together API Node" in the node browser
- Configure the parameters:
- Prompt: Your image generation prompt
- Negative Prompt: Elements to avoid in the generation
- Steps: Generation steps (1-100)
- Width: Image width (512-2048)
- Height: Image height (512-2048)
- Seed: Generation seed
- CFG: Guidance scale (0.0-20.0)
For detailed usage instructions, see USAGE.md
| Parameter | Type | Range | Default | Description |
|---|---|---|---|---|
| prompt | string | - | "" | Main generation prompt |
| negative_prompt | string | - | "" | Elements to avoid |
| steps | integer | 1-100 | 20 | Number of generation steps |
| width | integer | 512-2048 | 1024 | Image width |
| height | integer | 512-2048 | 1024 | Image height |
| seed | integer | 0-MAX_INT | 0 | Generation seed |
| cfg | float | 0.0-20.0 | 7.0 | Guidance scale |
MIT License - see LICENSE file for details.
- This project is inspired by and adapted from ComfyUI-FLUX-BFL-API
- Together.ai for providing the FLUX API
- ComfyUI team for the amazing framework
Created by BZcreativ
Contributions are welcome! Please feel free to submit a Pull Request.
