ComfyUI Node
Prompt Cleaner
Clean, normalize, and transform a raw prompt string.
Prompt Cleaner
- clean_prompt
- char_count
◄raw_prompt►
◄normalize_casetrue►
◄remove_punctuationtrue►
◄max_length512►
CategoryParametric/Prompts
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| raw_prompt | STRING | Raw prompt. | |
| normalize_case | BOOLEAN | true | Normalize case. Default True. |
| remove_punctuation | BOOLEAN | true | Remove punctuation. Default True. |
| max_length | INT | 5121–10000 | Max length. From 1 to 10000. Default 512. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| clean_prompt | STRING | — |
| char_count | INT | — |