ComfyUI  >  Nodes  >  ComfyUI-Long-CLIP

ComfyUI Extension: ComfyUI-Long-CLIP

Repo Name


SeaArtLab (Account age: 75 days)
View all nodes (2)
Latest Updated
Github Stars

How to Install ComfyUI-Long-CLIP

Install this extension via the ComfyUI Manager by searching for  ComfyUI-Long-CLIP
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Long-CLIP in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

ComfyUI-Long-CLIP Description

ComfyUI-Long-CLIP enhances the comfyui by supporting the replacement of clip-l, specifically for SD1.5. It uses the SeaArtLongClip module to expand token length from 77 to 248, improving model performance.

ComfyUI-Long-CLIP Introduction

ComfyUI-Long-CLIP is an extension designed to enhance the capabilities of the ComfyUI interface for Stable Diffusion by integrating Long-CLIP. This extension allows you to replace the standard CLIP model with Long-CLIP, significantly expanding the token length from 77 to 248. This enhancement can improve the quality of generated images, making them more detailed and accurate, especially when dealing with longer text inputs. For AI artists, this means more expressive and nuanced image generation, allowing for greater creativity and precision in your work.

How ComfyUI-Long-CLIP Works

At its core, ComfyUI-Long-CLIP works by replacing the default CLIP model used in Stable Diffusion with Long-CLIP. CLIP (Contrastive Language-Image Pre-training) is a model that understands images and text together. By expanding the token length, Long-CLIP can process longer text inputs more effectively, capturing more context and details. This is particularly useful for generating images from detailed descriptions, as it allows the model to consider a broader range of information, resulting in higher-quality outputs.

Imagine you are trying to describe a complex scene in a single sentence. With the standard CLIP model, you might be limited to a short description, missing out on important details. Long-CLIP, however, allows you to provide a much longer and detailed description, ensuring that the generated image captures all the nuances of your input.

ComfyUI-Long-CLIP Features

Expanded Token Length

  • Description: Increases the maximum input length from 77 to 248 tokens.
  • Benefit: Allows for more detailed and complex text descriptions, leading to higher-quality image generation.

Compatibility with SD1.5 and SDXL

  • Description: Supports both Stable Diffusion 1.5 and SDXL models.
  • Benefit: Ensures that you can use Long-CLIP with different versions of Stable Diffusion, providing flexibility in your workflow.

Clip-Skip Support

  • Description: Supports operations such as clip-skip.
  • Benefit: Allows you to skip certain layers in the CLIP model, which can be useful for fine-tuning the image generation process.

Easy Integration

  • Description: Simple to integrate into your existing ComfyUI setup.
  • Benefit: Minimal setup required, allowing you to quickly start using the enhanced capabilities of Long-CLIP.

ComfyUI-Long-CLIP Models

Currently, ComfyUI-Long-CLIP supports the LongCLIP-L model. This model is designed to handle longer text inputs more effectively, improving the quality of generated images. Once the LongCLIP-G weights are released, they will also be supported, further expanding the capabilities of this extension.


  • Description: A model that increases the token length to 248. - When to Use: Ideal for generating images from detailed and complex text descriptions.

Troubleshooting ComfyUI-Long-CLIP

Common Issues and Solutions

  1. Issue: The generated images are not significantly different from those produced by the standard CLIP model.
  • Solution: Ensure that you have correctly replaced the CLIP model with Long-CLIP. Verify that the LongCLIP-L model is properly loaded and that your text inputs are utilizing the expanded token length.
  1. Issue: Errors during the integration of Long-CLIP with ComfyUI.
  • Solution: Double-check the installation steps and ensure that all dependencies are correctly installed. Refer to the for additional guidance.

Frequently Asked Questions

  • Q: Can I use Long-CLIP with other versions of Stable Diffusion?
  • A: Yes, Long-CLIP is compatible with both SD1.5 and SDXL models.
  • Q: How do I know if Long-CLIP is working correctly?
  • A: You should notice an improvement in the quality of generated images, especially when using longer and more detailed text descriptions.

Learn More about ComfyUI-Long-CLIP

For additional resources, tutorials, and community support, you can explore the following:

  • : A collection of workflow examples to help you get started with ComfyUI and its extensions.
  • : The official repository for Long-CLIP, containing detailed documentation and usage examples.
  • : Download the LongCLIP-L model and find additional information. By leveraging these resources, you can maximize the potential of ComfyUI-Long-CLIP and enhance your AI art projects with more detailed and expressive image generation.

ComfyUI-Long-CLIP Related Nodes


© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.