ComfyUI Node
Painter Prompt Rewriter
Rewrite a simple prompt according to a template, optionally guided by up to 9 reference images.
Painter Prompt Rewriter
- clip
- images
- generated_text
◄prompt►
◄template►
◄max_length2048►
◄sampling_mode▾►
◄max_image_long_side960►
◄thinkingfalse►
◄use_default_templatetrue►
◄use_chatml_systemfalse►
Categorytext
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| clip | CLIP | — | |
| prompt | STRING | The simple prompt to be rewritten. | |
| template | STRING | The target format / instruction template the rewrite must follow. | |
| max_length | INT | 20481–32768 | — |
| sampling_mode | COMBO | 2 options: [object Object], [object Object] | |
| max_image_long_sideopt | INT | 960256–4096 | Downscale each reference image so its long side is at most this value before it is sent to the model. |
| thinkingopt | BOOLEAN | false | Operate in thinking mode if the model supports it. |
| use_default_templateopt | BOOLEAN | true | Apply the built-in chat template of the model. |
| use_chatml_systemopt | BOOLEAN | false | Experimental: inject the template as a ChatML system message instead of user text. |
| imagesopt | COMFY_AUTOGROW_V3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| generated_text | STRING | — |