Skip to content

A simple command-line, API-driven, batch-prompter for ComfyUI with a workflow for Flux.

License

Notifications You must be signed in to change notification settings

rbbrdckybk/comfy-batcher

Repository files navigation

ComfyUI Flux Batch Prompter

A simple command-line, API-driven, batch-prompter for ComfyUI with a workflow for FLUX.1 dev.

Features

  • Simple command-line interface allows you to quickly queue up hundreds/thousands of prompts from a plain text file and send them to ComfyUI via the API (the Flux.1 dev workflow is is included as an example; any arbitrary ComfyUI workflow can be adapted by creating a corresponding .map file that defines where the prompt and other values should be pulled from).
  • Control over any/all workflow variables via command-line arguments (see the example workflow and .map file for how to set up): output image resolution, sampler/scheduler, steps, guidance, etc.
  • Automatic authentication via ComfyUI-Login is supported.

Requirements

A working, up-to-date ComfyUI installation that can run a FLUX.1-dev workflow. If you need help getting your ComfyUI set up properly, this is a good guide.

Setup

[1] Navigate to wherever you want ComfyUI Batcher to live, then clone this repository and switch to its directory:

git clone https://github.com/rbbrdckybk/comfy-batcher
cd comfy-batcher

Assuming you're running in the same virtual environment as ComfyUI, you shouldn't need to install anything else.

Usage

Make sure your ComfyUI installation is currently running. You can then run the following to send a couple test prompts:

python comfy-batcher.py --workflow_file flux_workflow_api.json --prompt_file example-prompts.txt

Or simply run the go.bat file if you're on Windows.

ComfyUI should start working on the prompts immediately, and you should see the results in your ComfyUI output folder in a few seconds/minutes (depending on your GPU hardware).

About

A simple command-line, API-driven, batch-prompter for ComfyUI with a workflow for Flux.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project