K2 Compose
Compiles regions, regional LoRAs, emphases and the projector into a patched Krea 2 MODEL plus ordinary CONDITIONING, LATENT and MASK. What happens here: 1. every enabled region prompt is compiled into one unified Krea prompt with explicit location clauses and inter-subject relationships; 2. the compiled prompt is tokenized so each clause knows its token span; 3. the spatial attention router is installed on the model branch; 4. regional LoRAs are installed as unfused, token-gated forward adapters; 5. the projector delta is applied (token-selective if identity protection is on). Outputs stay standard types, so the patched model can feed ControlNet, guiders or any sampler. Use K2 Sampler when late-step relaxation or LoRA-delta adaptation is enabled.
- model
- clip
- regions
- loras
- emphasis
- projector
- tuning
- model
- positive
- negative
- latent
- mask
- plan
- compiled_prompt
- report
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | Krea 2 MODEL. It is cloned and patched; the incoming branch stays untouched. | |
| clip | CLIP | CLIPLoader with type 'krea2' (Qwen3-VL). | |
| global_prompt | STRING | Scene-wide description — keep people OUT of it. Regional clauses are appended after it. Image tokens outside every region see only this text, so a person mentioned here is drawn there. Measured with two regions: scene-only → 2 faces, '…a woman standing…' → 3, 'group portrait…' → 5. | |
| negative_prompt | STRING | Global negative. Krea 2 Turbo runs CFG-free, so this only matters with CFG > 1. | |
| width | INT | 102464–16384 | Output width AND the coordinate system for every region box. Changing it moves all boxes. |
| height | INT | 102464–16384 | Output height and vertical box coordinate system. |
| batch_size | INT | 11–64 | Region and LoRA routing is broadcast across the batch. |
| regionsopt | K2_REGION | Region chain. Without it this behaves like a plain prompt encode. | |
| lorasopt | K2_LORA | LoRA assignments from K2 Regional LoRA. | |
| emphasisopt | K2_EMPHASIS | Phrase emphases. | |
| projectoropt | K2_PROJECTOR | Projector delta. | |
| tuningopt | K2_TUNING | Spatial tuning. Defaults are used when nothing is connected. |
Outputs (8)
| Name | Type | Description |
|---|---|---|
| model | MODEL | — |
| positive | CONDITIONING | — |
| negative | CONDITIONING | — |
| latent | LATENT | — |
| mask | MASK | — |
| plan | K2_PLAN | — |
| compiled_prompt | STRING | — |
| report | STRING | — |