Nodes/ComfyUI-Shinsplat/CLIP Text Encode Flux (Shinsplat)
ComfyUI Node

CLIP Text Encode Flux (Shinsplat)

Flux's T5 + CLIP pairing, with a guidance dial and the END escape hatch

By Shinsplat·Created 2 years ago·Updated about a year ago· 47
CLIP Text Encode Flux (Shinsplat)
  • clip
  • CONDITIONING
  • _clip_l
  • _t5xxl
clip_l
t5xxl
guidance3.5

Flux doesn't condition like SD1.5 does. It reads your prompt through a big T5-XXL text encoder plus a small CLIP-L stream, and the classic guidance number rides along inside the conditioning rather than living as a sampler cfg setting. ComfyUI's built-in Flux text encode handles that, but it's another node you have to hunt for and it gives you no shorthand for testing. This Shinsplat version wraps the same mechanism, adds the pack's END directive to both text boxes, and exposes guidance right on the node - which is honestly the whole reason it exists.

How it works

The mechanism mirrors ComfyUI's Flux path: clip_l is tokenized as the CLIP stream, t5xxl is tokenized as the T5 stream, and clip.encode_from_tokens(...) produces a conditioning carrying the pooled output plus a guidance value that the Flux sampler reads during denoising. The guidance float (default 3.5) is passed straight into that conditioning - crank it toward ~10 for a punchier, more literal read, or drop it toward 1 for a looser one, same as you'd tune guidance anywhere else in Flux land.

The END directive works per box: anything after the uppercase word END in either clip_l or t5xxl is chopped before tokenization. When you're A/B testing a long prompt, ending the T5 box early is a much faster way to see what the first half is doing than rewriting the whole text.

The inputs and outputs

  • clip - the Flux CLIP (from a Flux checkpoint or a dual CLIP loader set up for Flux).
  • clip_l - the CLIP-L stream text.
  • t5xxl - the T5-XXL stream text; this carries most of the semantic weight on Flux, so it's the box to put your real description in.
  • guidance - float, default 3.5. Sits inside the conditioning, not on the sampler.

Outputs: CONDITIONING plus _clip_l and _t5xxl - the cleaned per-stream text after directives are stripped, handy for mirroring into another stage.

How to install it

Included in ComfyUI-Shinsplat:

cd ComfyUI/custom_nodes
git clone https://github.com/Shinsplat/ComfyUI-Shinsplat

or ComfyUI Manager → "ComfyUI-Shinsplat" → restart. No extra deps.

Common issues

  • Guidance has no effect - make sure your sampler is the Flux-aware one (e.g. the built-in sampler that accepts conditioning with guidance), not a vanilla KSampler that ignores it. Also verify the model isn't a distilled/-schnell variant where guidance isn't used the same way.
  • No negative input here - Flux guidance conditioning doesn't take a negative prompt box in this node. If your workflow expects one, that's a misunderstanding of how Flux conditions, not a missing feature.
  • END in the wrong box - the two boxes are chopped independently, so if you want to disable the whole thing, put END first in both.
Categoryadvanced/Shinsplat

Inputs (4)

NameTypeDefaultDescription
clipCLIP
clip_lSTRING
t5xxlSTRING
guidanceFLOAT3.50–100

Outputs (3)

NameTypeDescription
CONDITIONINGCONDITIONING
_clip_lSTRING
_t5xxlSTRING