ComfyUI Node
K2 Region
Defines one named pixel-space region for Krea 2 regional prompting. The box is given in output pixels of the final image. Its prompt is compiled into the unified Krea prompt with an explicit location clause, and the K2 attention router binds exactly those text tokens to the image tokens inside this box. Chain several Region nodes through the 'regions' input to build a layout.
K2 Region
- regions
- regions
◄nameSubject►
◄prompt►
◄x0►
◄y0►
◄width512►
◄height1024►
◄roleauto►
◄priority100►
◄enabledtrue►
◄identity_prompt►
◄negative_prompt►
◄region_id►
CategoryFVM Tools/K2
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| name | STRING | Subject | Human readable label. Used in the generated spatial instructions ('Anna is to the left of Bea'), in face assignment and in the report. Keep it short and distinct. |
| prompt | STRING | What should appear inside this box. An empty prompt disables the region. | |
| x | INT | 00–16384 | Left edge in output pixels. |
| y | INT | 00–16384 | Top edge in output pixels. |
| width | INT | 51216–16384 | Box width in output pixels. |
| height | INT | 102416–16384 | Box height in output pixels. |
| role | COMBO | auto | subject: full outside penalty, competes with other subjects for overlapping tokens. background: softer penalty, may feather beyond its box. auto: boxes covering >=70% of canvas width become background. |
| priority | INT | 100-1000–1000 | Higher compiles first and claims ambiguous detected faces first. It is NOT a strength and NOT an image z-index. |
| enabled | BOOLEAN | true | Exclude the region without deleting it. |
| regionsopt | K2_REGION | Chain input: previously defined regions. | |
| identity_promptopt | STRING | Face/identity description. It is placed first in the clause, can be protected from the projector delta, and is preferred by K2 Face Detail. | |
| negative_promptopt | STRING | Region-local negative text. Stored for tooling; Krea 2 Turbo has no separate regional negative branch (CFG-free). | |
| region_idopt | STRING | Stable internal id. Leave empty for an automatic one. Regional LoRAs reference regions by name or id. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| regions | K2_REGION | — |