ComfyUI-gen2
Custom ComfyUI nodes for QwenImage ControlNet achieving 100% output compatibility with VideoX-Fun's diffusers pipeline while leveraging ComfyUI's efficient model loading system.
Nodes (29)
Where the Flux2 Fun ControlNet actually happens — and why it won't break your other workflows
Make your Ideogram4 LoRA turn itself up and down
Wrapping the model with VideoX control context
The 30-second calibration pattern generator
Stacking two Flux2 Fun controls — if you like living on the experimental edge
Binding your Ideogram4 embedding to its 36 text-encoder LoRAs
When a ComfyUI upgrade silently changed your Klein output
The Ideogram4 LoRA loader that speaks Ostris AI-Toolkit's weird key names
When your Ideogram4 trigger quietly does nothing, this node tells you why
The V9 text encoder that turns one literal trigger into four token slots
One Configure dialog instead of a tangle of INPUT_* nodes
A soft-denoise patch for LanPaint inpainting that learns as it goes
The ControlNet loader that refuses to load anything but the official FLUX.2 Fun file
The Ideogram4 LoRA router loader, with receipts
The [4,H] embedding loader
36 tiny text-encoder LoRAs that make your Ideogram4 trigger hit
The loader for VideoX-style Qwen ControlNets
Chainable LoRA loading for the VideoX pipeline
The VAE that speaks VideoX's dialect
Stop fishing OUTPUT_* constants out of the API export
The node that packs your control image into Flux.2 Fun's exact 260-channel token soup
VideoX's exact prompt encoding, not ComfyUI's
The VideoX denoise loop with True CFG
The second pass that kills ghosted tile seams
Compositing regenerated seam strips without new artifacts
The boring node that makes dynamic prompts work
The per-tile masks that make tiled inpaint actually work
The blend modes that decide whether your tile seams show
Clean auto-grid tiles with context halos, no math homework
ComfyUI-gen2
Custom nodes for API-driven workflows, LanPaint inpainting, and everyday image and text tasks.
API panels
Gen2 Input Panel
Bring a workflow's controls into one node. Define up to 32 named inputs: text, integers, decimals, booleans, images, dropdown choices, and seeds.
Set defaults, numeric ranges, and step sizes in Configure. Upload images from the panel and choose whether seeds stay fixed or change between runs. Connect each parameter to the part of your workflow it controls.
Gen2 Output Panel
Collect named results from your workflow in one place. Preview and save images, inspect text and numeric results, and copy the combined inputs and outputs as JSON.
Connect the Input Panel's PANEL_LINK output to this node to keep each run's parameters alongside its results. Together, the panels define the inputs and outputs for workflows you call through an API.
LanPaint inpainting
Gen2 LanPaint Soft Denoise Patch
Use a soft mask to control how strongly LanPaint preserves the source image across an edit. Adjust blending strength over the sampling steps, and choose whether the reference follows the original image, the latest generated result, or a moving average.
Requires the separate LanPaint custom node pack. Connect this node's patched model to your LanPaint sampler and supply a soft mask for the preservation blend.
Image and text utilities
Gen2 Checkerboard
Generate a black-and-white checkerboard image with your own width, height, and block size. Useful for test images, backgrounds, and checking image alignment.
Gen2 StringReplace
Replace every occurrence of a piece of text in a string. Useful for prompt templates and placeholder substitution. Matching is literal and case-sensitive.
Experimental
Gen2 Flux.2 Klein Fix
An optional compatibility patch that restores older Flux.2 Klein sampling behavior for reference-image and masked-inpainting workflows affected by ComfyUI's #12905 change.
Use it only when you need that earlier behavior. It is experimental and should not be combined with Flux KV-cache features.
Installation
Find ComfyUI-gen2 in ComfyUI Manager, or run this command from your ComfyUI/custom_nodes directory:
git clone https://github.com/petmycat/ComfyUI-gen2.git
Restart ComfyUI, then search for Gen2 in the node menu. Requires ComfyUI v0.28.0 or newer.
Upgrading from 2.x
Version 3 ships the six nodes listed above. Older Qwen Image, Flux.2 Fun ControlNet, Ideogram, AITK loader, pose, and tiling nodes are no longer included. Keep a 2.x installation for workflows that still depend on them.