How to Run FLUX Locally in ComfyUI: Pick the Build Your VRAM and Licence Allow

To run FLUX locally in ComfyUI, install ComfyUI (the Desktop app, or a manual install with a PyTorch build of cu130 or newer), choose one FLUX release that fits your VRAM and what you will do with the images, download the files that belong to that release, open its template from Workflow Templates and press Queue. A Hugging Face account is required for the gated releases: you must be logged in and have accepted the conditions on the FLUX.1 Dev model page before the download link works. The vendor pages behind this guide were checked on 12 November 2026, and these things differ from the earlier version of this guide: the ComfyUI README requires cu130 or newer on Nvidia 20 series and above, the Manager docs list the Desktop app as bundling Manager, and FLUX.2 Klein and FLUX.3 Image Klein sit beside the FLUX.1 models in the download list.

Google · Preferred Sources

Don't miss new tech stories on Google

Add Tech Insider once in the Google app and our stories appear in your news suggestions.

Add Now

Pick the build first: licence and download condition for each release

The table below comes from Black Forest Labs’ flux repository, the Klein 4B and Klein 9B repository pages, the FLUX.2 Dev repository page and the licence file in the city96 FLUX.2-dev GGUF repository, the ComfyUI tutorials and the FLUX.3 Image Klein licence text on Hugging Face, as checked on 12 November 2026.

ReleaseLicenceWhere the files are
FLUX.1 SchnellApache 2.0Hugging Face repository linked from BFL’s flux repository
FLUX.1 DevFLUX.1-dev Non-Commercial LicenseGated: Hugging Face repository linked from BFL’s flux repository, conditions to accept first
FLUX.2 DevThe licence file in the city96 FLUX.2-dev GGUF repository lists FLUX.2 [dev] among the models it covers, together with FLUX.1 [dev] and FLUX.1 Krea [dev]Hugging Face repository page, which says FLUX.2 [dev] is also available in both ComfyUI and Diffusers
FLUX.2 Klein 4BApache 2.0File list on the ComfyUI Klein tutorial
FLUX.2 Klein 9BFLUX Non-Commercial LicenseAccept the conditions on its Hugging Face repository before the files download
FLUX.2 ProAPI version from Black Forest LabsListed as the API version in the ComfyUI FLUX.2 Dev tutorial
FLUX.3 Image KleinFLUX Kommunity LicenseHugging Face repository under black-forest-labs, with its own ComfyUI tutorial

The FLUX.1 Dev row and Klein 9B carry a download gate: you have to accept the conditions, logged in to a Hugging Face account, before the download link works. The FLUX.1 Dev repository page says: “This repository is publicly accessible, but you have to accept the conditions to access its files and content.” The FLUX.2 Klein 9B repository page uses the same sentence, and the ComfyUI Klein tutorial likewise says to visit BFL’s repository, accept the agreement and then download the diffusion models. If a download is refused, check that you have accepted those conditions while logged in to Hugging Face. The ComfyUI FLUX.2 Dev tutorial lists FLUX.2 Pro as the API version from Black Forest Labs.

For FLUX.2 Dev, read the licence file named in the table before you download: it lists FLUX.2 [dev] among the models it covers. The earlier version of this guide also called FLUX.2 Pro and Flex the highest-quality tier. As checked on 12 November 2026, BFL’s FLUX.2 overview describes [max] as maximum performance, with the highest editing consistency across tasks, vast world knowledge and the strongest prompt following and faithful style representation. It gives [pro] as “top performance at affordable price” and [flex] as the tier for typography and fine control. If you want the top tier, that page points to [max], not to Pro or Flex.

FLUX.1 Krea Dev, the model in the ComfyUI FLUX.1 Krea Dev tutorial, was developed by Black Forest Labs together with Krea and aims for a distinctive look that avoids the common “AI look”. Klein, according to the Klein tutorial, is “the fastest model in the FLUX family, unifying text-to-image and image editing in one compact architecture.” FLUX.3 Image Klein has its own page in the docs, the ComfyUI FLUX.3 Klein tutorial, which says its weights ship on Hugging Face under the FLUX Kommunity License and is where its file set belongs.

