https://github.com/rbbrdckybk/comfy-batcher
A simple command-line, API-driven, batch-prompter for ComfyUI with a workflow for Flux.
https://github.com/rbbrdckybk/comfy-batcher
api-client batch-processing comfyui flux
Last synced: 9 months ago
JSON representation
A simple command-line, API-driven, batch-prompter for ComfyUI with a workflow for Flux.
- Host: GitHub
- URL: https://github.com/rbbrdckybk/comfy-batcher
- Owner: rbbrdckybk
- License: mit
- Created: 2024-08-03T00:47:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-29T05:11:05.000Z (about 1 year ago)
- Last Synced: 2025-06-26T17:51:43.772Z (11 months ago)
- Topics: api-client, batch-processing, comfyui, flux
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ComfyUI Flux Batch Prompter
A simple command-line, API-driven, batch-prompter for ComfyUI with a workflow for [FLUX.1 dev](https://huggingface.co/black-forest-labs/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](https://github.com/liusida/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](https://www.reddit.com/r/StableDiffusion/comments/1ehv1mh/running_flow1_dev_on_12gb_vram_observation_on/).
# 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).