ComfyUI-FLUX-TOGETHER-API

ComfyUI-FLUX-TOGETHER-API
★ 4

Together.ai集成FLUX模型ComfyUI节点可配置参数
将Together.ai的FLUX图像生成模型集成到ComfyUI,支持步骤、CFG、尺寸、负面提示与重试机制,便于稳定的云端图像生成。
💡 在ComfyUI中直接调用Together.ai的FLUX生成高质量图像。
🍴 2 Forks💻 Python🔄 2024-11-02
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/9d76119b2ef2
📦 requirements.txt
requests>=2.31.0
Pillow>=10.0.0
numpy>=1.24.0
configparser>=5.3.0
together
>=1.3.3
tenacity
>=9.0.0
📄 README

ComfyUI Together.ai FLUX API Node

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.

Features

  • 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
  • Installation

  • 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.txt

    OR From the Comfyui Folder

     ./python_embeded\python.exe -m pip install -r ComfyUI\custom_nodes\ComfyUI-FLUX-TOGETHER-API\requirements.txt

  • Create a config.ini file in the root directory with your Together.ai API key:
  • [API]
    together_api_key = your_api_key_here

    Configuration

  • Get your API key from Together.ai
  • Copy the config.ini.example to config.ini
  • Add your API key to the configuration file
  • Usage

  • 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

    Parameters

    | 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 |

    License

    MIT License – see LICENSE file for details.

    Credits

  • 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
  • Author

    Created by BZcreativ

    Contributing

    Contributions are welcome! Please feel free to submit a Pull Request.

    Example