VRAM decides the file, and Klein 4B’s two modes trade seconds for almost no memory

The ComfyUI Krea Dev tutorial ties file choice to memory. It recommends flux1-krea-dev_fp8_scaled.safetensors for low VRAM users and says the original flux1-krea-dev.safetensors is worth using if you have VRAM “like 24GB”. For the text encoder it recommends t5xxl_fp16.safetensors when VRAM is greater than 32GB and t5xxl_fp8_e4m3fn.safetensors for low VRAM. The same page warns that low-VRAM users may not get Krea Dev running smoothly and may need to wait for community FP8 or GGUF versions. The Klein tutorial adds figures for the 4B model, measured on an RTX 5090.

Your situationChooseWhat the docs say
Low VRAM, FLUX.1 lookflux1-krea-dev_fp8_scaled.safetensors with t5xxl_fp8_e4m3fn.safetensorsRecommended for low VRAM users
About 24GBflux1-krea-dev.safetensors (original weights)Better quality if you have the VRAM
Above 32GBt5xxl_fp16.safetensors as the text encoderRecommended when VRAM is greater than 32GB
Fastest iterationFLUX.2 Klein 4B distilled (4-step)About 1.2 s per image, 8.4GB VRAM, on an RTX 5090
Flexibility and fine-tuningFLUX.2 Klein 4B base (undistilled)About 17 s per image, 9.2GB VRAM, on an RTX 5090

The two Klein 4B types are described in the tutorial as Base (undistilled) for maximum flexibility and fine-tuning, and Distilled (4-step) for speed-first deployments. Dividing the docs’ figures by each other (our own calculation, not a vendor claim) gives the trade:

MeasureKlein 4B distilledKlein 4B baseDifference
Time per image1.2 s17 s14.2x faster (17 / 1.2)
Images per minute50 (60 / 1.2)3.5 (60 / 17)46.5 more per minute
VRAM8.4GB9.2GB0.8GB less

The distilled model is about 14.2 times faster (on the docs’ approximate figures) for 0.8GB less memory, so memory does not separate the two: you pick distilled for iteration speed and base when you want the undistilled model for fine-tuning. The figures come from one RTX 5090, so timings on other cards will differ.

Selling the images: what the Non-Commercial and Kommunity texts allow

The two licence texts treat output differently. The FLUX Non-Commercial License in BFL’s flux2 repository, the licence the Klein 4B page names for the Klein 9B models, limits use of the model and its derivatives to non-commercial purposes, but about images it says: “You may use Output for any purpose (including for commercial purposes), except as expressly prohibited herein.”

The FLUX Kommunity License on the FLUX.3 Image Klein repository is stricter here. It defines a Qualifying User as you, together with your affiliates, having gross annualized revenue under US$5,000,000, and it allows Outputs, including Outputs from Derivatives, to be used commercially solely for a Qualifying User. A company at or above that revenue with its affiliates is therefore outside the commercial-output permission, while the Non-Commercial text quoted above did not draw that line for images.

As checked on 12 November 2026, Schnell and Klein 4B are listed as Apache 2.0 (the Klein 4B page describes open weights available for commercial use under that licence), Klein 9B is under the FLUX Non-Commercial License, and FLUX.1 Dev carries its own FLUX.1-dev Non-Commercial License. Read the licence file attached to the exact model you download. This is a summary of the published texts, not legal advice.

Install ComfyUI: Desktop or a venv, with a cu130 PyTorch

As of 12 November 2026 the ComfyUI README says: “Using a cu130 or above version of pytorch is required on Nvidia 20 series and above.” That replaces the “CUDA 12.x driver” wording the earlier version of this guide used. The README steps for a manual install are to clone the repository, create and activate a virtual environment (venv\Scripts\activate on Windows), install the requirements and run python main.py. The script below adds a check of Python, Git and the card first, so you can compare the VRAM it prints with the file table above.

