ComfyUI-Prompt-Rewriters Introduction
ComfyUI-Prompt-Rewriters adds custom nodes that let you call a prompt rewriter directly from a ComfyUI workflow. Instead of rewriting a prompt separately and pasting it back into your project, you can make rewriting part of the workflow you use to create AI video.
The extension includes two nodes for prompting MiniHax H3: one for text-to-video and one for the full reference version. It also lets you add workflow-specific instructions, called notes, to guide the rewriter.
How ComfyUI-Prompt-Rewriters Works
Think of the rewriter as a prompt assistant within your workflow. You provide a prompt, and the node calls a language model to rewrite it. The extension recommends using a local language model through a llama server, though the author says it should work with most language models.
The nodes begin with a general instruction telling the language model that it is an expert AI video prompting assistant. You can add optional notes to that instruction when a particular workflow needs extra guidance. For example, if you want one workflow to favor a specific visual style, you can include that preference in its notes without making it a standing instruction for every workflow.
ComfyUI-Prompt-Rewriters Features
- Two MiniHax H3 nodes. Choose the text-to-video node for a text-to-video workflow, or the full reference node when working with the full reference version. These are two prompting nodes, not two separately documented language models.
- Language-model flexibility. The author recommends a local language model served through llama server, but says the nodes should work with most language models. The context does not specify supported providers or model-specific settings.
- Optional start and end notes. Use these to add instructions to a node’s system prompt. The start note appears immediately after the opening “You are an expert AI video prompting assistant.” line. The end note appears at the end of the system prompt. Both are useful for instructions you want in one workflow but not another.
ComfyUI-Prompt-Rewriters Models
The extension names MiniHax H3 as the target of its two dedicated prompting nodes. One node is intended for text-to-video prompting, while the other is intended for the full reference version. The provided documentation does not describe additional MiniHax H3 variants or identify a required language model for rewriting.
Troubleshooting ComfyUI-Prompt-Rewriters
The nodes do not appear in ComfyUI. What should I check?
- Restart ComfyUI. The original instructions call for a restart after the extension is added.
- Check that the extension is present in your ComfyUI setup, either through ComfyUI-Manager or under
ComfyUI/custom_nodesif it was added manually. - Consult the ComfyUI documentation or the ComfyUI-Manager project for guidance on checking your setup.
Do I need a particular language model?
The author recommends a local language model through llama server but says the extension should work with most language models. No specific model is required in the provided documentation.
What is the difference between the two MiniHax H3 nodes?
One is for text-to-video prompting; the other is for the full reference version. The provided documentation does not give a more detailed comparison.
Are start and end notes required?
No. They are optional additions for workflows that need their own instructions.
Learn More about ComfyUI-Prompt-Rewriters
- ComfyUI documentation provides background on using ComfyUI.
- ComfyUI-Manager is the manager named in the original documentation and may help you locate the extension in your ComfyUI setup.
