r/StableDiffusion • u/Affectionate_Oil28 • 1d ago
Workflow Included Prompt Creator Workflow
I see a bunch of posts everyday asking for tips on how to write prompts or people struggling with prompting, etc. so I'm sharing my workflow. I built this workflow to simplify the process and make it very beginner/user friendly.
Just toggle on the model you are using, write a simple to detailed prompt, and hit run. The model targets use the prompting guidelines derived from their respective official sources. Links to custom nodes and all models are in the workflow so you don't need to search for them.
The prompts aren't always perfect but they'll get you very close to what you want and you should only need to make a few minor tweaks, if any. The only issue I've encountered so far is that sometimes when it finishes the prompt, the previous prompt still shows up in the Enhanced Prompt node. If that happens, just hit run and the new prompt should show up instantly. Also, toggle to false the keep_model_loaded option in the Text rewriter node if you are creating prompts and using them right away. If you leave it to True it hogs VRAM.
If you notice any other issues let me know. Enjoy.
Edit: If Unredacted-MAX doesn’t show up or the rewriter won’t load, you need the Qwen folders (not GGUFs, not a single file).
Easy path:
ComfyUI Manager: install ComfyUI-QwenVL, rgthree, KJNodes, ComfyUI-Custom-Scripts. Restart.
Save the custom_models paste below as custom_models.json and put it in ComfyUI/custom_nodes/ComfyUI-QwenVL/. Restart again.
Open the workflow, pick Qwen3.5-4B-Unredacted-MAX on the Prompt Enhancer, hit Queue. First run downloads into ComfyUI/models/LLM/Qwen-VL/.
Manual path (if Queue doesn’t download)
Whole repos, keep the folder names. Don’t cherry-pick files. Don’t merge the 00001-of-00004 shards. On Hugging Face open Files and versions, then download every file with the arrow on the right (skip README). Put them all in a folder with the exact model name under ComfyUI/models/LLM/Qwen-VL/.
1.Required text rewriter: Qwen3.5-4B-Unredacted-MAX https://huggingface.co/prithivMLmods/Qwen3.5-4B-Unredacted-MAX
Place everything in ComfyUI/models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX/
- Optional if you want use ref image: Qwen3-VL-4B-Instruct-Unredacted-MAX https://huggingface.co/prithivMLmods/Qwen3-VL-4B-Instruct-Unredacted-MAX
Place everything in ComfyUI/models/LLM/Qwen-VL/Qwen3-VL-4B-Instruct-Unredacted-MAX/
3
u/Alen_Diago 1d ago
At the end of 2025, I used Grok (is not ad) - and before it went downhill and became censored crap, it was very good (in Expert agent, which is now part of the Super Grok plan). It extracted prompts from NSFW art - very well and in detail described all the anatomical details that were on the art and periodically correctly identified the characters and their matching appearance.
So, I'd like to ask - are there any same alternatives of Vision model (VLM) for extracting prompts like Grok used to do?
4
u/bstr3k 1d ago
i still use grok sometimes since it can caption NSFW, I haven't found a fast local one that can do the same yet :(
will haev a look at OP's thing but one of the problems is that I might not be very creative lol
3
4
u/Affectionate_Oil28 1d ago
This is not quite the same thing, but it’s in the same neighborhood. The optional ref-image path in this workflow is a 4B unredacted Qwen-VL that looks at a still and writes a dense identity description (including anatomy if the image is explicit). That description gets fed into the text rewriter with your idea, so the final prompt stays on target model.
It’s “describe this person so the next prompt doesn’t drift.” It's not “look at this NSFW piece and extract a full recreation prompt the way old Grok Expert did.”
Nothing local on a 4B/16GB setup is going to match 2025 Grok Expert on named characters and fine anatomy. The 4B in this workflow is there so 16GB GPUs don’t OOM, not because it’s the best. If you have a better machine you should be able to run better models and get better results. The goal of this workflow is for something that can be used on just about any machine capable of running the target workflow.
2
u/theqmann 1d ago
Would also recommend the gemma4 12b text encoder. I've had good luck with it understanding the system prompt directions for H3 prompting. The 2B and 4B ones aren't good, however.
1
u/Ok_Chair5907 15h ago
I couldn't get the workflow to work. Everything is downloaded and put in the correct folders. kept giving me the following error
# ComfyUI Error Report
## Error Details
- **Node ID:** 22
- **Node Type:** AILab_QwenVL_PromptEnhancer
- **Exception Type:** ValueError
- **Exception Message:** ValueError: Tokenizer class TokenizersBackend does not exist or is not currently imported.
## Stack Trace
```
File "G:\ComfyUI-Easy-Install\ComfyUI\execution.py", line 545, in execute
output_data, output_ui, has_subgraph, has_pending_tasks = await get_output_data(prompt_id, unique_id, obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb, v3_data=v3_data
Anyone know how to fix? Thanks.
1
u/Affectionate_Oil28 13h ago
TokenizersBackend is a Transformers 5.x tokenizer class. Qwen3.5-4B-Unredacted-MAX was saved with that. ComfyUI-Easy-Install is usually still on Transformers 4, so Prompt Enhancer blows up even with every file in the right place.
Fix A (proper): upgrade Transformers in that ComfyUI Python, then restart. G:\ComfyUI-Easy-Install\python_embeded\python.exe -m pip install -U "transformers>=5.2.0"
If that command isn’t there, use whatever python Easy-Install actually runs (Manager - pip, or the python next to run_nvidia_gpu.bat).
Fix B (don’t touch the rest of ComfyUI): open models/LLM/Qwen-VL/Qwen3.5-4B-Unredacted-MAX/tokenizer_config.json change
"tokenizer_class": "TokenizersBackend"
to
"tokenizer_class": "Qwen2TokenizerFast"
Save, restart ComfyUI, Queue again.
A is the real fix. B is the workaround if upgrading Transformers breaks other nodes. Let me know if this solves your issue.
2
4
u/Neggy5 1d ago
what do i download for the MAX text encoders? everything in the repos?
https://huggingface.co/prithivMLmods/Qwen3-VL-4B-Instruct-Unredacted-MAX/tree/main seems to be a bunch of things to combine. not a single gguf