EasyUse/Logicgenerated

Is SDXL(isSDXL)

The Is SDXL node checks whether the CLIP model passed to it is an SDXL (Stable Diffusion XL) CLIP.

is SDXL

optional_clip
boolean
Easy Use

Description

The Is SDXL node checks whether the CLIP model passed to it is an SDXL (Stable Diffusion XL) CLIP. It returns True when the connected CLIP is SDXL and False otherwise. It is grouped under EasyUse/Logic and can be used to branch processing steps depending on the base model type.

Inputs

optional_clip

  • Type: CLIP
  • Required: No

The CLIP model to test. Connect the CLIP output from a checkpoint loader, CLIP loader, or any other node that produces a CLIP object. The input is listed as optional because the node can be left unconnected, but to get a meaningful result you need to provide a CLIP; without a connected CLIP the node returns False.

Outputs

BOOLEAN

  • Type: BOOLEAN

True if the supplied CLIP belongs to an SDXL model. False for any other CLIP, or when no CLIP is connected.

Usage Notes

Use this node when a workflow needs to adapt to the model currently loaded. For example, you can connect its boolean output to a logic switch or conditional node to choose between SDXL-appropriate resolutions, samplers, or VAE outputs.

The check is performed on the actual CLIP object, not on the model filename, so it also works when using merged or custom checkpoints.

Comments

Sign in with GitHub to join the discussion.

Loading comments…