5.2 KiB
One Button Prompt for Flux in ComfyUI
Summary
This is a node for generating Flux prompts with one click in ComfyUI.
📣 Updates
[2025-02-19] ⚒️: Support local DeepSeek R1.
DeepScaleR-1.5B-Preview Exceeding the performance of OpenAI's O1 Preview. Manually download the model and all configuration files to ComfyUI\models\LLM\DeepScaleR-1.5B-Preview to use
-Advanced automatic prompt usage:

This way, { a beautiful girl | a handsome man | a sexy woman | a naughty child | a future interstellar animal | a transportation vehicle| a space vehicle | A fantastic building | a landscape of lake and mountain | a Chinese landscape| a sea landscape| a city landscape} will set the theme and automatically randomly select a theme to generate prompt.
-Leave more usage options to you to develop on your own.
[2025-01-21]⚒️:
-
txtfile support//comments: The line for comments will be ignored. -
Add more prompts (human and poses):
[2025-01-10]⚒️:
-
human_pose → pose: Any subject can set pose. Please promptly change the file name
human_posetopose. -
Add 4
add_files to record the good prompt words I have found. You can also share your prompt words and submit an PR. -
Add
Nonetosubjectto make it optional, so that custom subject can be fixed inlora_trigger_or_prefixto generate images under the same subject and win prizes. -
To add a testing mode, please put the prompts you need to test into the file
test.txt(The first time you need to create a new one), and then turn on the testing mode to test each prompt in sequence. Note: During testing mode, all options except for the customlora_trigger_or_prefixare invalid. f you are running the test automatically, after all prompts are completed, switch to a random generated image.
Usage
- If "human" is selected, it will generate only the human-related prompt.
- If "other" is selected, it will generate only the other-related prompt.
- If "dual_subject" is selected, it will include both of the above.
- If "pose" is enabled, it will generate a subject pose prompt.
- If "style" is enabled, it will generate a style prompt.
- lora_trigger_or_prefix are optional and can be customized.
- If you have modified the custom file during the generation images, please enable refresh to update it, without having to restart the software
- If the seed is fixed, it will generate the same fixed prompt.
Example Prompt:
(MW:1.2), a beautiful girl, fall asleep, A beautiful lovely alpaca, naive art
(MW:1.2)is the Lora trigger word.a beautiful girlis the human.fall asleepis the pose.A beautiful lovely alpacais the other.naive artis the style.
Custom Subjects, Poses, and Styles
-
Create four files under the folder
ComfyUI\custom_nodes\ComfyUI_OneButtonPrompt_Flux\txtfiles. -
Input the corresponding content into each file to generate your custom subject, pose, and style.
-
The
prompt_words.xlsxfile contains prompts I gathered a long time ago when experimenting with Disco Diffusion and SD 1.5. You can refer to it for ideas.
Note: Be sure to create new files and modify them freely; this will not affect the node's functionality or future updates.
Automatic Image Generation
If you want to automatically generate images while your computer is running, select Queue (On Change) and click Start. Workflow in workflow_example.
Using with Prompt Enhancer
The enhancer of prompt has a poor effect in some cases, completely destroying the style and artistic conception of the prompt. It is recommended to enable it during the lottery
ComfyUI-Fluxpromptenhancer: https://github.com/marduk191/ComfyUI-Fluxpromptenhancer
Thank you
Thank you to the amazing OneButtonPrompt for inspiration.










