← See All Custom Node Packs

sdxl_prompt_styler

923

Run ComfyUI Easily with InstaSD

Skip the complex setup. InstaSD helps creative professionals build workflows and deploy them to the world:

  • One-click deployment
  • Any model, any node
  • Powerful GPUs for rapid iteration
Get Started

SDXLPromptStylerAdvanced

SDXL Prompt Styler Advanced Documentation

Overview

The SDXL Prompt Styler Advanced is a sophisticated node designed for ComfyUI that enables users to style text prompts based on predefined templates stored in JSON files. This advanced version of the SDXL Prompt Styler offers greater control over how text is styled and processed by allowing the split of prompts into main and auxiliary components, among other specialized features.

Node Functionality

The SDXL Prompt Styler Advanced enhances prompts by replacing placeholders with user-defined text, supporting both positive and negative prompts. This node is particularly useful for creating dynamic and context-specific prompts, essential for applications that require nuanced text generation.

Inputs

The SDXL Prompt Styler Advanced node accepts the following inputs:

  • text_positive_g: Main text for the positive prompt that replaces placeholders in the selected template.
  • text_positive_l: Auxiliary text for the positive prompt, allowing for additional stylistic modifications.
  • text_negative: Text for the negative prompt that combines with the 'negative_prompt' from the template.
  • style: Choice of style from available templates stored in JSON files within the directory.
  • negative_prompt_to: Specifies the destination for the negative prompt, with options: "Both", "G only", "L only".
  • copy_to_l: Boolean toggle to copy and deduplicate the main positive prompt into the auxiliary prompt.
  • log_prompt: Boolean toggle to enable printing of inputs and styled outputs for debugging purposes.

Outputs

The node produces the following outputs:

  • text_positive_g: Styled main positive prompt reflecting the chosen template and inputs.
  • text_positive_l: Styled auxiliary positive prompt influenced by the template and inputs.
  • text_positive: A combined version of the styled positive prompts.
  • text_negative_g: The main negative prompt styled according to specified parameters.
  • text_negative_l: The auxiliary negative prompt as styled.
  • text_negative: The combined version of the styled negative prompts.

Usage in ComfyUI Workflows

The SDXL Prompt Styler Advanced node can be integrated into ComfyUI workflows that require enhanced prompt customization. By selecting a template and specifying positive and negative text inputs, users can generate finely-tuned text outputs suitable for various applications such as content creation, AI voice assistants, or dynamic storytelling.

Example Usage

  1. Select a Style: Choose a predefined template from the style options provided by the node.

  2. Input Texts: Provide the desired main and auxiliary positive prompts, along with any necessary negative prompts to tailor the output effectively.

  3. Configure Options: Adjust settings such as the destination for negative prompts and whether to copy main prompts to auxiliary prompts.

  4. Process Prompts: Run the node within your ComfyUI workflow to generate styled text outputs that can be used for further processing or integration.

Special Features and Considerations

  • Enhanced Prompt Splitting: The node supports the splitting of prompts into main and auxiliary components, providing additional layers of flexibility and style.

  • Negative Prompt Management: The system allows specific control over where the styled negative prompt should be directed (main, auxiliary, or both).

  • Copy and Deduplication: An optional feature enables automatic copying and deduplication of main positive prompts into auxiliary prompts, ensuring stylistic consistency without repetition.

  • Logging: For debugging or detailed analysis, the node can output all processed and styled prompts to the console.

The SDXL Prompt Styler Advanced is designed for users seeking comprehensive control and flexibility when working with text prompts in a ComfyUI environment. By utilizing the advanced functionalities, users can craft precise and contextually adaptive text outputs.