Nodes/ComfyUI-ZImagePowerNodes/⚗️🔬| Style & Prompt Encoder ^G2.1
ComfyUI Node

⚗️🔬| Style & Prompt Encoder ^G2.1

Transforms a text prompt into embeddings, automatically adapting the prompt to match the selected style and, optionally, a chosen colour palette. This node takes a prompt, adjusts its visual style according to the chosen option (applying the palette if provided), and then encodes it using the supplied CLIP model to generate an embedding that will guide image generation. ⚠️ Because this node is experimental, its parameters, behavior, or availability may change or be removed entirely without prior notice.

By martin-rizzo·Created 7 months ago·Updated a day ago· 346
⚗️🔬| Style & Prompt Encoder ^G2.1
  • clip
  • style
  • palette
  • CONDITIONING
  • PROMPT
  • style_name
  • palette_name
  • original_prompt
text
customization
Category⚡Z-Image/__experimental

Inputs (5)

NameTypeDefaultDescription
clipCLIPThe CLIP model used for encoding the text.
styleZIPN_STYLE_SELECTORThe visual style to apply to the prompt.
paletteZIPN_PALETTE_SELECTORThe color palette to use to enhance the prompt's visual description.
textSTRINGThe base text prompt to be encoded and styled.
customizationoptSTRINGAn optional multi-line string to customize existing styles. Each style definition must start with '>>>' followed by the style name, and then include its description on the next lines. The description should incorporate '{$@}' where the main text prompt will be inserted.

Outputs (5)

NameTypeDescription
CONDITIONINGCONDITIONINGFinal encoded text that will guide the image generation process.
PROMPTSTRINGFinal prompt after applying the selected visual style and color palette.
style_nameSTRINGName of the visual style that was applied to the prompt.
palette_nameSTRINGName of the color palette that was applied to the prompt.
original_promptSTRINGThe original text input before any modifications or style adaptations.