ππ FlowState Flux Engine
One node that loads, patches, and samples Flux β without the spaghetti
- model
- clip
- vae
- input_img
- latent
- model
- clip
- vae
- image
- latent
- VAE
- IMAGE
- IMAGE
A stock ComfyUI Flux graph needs seven or eight nodes just to render one image: a loader, two CLIP loaders, a VAE loader, a dual text-encode, FluxGuidance, a sampler, a decoder. FlowState Flux Engine collapses that whole row into a single box. You pick a model, type a prompt, hit go. It's the node you reach for when you've built the same Flux sampler graph for the tenth time and just want to generate.
What it does under the hood
Nothing exotic - it's a thin, well-organized wrapper over ComfyUI's own building blocks. It loads your Flux model (as a solo diffusion_models/unets file via UNETLoader, or as a checkpoint, which bundles CLIP and VAE), loads the two text encoders with DualCLIPLoader, applies FluxGuidance at your guidance value, and samples with SamplerCustomAdvanced. Crucially it does the whole thing itself and also passes the loaded model, clip, and vae out, so you can still grab them and wire a detailer or upscaler downstream without re-loading anything.
Inputs that matter
model_filetype-solo_modelvscheckpoint. Pick checkpoint and theweight_dtype,clip_1_name,clip_2_name, andvae_namefields are ignored - the tooltip says so, and it's right: they're inside the checkpoint.model_name- the Flux model itself. This is the enum with no choices in the schema because it's populated from whatever's in yourdiffusion_models,checkpoints, andunetsfolders.guidance- defaults to 3.2. Flux is a flow-matching, guidance-distilled model; this is not SDXL, so your old CFG 7 habits do not apply. Leave it near default and tune in small steps.steps(32) anddenoise(1.0) - at 1.0 it's pure text-to-image; drop denoise below 1 and feed an image via the optionalinput_imginput for img2img work.resolution/orientation/latent_type- the preset list (18 ratios, heavy on 16:9 and 21:9 for production work) or Custom, plus whether to start from empty latents or an input image.seed,sampling_algorithm(44 choices),scheduling_algorithm(9) - the usual sampler knobs, in case you want euler over dpmpp_2m.lora_model+lora_strength, andsage_attention- the two patching options. The LoRA is applied model-only viaLoraLoaderModelOnly; Sage Attention is an optional speed patch that only ever shows a real mode if you have Sage Attention and KJNodes installed.
Outputs
model, clip, vae - the loaded components, for reuse. image (IMAGE) - the decoded result. latent (LATENT) - the same result pre-decode, for chaining another pass. You can honestly ignore all but image.
Install
Part of the FlowState Creator Suite, so the pack install is the whole story:
cd ComfyUI/custom_nodes
git clone https://github.com/flowstateeng/FlowState-Creator-Nodes
then restart, or use ComfyUI Manager and search FlowState-Creator-Nodes. The pack has no pip requirements - it wraps ComfyUI core. What you supply is the model: a Flux model (solo or checkpoint), and if solo, the dual CLIP (clip_1 + clip_2) and a VAE.
Common issues
The sage_attention menu stuck on "disabled" is the top complaint, and it's expected: the suite checks at startup whether Sage Attention and KJNodes are both present and only then exposes the modes. Sage Attention itself is famously fiddly to install because it needs a wheel matching your exact PyTorch/CUDA build - grab the right wheel from the SageAttention releases page rather than plain pip install. And if your output looks overcooked, your guidance is too high - that's the number people actually fiddle with. Everything else in this node is a convenience wrapper; the model selection and the guidance slider are where the real control lives.
Inputs (33)
| Name | Type | Default | Description |
|---|---|---|---|
| model_label | STRING | --- π€ Model Settings --- | Label -------------------------------- - This field is not functional. It is just a label for the group of settings below. |
| model_filetype | COMBO | Model File Type -------------------------------- - The type of model file to load. - Checkpoints (typically for fp8 models) contain the CLIP & VAE. - If using a checkpoint, then the weight_dtype, clip_1_name, clip_2_name & vae_name fields will ignored. | |
| model_name | COMBO | Full Diffusion Model List -------------------------------- - List of all available Diffusion Models (diffusion_models, checkpoints & unets folders). | |
| weight_dtype | COMBO | Weight Datatype (DType) -------------------------------- - The data type to be used for your models weights. | |
| aumentation_label | STRING | --- π₯ Augmentation Settings --- | Label -------------------------------- - This field is not functional. It is just a label for the group of settings below. |
| sage_attention | COMBO | Sage Attention Mode -------------------------------- - The type of Sage Attention to use. - This field will only show as "disabled" if you do not have the capability to run Sage Attention. | |
| lora_model | COMBO | LoRA List -------------------------------- - List of available Low-Rank Adaptation models. - Used to transfer a pre-trained style (cyberpunk, anime, photorealism, disney, etc.) to a generated output image. | |
| lora_strength | FLOAT | 1.000β1 | Low Rank Adaptation Model (LoRA) -------------------------------- - The LoRA used to patch your diffusion model. |
| encoders_label | STRING | --- π£ Encoder Settings --- | Label -------------------------------- - This field is not functional. It is just a label for the group of settings below. |
| clip_1_name | COMBO | CLIP / Text Encoder List -------------------------------- - List of available Text Encoders and CLIP models. - Used to convert your text prompts into semantic attention vectors (i.e., numbers) that the model can process. - Contrastive Language-Image Pre-training (CLIP) | |
| clip_2_name | COMBO | CLIP / Text Encoder List -------------------------------- - List of available Text Encoders and CLIP models. - Used to convert your text prompts into semantic attention vectors (i.e., numbers) that the model can process. - Contrastive Language-Image Pre-training (CLIP) | |
| vae_name | COMBO | VAE List -------------------------------- - List of available Variational Autoencoders (VAE). - Used to encode and decode images. | |
| image_label | STRING | --- πΌοΈ Image Settings --- | Label -------------------------------- - This field is not functional. It is just a label for the group of settings below. |
| resolution | COMBO | Resolution Selector -------------------------------- - Select "Custom" to use the entered custom_width & custom_height. - Select a preset resolution & orientation. | |
| orientation | COMBO | Orientaion Selector -------------------------------- - Resolutions given in horizontal orientation. Select vertical to swap resolution aspect ratio. | |
| latent_type | COMBO | Latent Type -------------------------------- - Your choice of an empty latent (all zeros) or an image as a latent. | |
| custom_width | INT | 102416β16384 | Width -------------------------------- - Defines the width of the image. |
| custom_height | INT | 102416β16384 | Height -------------------------------- - Defines the height of the image. |
| custom_batch_size | INT | 11β4096 | Custom Batch Size -------------------------------- - The number of images you want to generate. |
| sampling_label | STRING | --- π§ͺ Sampling Settings --- | Label -------------------------------- - This field is not functional. It is just a label for the group of settings below. |
| seed | INT | 32-9223372036854776000β9223372036854776000 | Seed -------------------------------- - Seed used to generate inital random noise. |
| sampling_algorithm | COMBO | Sampling Algorithm -------------------------------- - List of available Sampling Algorithms. - Used to control the noise removal during the sampling process. | |
| scheduling_algorithm | COMBO | Scheduling Algorithm -------------------------------- - List of available Scheduling Algorithms. - Used to control the denoising steps during the sampling process. | |
| guidance | FLOAT | 3.20β100 | Guidance -------------------------------- - Defines the number of steps to take in the sampling process. |
| steps | INT | 321β10000 | Steps -------------------------------- - Defines the number of steps to take in the sampling process. |
| denoise | FLOAT | 1.000β1 | Sampler Denoise Amount -------------------------------- - The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling. |
| prompt_label | STRING | --- π Prompt(s) --- | Label -------------------------------- - This field is not functional. It is just a label for the group of settings below. |
| prompt | STRING | β Describe the image you want Flux to create. | Positive Prompt -------------------------------- - β Describe the image you want Flux to create. |
| modelopt | MODEL | Input Model -------------------------------- - Diffusion model to be used in sampling. | |
| clipopt | CLIP | CLIP / Text Encoder Model -------------------------------- - The CLIP / Text Encoder model used for encoding the text. | |
| vaeopt | VAE | Variational AutoEncoder (VAE) -------------------------------- - The VAE model used for encoding and decoding images. | |
| input_imgopt | IMAGE | β | |
| latentopt | LATENT | Latent Image -------------------------------- - Input latent image for diffusion sampling. |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| model | MODEL | The selected Diffusion Model. |
| clip | CLIP | The selected CLIP. |
| vae | VAE | The selected VAE. |
| image | MODEL | The image batch. |
| latent | CLIP | The latent batch. |
| VAE | VAE | β |
| IMAGE | IMAGE | β |
| IMAGE | IMAGE | β |