Krea2 Regional Prompt
Prompt, mask, optional LoRA
- conditioning
- mask
- loras
- prev_regions
- KREA2_REGIONS
Most people will never need this node, and that's fine. Krea2 Regional Prompt is the lower-level building block that the pack's Builder hides from you: it takes one already-encoded CONDITIONING, one MASK, and optionally a KREA2_LORAS list, and packages them into a single KREA2_REGIONS entry. Chain several together and you've built, by hand, exactly the region set the Builder would have produced from its canvas.
You reach for it when a canvas is the wrong interface: your regions come from somewhere else, or you're assembling them programmatically. Maybe your masks are the output of a segmentation node rather than something you drew. Maybe you want a workflow where region geometry is computed, not clicked.
How it works
It's the purest node in the pack - no hidden state, no canvas, no serialization. The conditioning (from any CLIP Text Encode node on your Krea 2 CLIP) becomes the region's prompt. The mask defines its footprint, and it's passed through as-is: there's no grow/feather here, so if you want softened edges you apply that to the mask before it arrives. The optional loras list comes from a Krea2 Regional LoRA chain, and prev_regions lets you append to an existing region list instead of starting one.
The output KREA2_REGIONS plugs straight into Krea2 Apply Regional's regions input, exactly like the Builder's. That's the whole contract - the node is a bridge between standard ComfyUI types (CONDITIONING + MASK) and the pack's custom KREA2_REGIONS type.
Inputs that matter
Really just the two required ones. conditioning must be encoded with the same Krea 2 CLIP you're using for the base prompt (mixing encoders is how you get silent garbage). mask should match your width/height - the attention masking in Apply Regional projects masks onto the latent token grid, and a mask that doesn't match canvas dimensions is asking for weirdness.
The two optional inputs are what make it a building block rather than a dead end: loras attaches per-region LoRAs (remember the 1.3–1.6 strength guidance from the Krea2 Regional LoRA node - a region-masked LoRA needs more than global strength), and prev_regions chains regions together so one node per region composes into a full layout.
Install
Part of the Krea2 Regional pack:
cd ComfyUI/custom_nodes
git clone https://github.com/januspluto/ComfyUI-Krea2-Regional.git
or search Krea2 Regional in ComfyUI Manager, then restart. Needs ComfyUI with native Krea 2 support (v0.26+); no extra dependencies.
When to skip it
If you're drawing boxes on a canvas, the Builder does this plus a lot more (per-region LoRA dropdowns, layout-in-base prompt injection, caption import) for less effort - and its layout_in_base position hints are a big part of getting subjects to actually land where you put them. Hand-built regions via this node don't get that for free; you'd have to put the placement into your own base prompt. Where this node shines is automation: masks from a detector, prompts from a template, and a layout that rebuilds itself every run.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| conditioning | CONDITIONING | — | |
| mask | MASK | — | |
| lorasopt | KREA2_LORAS | — | |
| prev_regionsopt | KREA2_REGIONS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| KREA2_REGIONS | KREA2_REGIONS | — |