Text Encoder – explained simply
The text encoder translates your prompt into numbers that the image or video model can understand.
Also: Text encoder, T5, T5-XXL, text_encoders
The actual image model can’t do anything with letters. A text encoder reads the prompt and turns it into vectors that serve as guides during denoising. The better the text encoder, the more accurately complex descriptions are rendered.
Older models use CLIP, while newer ones also use large language models. FLUX, for example, uses two text encoders: CLIP-L and T5-XXL. The T5 encoder is several gigabytes in size on its own, which is why it is often loaded in fp8 or quantized.
With newer models, text encoders are often separate files that you have to download as well.
What does that mean for you? If a text encoder is missing or doesn’t match the model, the workflow won’t start or will ignore your prompt; in that case, check the model’s download list.
Related terms
Errors where that matters
- clip missing: ['text_projection.weight'] (usually a harmless warning)
- ERROR: clip input is invalid: None (Checkpoint contains no text encoder)
- ERROR: Could not detect model type of: … (Model is in the wrong folder or the wrong loader)
- Forge: You do not have CLIP / T5 / Qwen3 state dict!
- lora key not loaded (LoRA does not match the model or the loader)
- mat1 and mat2 shapes cannot be multiplied (models don’t match)
- Prompt outputs failed validation / Value not in list (Model missing)
- Unexpected architecture type in GGUF file (ComfyUI-GGUF doesn’t know the model yet)