Nodes/ComfyUI LC123 Nodes/LC Weighted Prompt ⚖️
ComfyUI Node

LC Weighted Prompt ⚖️

A text encoder with a weight per word: click a word, move its slider. Green = more, red = less, below 0 = taken out. Works on Krea 2 (inside the model) and on CLIP models (SDXL, Illustrious, Pony).

By lonecatone23·Created 3 months ago·Updated about 20 hours ago· 55
LC Weighted Prompt ⚖️
  • clip
  • model
  • edit_conditioning
  • model
  • conditioning
  • prompt
  • weighted_prompt
◄text►
◄strength1.00►
◄weights[]►
◄blockon change►
◄last_in►
◄prompt—►
CategoryLC123/conditioning

Inputs (9)

NameTypeDefaultDescription
clipCLIPThe text encoder (Krea 2, SDXL, Illustrious, Pony ...).
textSTRINGThe prompt. Its words show below, ready to weight.
strengthFLOAT1.000–3How strongly every weight acts. Lower it if a weighted word starts to break the picture up.
weightsSTRING[]The word weights (set on the node).
modeloptMODELKrea 2 needs the model: its weights work inside the model. Other models don't.
edit_conditioningoptCONDITIONINGNot needed: the weights find their words in any Krea 2 encoding (wire this node's prompt into the edit encoder instead). Wired, this conditioning comes out as the node's own.
blockoptCOMBOon changeWith the prompt socket wired. on change: the box takes the incoming prompt when it changes, your edit holds until then. always: the box holds, and a new incoming prompt stops the run here: edit, then Run carries on with the same seeds. never: the incoming prompt always comes through.
last_inoptSTRINGThe incoming prompt of the last run (set on the node).
promptoptSTRINGOptional: a prompt from another node. It lands in the box, where you can edit and weight it (see block).

Outputs (4)

NameTypeDescription
modelMODELThe model, with the word weights built in on Krea 2 (wire it to the sampler).
conditioningCONDITIONINGThe encoded prompt.
promptSTRINGThe prompt used (your edit, or the linked one), without weights: wire it into an edit encoder or metadata.
weighted_promptSTRINGThe prompt with (word:weight) written in, for metadata or another encoder.