Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhance AI-generated art by styling positive and negative text prompts for consistent and visually appealing results.
The SDXLPromptStyler node is designed to enhance your AI-generated art by allowing you to style your prompts effectively. This node takes your positive and negative text prompts and applies a specified style to them, ensuring that the generated art aligns with your desired aesthetic. It processes and combines the prompts using predefined templates, making it easier to achieve consistent and visually appealing results. Additionally, the node offers the option to log the prompts for review, providing transparency and control over the styling process. This tool is particularly useful for artists looking to fine-tune their AI-generated content with specific stylistic elements.
This parameter accepts a string input that represents the positive text prompt you want to style. The positive prompt is the main content that you wish to emphasize in your generated art. It supports multiline input, allowing you to provide detailed and complex prompts. The default value is an empty string.
This parameter accepts a string input that represents the negative text prompt. The negative prompt is used to specify elements you want to avoid or minimize in your generated art. Like the positive prompt, it supports multiline input for detailed descriptions. The default value is an empty string.
This parameter allows you to select a style from a predefined list of styles. The selected style will be applied to your positive and negative prompts, influencing the overall aesthetic of the generated art. The available styles are dynamically loaded from the directory containing the style templates.
This parameter is a toggle that determines whether the prompts should be logged to the console. It accepts two options: "No" and "Yes". When set to "Yes", the node will print the style, positive and negative text, and the resulting prompts to the console for review. The default value is "No".
This optional parameter allows you to specify a style by name. If the provided style name is not found in the predefined styles, a warning will be issued, and the default style will be used instead. This parameter does not support multiline input.
This output parameter returns the styled positive prompt text. It combines the original positive prompt with the selected style template, resulting in a prompt that aligns with the desired aesthetic. This output is crucial for generating art that reflects the specified style.
This output parameter returns the styled negative prompt text. It combines the original negative prompt with the selected style template's negative prompt, if available. This helps in minimizing or avoiding unwanted elements in the generated art, ensuring a more refined output.
log_prompt
parameter set to "Yes" during the initial stages to review how your prompts are being styled. This can help you fine-tune your inputs for better outcomes.<style_name>
' not found. Using '<style>
' instead.style_name
is not found in the predefined styles.style_name
you provide matches one of the available styles. If unsure, check the list of styles loaded from the directory.name
and prompt
).name
or prompt
field.name
and prompt
fields. Add any missing fields to the templates.<template_name>
'.template_name
.template_name
you provide matches one of the templates in the JSON file. If necessary, add the missing template to the JSON file.© Copyright 2024 RunComfy. All Rights Reserved.