Nodes/ComfyUI-PainterNodes/Painter Prompt Rewriter
ComfyUI Node

Painter Prompt Rewriter

Rewrite a simple prompt according to a template, optionally guided by up to 9 reference images.

By princepainter·Created 7 months ago·Updated about 7 hours ago· 183
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)

NameTypeDefaultDescription
clipCLIP
promptSTRINGThe simple prompt to be rewritten.
templateSTRINGThe target format / instruction template the rewrite must follow.
max_lengthINT20481–32768
sampling_modeCOMBO2 options: [object Object], [object Object]
max_image_long_sideoptINT960256–4096Downscale each reference image so its long side is at most this value before it is sent to the model.
thinkingoptBOOLEANfalseOperate in thinking mode if the model supports it.
use_default_templateoptBOOLEANtrueApply the built-in chat template of the model.
use_chatml_systemoptBOOLEANfalseExperimental: inject the template as a ChatML system message instead of user text.
imagesoptCOMFY_AUTOGROW_V3

Outputs (1)

NameTypeDescription
generated_textSTRING