ComfyUI Prompts Explained: CLIP Text Encode, Negative and Dynamic Prompts

ComfyUI Prompts Explained: CLIP Text Encode, Negative and Dynamic Prompts

Understanding ComfyUI Nodes and Prompts

Introduction to Prompting in ComfyUI

  • The video introduces three common prompt tips: negative prompts, the use of numbers in brackets for strength, and curly brackets for random word selection.
  • It emphasizes that the CLIP Text Encode node is crucial as it translates user prompts into instructions for image generation.

Functionality of CLIP Node

  • The CLIP input node reads text from the Load CLIP node, converting it into a format understandable by the image generator (the painter).
  • Most workflows utilize two prompt nodes: one for positive prompts (desired elements) and another for negative prompts (undesired elements), although they are technically the same node.

Managing Positive and Negative Prompts

  • To avoid confusion between positive and negative prompts, users can color-code them—green for positive and red for negative.
  • Testing reveals that when a negative prompt is empty, it does not alter the generated image due to CFG settings on the K Sampler.

Impact of CFG Settings on Image Generation

Understanding CFG Values

  • Turbo models operate at CFG 1, which skips negative prompts entirely to enhance speed but ignores any input in the negative field.
  • In contrast, higher CFG values allow negative prompts to influence image generation; an example shows how adding "red" pushes red hues out of an image.

Zero Out Conditioning

  • Some workflows include a conditioning zero-out node that nullifies all values from the positive prompt, effectively providing a blank slate.
  • For models utilizing negatives, zero-out results in harsher images compared to using an empty prompt.

Crafting Effective Prompts

Writing Techniques for New Models

  • Older models preferred short keyword lists; however, newer models benefit from full sentences describing scenes comprehensively.
  • Using quotation marks around words ensures clarity in output; tests show better results with quotes than without.

Weights and Randomization Tricks

  • Brackets with weights were effective in older models but are ignored by new ones like Z image; thus descriptive language is recommended instead.
  • Curly brackets allow random selections among options each time you run a command without affecting seed consistency.

Advanced Prompting Techniques

Utilizing Comments Effectively

  • Comments can be added using slashes to disable parts of a prompt without deletion; this allows experimentation while retaining original ideas.

Dynamic Prompt Management

  • Users can connect different nodes to manage their prompts dynamically while maintaining functionality like random choices or comments through specific setups.

Practical Application and Workflow Guidance

Engaging with Practice Tasks

  • The video encourages viewers to engage with practice tasks provided alongside it to reinforce learning about ComfyUI functionalities.

Summary of Key Takeaways

  • Key insights include understanding how wires determine prompt positivity/negativity, managing CFG settings effectively, writing comprehensive descriptions over keywords, utilizing dynamic prompting techniques efficiently.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

In this video of ComfyUI Nodes Explained, you will learn how ComfyUI reads your prompt: what CLIP Text Encode does, how positive and negative prompts work, why the negative prompt does nothing at CFG 1, what Conditioning Zero Out is for, how to write a prompt for new models, why prompt weights are ignored on Z-Image and Flux 2 Klein, and two tricks most people never find: random choices with {red|blue|green} and comments. Everything is shown with Z-Image Turbo. ⬇️⬇️ MODELS USED IN THIS VIDEO (Z-Image Turbo, the same files as in the Models video) ⬇️⬇️ 🧠 1. DIFFUSION MODEL, the painter (about 6 GB) 📁 Put it in: ComfyUI/models/diffusion_models (I use a z-image subfolder) https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/diffusion_models/z_image_turbo_int8_convrot.safetensors 📝 2. TEXT ENCODER, the translator (about 5.6 GB) 📁 Put it in: ComfyUI/models/text_encoders https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/text_encoders/qwen_3_4b_fp8_mixed.safetensors 🎨 3. VAE (about 0.3 GB) 📁 Put it in: ComfyUI/models/vae https://huggingface.co/Comfy-Org/z_image_turbo/resolve/main/split_files/vae/ae.safetensors 🔄 After the download, press R in ComfyUI (or restart it), so the new files show up in the loaders. 📥 PRACTICE + FINISHED WORKFLOWS for this video (free, no account): https://workflows.pixaroma.com/comfyui-nodes-explained/2/ Drag the Practice workflow into ComfyUI and do the tasks in the notes. The Finished workflow shows every answer, and the Pixaroma version keeps the prompt in a Text Pixaroma node. 🧩 PIXAROMA NODES (free, for Text Pixaroma). ComfyUI Easy-Install already has them. Other installs: Install with git clone: https://workflows.pixaroma.com/help/install-git/ Update with git pull: https://workflows.pixaroma.com/help/update-git/ First, CLIP Text Encode: the translator that turns your words into instructions for the painter, and why the wire, not the node, decides what is positive and what is negative. Then the surprise: at CFG 1 the K Sampler skips the negative completely, so Turbo models and Flux 2 Klein ignore it, while Z-Image Base at CFG 4 uses it on the whole image. We look at Conditioning Zero Out (and why an empty prompt is better for models that use the negative), write a prompt in full sentences instead of keywords, test prompt weights like (red beret:1.5) on Z-Image and Flux 2 Klein, and try random choices with curly brackets, comments with two slashes, and Text Pixaroma's Dynamic prompts switch. If you enjoy the video, leave a like and a comment to help support the channel. ▶️ ComfyUI Nodes Explained playlist: https://www.youtube.com/playlist?list=PLABl5egqYkEY ▶️ Full ComfyUI course playlist: https://www.youtube.com/playlist?list=PL-pohOSaL8P-FhSw1Iwf0pBGzXdtv4DZC 🌐 Help, cloud tools and membership: https://pixaroma.com/ 💬 Questions: https://discord.gg/gggpkVgBf3 #comfyui #comfyuitutorial #comfyuinodes Chapters: 0:00 Intro 0:24 What CLIP Text Encode Does 1:16 Positive and Negative 2:00 Why the Negative Does Nothing 3:25 Conditioning Zero Out 4:13 How to Write a Prompt 5:10 Prompt Weights 6:06 Random Choices 6:43 Comments 7:11 Your Prompt in Its Own Node 7:46 An Easier Way: Text Pixaroma 8:49 Your Turn 9:37 Quick Recap 10:10 Thank You, Legends