#!/bin/bash
set -e
python3 --version
git --version
nvidia-smi
nvidia-smi --query-gpu=name,memory.total,memory.used,driver_version --format=csv
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
python3 -m venv venv
source venv/bin/activate
# install a cu130-or-newer PyTorch build here (see pytorch.org/get-started/locally)
pip install -r requirements.txt
python3 -c "import torch; assert torch.cuda.is_available(), 'torch cannot see the GPU'; print(torch.version.cuda)"
python3 main.py

The first three commands confirm the tools exist and show the card, its total and used memory and the driver version. With set -e the script also stops at the GPU check instead of launching a server whose PyTorch cannot see the card. The README asks for a cu130 or newer build, so the printed CUDA version should match that. The PyTorch install options are on pytorch.org. Once the server is up, load a FLUX template as described below: the default graph is a Stable Diffusion chain, not a FLUX workflow. Adding --listen 0.0.0.0 exposes the interface to the network, so use it only on a LAN you trust.

The cu130 line is the README’s Nvidia requirement, so this page is written for Nvidia cards. The README also says AMD users can install ROCm and PyTorch with pip if they do not have them already. On Apple Silicon Macs, the ComfyUI system requirements page says ComfyUI uses PyTorch with the MPS (Metal Performance Shaders) backend. Windows users can also take the portable build; its portable Windows docs say to add Python packages, such as attention optimizations or custom node dependencies, with the embedded Python’s pip from the command line.

The Manager step has changed too. As of 12 November 2026 the Manager install docs say the Desktop app installs ComfyUI-Manager with every ComfyUI installation and starts it with --enable-manager, so there is nothing to install. Cloning ComfyUI-Manager into custom_nodes, which the earlier version of this guide told you to do, is listed there as a legacy method that also needs pip install -r requirements.txt. If you are on a manual install and still use that method, follow the legacy steps on that page, including its pip install -r requirements.txt, and restart ComfyUI afterwards. Run from the ComfyUI folder, the clone part has this shape, with the repository URL taken from that page:

cd custom_nodes
git clone <ComfyUI-Manager repository URL from the Manager install docs>
cd ..

If you would rather not use a node graph at all, our guide to running FLUX.2 Klein in InvokeAI covers a different local interface.

One release, one set of files

FLUX needs three kinds of file: the diffusion model, a VAE and text encoders. On the FLUX.1 side the Krea Dev tutorial lists ae.safetensors as the VAE and two text encoders, CLIP-L and T5-XXL. The Klein tutorial lists a different set, so take all three kinds from the tutorial for the release you chose.

ReleaseDiffusion modelText encoderVAE
FLUX.1 Krea Devflux1-krea-dev_fp8_scaled.safetensors (low VRAM) or flux1-krea-dev.safetensors (original)clip_l.safetensors plus t5xxl_fp8_e4m3fn.safetensors (low VRAM) or t5xxl_fp16.safetensorsae.safetensors
FLUX.2 Klein 4B distilledflux-2-klein-4b-fp8.safetensorsqwen_3_4b.safetensorsflux2-vae.safetensors
FLUX.2 Klein 4B baseflux-2-klein-base-4b-fp8.safetensorsqwen_3_4b.safetensorsflux2-vae.safetensors

For the FLUX.1 files, the tutorial says the DualCLIPLoader node must hold the T5-XXL file in clip_name1 and clip_l.safetensors in clip_name2. Klein’s list names a single Qwen 3 4B encoder and flux2-vae.safetensors instead, so follow the Klein list rather than the FLUX.1 pair when you load a Klein diffusion model.

ComfyUI finds models by folder under its root directory. As checked on 12 November 2026, the models docs say to put each file type, the diffusion model, the VAE and the text encoders, in its own matching subfolder of models. They add: “If you copied files in by hand while ComfyUI was open, restart the app (or refresh as needed) so lists update.” That is why a freshly downloaded file can be missing from a loader dropdown until you do.

Two housekeeping options help once the files pile up. The same docs say to copy and rename the example file to extra_model_paths.yaml and keep it in ComfyUI’s root directory, which lets ComfyUI read model folders elsewhere, such as on another drive, without copying files. For LoRAs, put a FLUX-compatible file in models/loras/, restart ComfyUI and insert a LoraLoader node between the model loader and the KSampler with a matching CLIP connection; the LoraLoader docs say several LoRA models can be loaded by chaining multiple nodes.

