AI Clothing Swap with FLUX 2.0 Klein 9B in ComfyUI
1. Introduction
AI-powered clothing swap and virtual try-on have become some of the most sought-after capabilities in generative image workflows. The AI Clothing Swap with FLUX 2.0 Klein 9B in ComfyUI tutorial shows you how to transfer an outfit from one reference image onto a person in a second image — all with a single workflow run. By leveraging the powerful instruction-following and identity-preservation capabilities of the FLUX Klein 9B image edit model, you can achieve realistic, high-fidelity outfit transfers without complex masking or inpainting pipelines.
This approach is ideal for a wide range of use cases: virtual try-on for e-commerce, generating clothing LoRA training datasets, fashion concept visualization, or simply exploring creative outfit combinations. Whether you are a fashion brand looking to scale product photography, a machine learning practitioner building clothing datasets, or a creative experimenter, this guide will walk you through the complete setup and execution from start to finish.
2. Requirements & Setup for FLUX 2.0 Klein 9B Image Edit Model
Before running the clothing swap workflow in ComfyUI, make sure your environment is correctly configured. Start by installing ComfyUI and updating it to the latest version to ensure full compatibility with current nodes and models.
The FLUX 2.0 Klein 9B model is VRAM-intensive. A high-memory GPU is strongly recommended. Cloud platforms like RunPod are a practical alternative if your local hardware is limited.
Requirement 1: ComfyUI Installed
You'll need ComfyUI running either locally or on a cloud GPU.
Local (Windows): 👉 How to Install ComfyUI Locally on Windows
Cloud GPU (Runpod): 👉 How to Run ComfyUI on RunPod with Network Volume
Requirement 2: Update ComfyUI
Keeping ComfyUI updated ensures full compatibility with the latest features and workflows.
Windows Portable Users:
- Navigate to: ...\ComfyUI_windows_portable\update
- Run: update_comfyui.bat
Navigate to: ...\ComfyUI_windows_portable\update
Run: update_comfyui.bat
RunPod / Linux Users:
1 cd /workspace/ComfyUI && git pull origin master && pip install -r requirements.txt && cd /workspace1 cd /workspace/ComfyUI && git pull origin master && pip install -r requirements.txt && cd /workspaceAlternatively, update directly through the Custom Node Manager in ComfyUI.
Requirement 3: Download FLUX 2.0 9B Klein Model Files
The 9B model generates or edits images in just 4 steps, delivering fast and high-quality results. It requires significantly more VRAM than 4B models, with 24GB+ recommended. It is best suited for high-fidelity image edits like clothing swaps, where fine details in fabric, texture, and fit must be preserved.
| File Name | Download Page | File Directory |
|---|---|---|
| flux-2-klein-9b-fp8.safetensors | 🤗 Download Page | ..\ComfyUI\models\diffusion_models |
| qwen_3_8b_fp8mixed.safetensors | 🤗 Download Page | ..\ComfyUI\models\text_encoders |
| flux2-vae.safetensors | 🤗 Download Page | ..\ComfyUI\models\vae |
💡 Note: If you're using RunPod CLI, make sure to create a HuggingFace access token to download the 9B model file.
Requirement 4: HuggingFace Access Token (FLUX 2.0 [klein] 9B Model)
The FLUX 2.0 [klein] 9B models are distributed under a non-commercial license, which means you'll need authenticated access via HuggingFace to download them.
Create a HuggingFace Access Token
To download the 9B model files, generate an access token:
- Go to your HuggingFace account → Access Tokens
- Click Create New Token and give it a name
- Under Repositories permissions, add: black-forest-labs/FLUX.2-klein-9b-fp8 (9B Distilled)
- Click Create Token
Go to your HuggingFace account → Access Tokens
Click Create New Token and give it a name
Under Repositories permissions, add: black-forest-labs/FLUX.2-klein-9b-fp8 (9B Distilled)
Click Create Token
Download the Model Using Your Token
Once created, you can securely download the model using your token. Example:
1 wget -4 --header="Authorization: Bearer HF_TOKEN_HERE" https://huggingface.co/black-forest-labs/FLUX.2-klein-9b-fp8/resolve/main/flux-2-klein-9b-fp8.safetensors1 wget -4 --header="Authorization: Bearer HF_TOKEN_HERE" https://huggingface.co/black-forest-labs/FLUX.2-klein-9b-fp8/resolve/main/flux-2-klein-9b-fp8.safetensorsReplace HF_TOKEN_HERE with your actual HuggingFace token. This ensures you have proper access and can download the files directly into your cloud environment (e.g., RunPod).
3. Downloading and Loading the Clothing Swap Workflow (Flux 2.0 Klein 9B edit)
Once your environment is set up, the next step is to download and load the Clothing Swap Workflow into ComfyUI. This process is straightforward and can be completed in just a few steps:
Step 1: Download the Workflow
👉 Download Clothing Swap Workflow
Begin by downloading the clothing swap workflow file in .json format. This file contains all the necessary node configurations, model references, and prompt settings required to perform AI outfit transfer with a single run.
Step 2: Load the Workflow in ComfyUI
After downloading the workflow file, open ComfyUI. Loading is as simple as dragging and dropping the .json file into the ComfyUI interface. The system will automatically recognize the workflow and prepare it for use.

Check for Missing Nodes
If any nodes appear in red after loading the workflow, open the Node Manager in the top-right corner of ComfyUI and click Install Missing Custom Nodes. Select all missing nodes and install them. Once finished, restart ComfyUI when prompted — after reboot, the red nodes should be resolved and your workflow will be ready to use.
4. Conclusion
The AI Clothing Swap workflow with FLUX.2 Klein 9B in ComfyUI delivers a fast, high-quality pipeline for virtual try-on and outfit transfer without any manual masking or complex preprocessing. By combining two simple image inputs with a natural language instruction, the model intelligently transfers the desired garment while preserving the person's identity, pose, and environment.
The FLUX.2 Klein 9B edit model's 4-step distilled generation ensures quick turnaround times even for demanding high-resolution outputs, making this workflow practical for both individual creative projects and large-scale fashion dataset production. Whether you're building a clothing LoRA, generating e-commerce mockups, or exploring AI-driven fashion visualization, this workflow provides a reliable and flexible foundation.
For best results, experiment with prompt phrasing, try different garment reference images, and adjust the output resolution to suit your target use case.
Enjoyed this article? Share it with your network.
