Flux Prompt Generator is a ComfyUI node that provides a flexible and customizable prompt generator for generating detailed and creative prompts for image generation models. based on the work by Aitrepreneur found here Flux Prompt Generator python code and modified to work with ComfyUI by FairyRoot
The Enhanced and Feature-Complete Version of the Original Flux Prompt Generator
This is a significantly improved fork of the Version 2.0 introduces substantial enhancements, making it the most versatile and actively maintained version available for prompt generation in ComfyUI and other node-based systems.
This fork builds upon the original tool and adds extensive new functionality, including:
-
Support for 30+ Customization Categories:
Now you can generate highly detailed prompts with fields such as:- Roles (e.g., "model", "photographer")
- Lighting (e.g., "soft lighting", "dramatic shadows")
- Clothing (e.g., "casual outfit", "futuristic armor")
- Expressions (e.g., "smiling warmly", "serious")
- Hair Color, Body Markings, Accessories, and many more.
-
Improved Prompt Generation Logic:
- Attributes are appended sequentially for clean, readable prompts.
- User-defined custom text and subject fields are always prioritized.
- Fields marked as "random" automatically select valid options.
-
User-Friendly Validation:
- Only valid options are used, ensuring consistent and error-free prompts.
- Disabled fields are gracefully ignored.
- cd to the custom_nodes folder inside of ComfyUI directory
- cmd in the address bar, then use this command:
- Or from a Linux terminal
- Run the following command. Restart ComfyUI
git clone https://github.com/kirbythe1/Flux-Prompt-Generator.git
-
Add the "Flux Prompt Generator" node to your ComfyUI workflow.
-
Configure the desired parameters:
- Seed: Controls the randomness of the generator.
- Custom: Add any custom text to the prompt.
- Subject: Specify the main subject of the image.
- Artform: Choose the desired art form (Photography, Digital Art, etc.).
-
Connect the output of the node to a text-to-image model (like Flux or Stable Diffusion...etc) to generate images based on the generated prompt.
-
Output Example: With Version 2.0, here’s an example of the prompt you can generate:
The node would then generate a prompt and image similar to:
Add the show text node to see the exact prompts that are generated
[(https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git)]
Fast way to generate some concept images / experiments etc
Your support is appreciated:
☕ Support My Work If you enjoy this enhanced version and would like to support its ongoing development: [(https://buymeacoffee.com/kirbythe13)]
To support the original author: FairyRoot at the following addresses:
USDt (TRC20): TGCVbSSJbwL5nyXqMuKY839LJ5q5ygn2uS
BTC: 13GS1ixn2uQAmFQkte6qA5p1MQtMXre6MT
ETH (ERC20): 0xdbc7a7dafbb333773a5866ccf7a74da15ee654cc
LTC: Ldb6SDxUMEdYQQfRhSA3zi4dCUtfUdsPou
- GitHub: (https://github.com/kirbythe1)
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or features.