Load a template, queue the first image, and try reference-image mode

Open the template for your release from Workflow Templates. The ComfyUI docs say that if you cannot find a tutorial’s workflow in the templates, your ComfyUI may be outdated, so update before you go hunting for a JSON file. Check that the model loaders point at the files from the table above, take sampler and step settings from the template, then click Queue or press Ctrl(cmd) + Enter. For building your own graphs rather than loading templates, our ComfyUI SDXL and FLUX workflow tutorial goes further.

The earlier version of this guide also queued a saved workflow from a script instead of the Queue button, and that step is kept here as a sketch. It uses only Python’s standard library and reads a workflow file you saved yourself as flux_workflow_api.json; set SERVER_URL to the prompt endpoint of your own ComfyUI server before running it.

import json
import urllib.request

SERVER_URL = "address of the prompt endpoint on your ComfyUI server"

def queue_prompt(prompt_workflow):
    data = json.dumps({"prompt": prompt_workflow}).encode("utf-8")
    req = urllib.request.Request(SERVER_URL, data=data)
    return json.loads(urllib.request.urlopen(req).read())

with open("flux_workflow_api.json") as f:
    workflow = json.load(f)

print(queue_prompt(workflow))

If you chose Schnell, the Unsloth FLUX.1-schnell GGUF page on Hugging Face says FLUX.1 [schnell] can generate high-quality images in only 1 to 4 steps, so start in that range rather than raising the step count.

For the prompt itself, BFL’s prompting guide says to “Use sentences to connect details such as where the light falls and what is in focus”. Following that, write a sentence such as “a red fox sitting in fresh snow at dusk, soft blue light, shallow depth of field” rather than a tag list like “fox, snow, cinematic, 8k”.

One workflow is worth knowing about once the basic run works. The USO workflow comes from ByteDance’s UXO Team and unifies style-driven and subject-driven generation. As checked on 12 November 2026, the tutorial says USO supports three main approaches: subject-driven (placing subjects into new scenes while keeping identity consistent), style-driven (applying artistic styles to new content from reference images) and combined (using both references at once). It adds that you can bypass the whole Style Reference group and use the workflow as plain text-to-image. The docs say a reference image set to 1024px gives much better results than 512px, which can leave the character taking up too much space. Its EasyCache node speeds up inference but sacrifices some quality and detail, and Ctrl+B bypasses it.

Failures by symptom, with the cause and the fix

SymptomCauseFix
The GPU check in the install script failsPyTorch build that cannot see the GPU, or older than the README’s cu130 requirementReinstall a cu130-or-newer build from pytorch.org and rerun the torch.cuda.is_available() check
Out of memory or the model will not loadFile too large for the cardUse flux1-krea-dev_fp8_scaled.safetensors with the fp8 T5-XXL, or Klein 4B distilled; the docs say very low VRAM may need community FP8 or GGUF versions
Loader nodes show missing filesFiles do not match the tutorial list for the release, or ComfyUI has not rescanned the foldersReplace the VAE and text encoders with the set listed for your diffusion model in the file table, then restart or refresh so the lists update
DualCLIPLoader slots are wrong or emptyText encoders in the wrong slotsPut the T5-XXL file in clip_name1 and clip_l.safetensors in clip_name2
Download refused or unauthorizedConditions on the model’s repository not acceptedLog in to Hugging Face and accept the conditions on the repository page (FLUX.1 Dev, Klein 9B)
The FLUX template is missingComfyUI is out of dateUpdate ComfyUI, then reopen Workflow Templates
Manager is missing or will not startDesktop starts Manager with a flag, and the old git-clone route is legacyOn Desktop use –enable-manager; on a manual install that you cloned into custom_nodes, also run pip install -r requirements.txt
Elias Virtanen

Elias Virtanen

Games and consoles

Elias Virtanen covers games and consoles for Tech Insider: console and handheld hardware, game releases, emulators and the business of the games industry. His comparisons start from the makers' specifications and published independent results, and he says plainly what the evidence supports.

View all articles