Give each reference image a job before it reaches Krea.
Krea Reference is a small ComfyUI custom-node package for directing Krea 2 with multiple image references. Instead of one source image vaguely influencing the whole result, each image gets a clear role: preserve the subject, borrow a visual style, copy lighting, suggest a material, follow a layout, or avoid copying text and logos.
The demo images above were generated with the included workflows. Each individual PNG in docs/assets/krea-v9/demos has ComfyUI workflow metadata embedded, so you can drag a demo PNG into ComfyUI to inspect the exact setup.
| Goal | How to set it up |
|---|---|
| Put image 2's style onto image 1 | Image 1: keep the same subject at 0.80. Image 2: suggest the visual style at 0.45 to 0.65. |
| Keep a product or character recognizable | Use keep the same subject for the identity image, then add lower-strength style, lighting, or material cards. |
| Borrow lighting without copying the subject | Use copy lighting and mood around 0.30 to 0.45. |
| Borrow a surface or finish | Use suggest material or texture around 0.25 to 0.40. |
| Follow a pose, crop, or composition | Use copy pose and layout or copy big shapes only at gentle to medium strength. |
| Use a reference that contains text or logos | Add avoid copying text/logos at very low strength, usually around 0.03. |
Each guide card answers two questions:
- What should Krea borrow from this image?
- How strongly should this image guide the result?
The stack encoder combines the written prompt and all connected guide cards:
Load Image -> KG Krea 2 Image Guide Card V9 -> KG Krea 2 Reference Stack Encoder V9 -> KSampler positive input
That makes multi-reference workflows easier to reason about. A product image can be responsible for the subject, an abstract image can be responsible for style, a third image can be responsible for lighting, and a fourth can protect against text/logo copying.
| Node | Purpose |
|---|---|
KG Krea 2 Image Guide Card V9 |
Describes one reference image. Choose a recipe or use manual tuning. |
KG Krea 2 Reference Stack Encoder V9 |
Combines the final prompt and up to 12 guide cards into Krea conditioning. |
The nodes expose plain-language controls for prompt strength, image strength feel, image detail level, framing, timing, and text/logo guard behavior.
Clone this repo into your ComfyUI custom_nodes directory and restart ComfyUI:
cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/kgilper/krea-reference.gitThis repo does not include model weights. Use your own Krea-compatible model, CLIP, and VAE files in ComfyUI.
- Copy example_assets/krea-reference-examples into your ComfyUI
input/folder. - Load example_workflows/krea-v9-full-showcase-workflow.json.
- Queue it once with the included synthetic reference images.
- Replace the Load Image nodes with your own test images.
- On each guide card, choose
Use image forand adjustHow strongly this image guides.
The full showcase demonstrates five roles:
| Slot | Recipe | Starting Strength |
|---|---|---|
| Content anchor | keep the same subject |
0.80 |
| Visual style | suggest the visual style |
0.65 |
| Material/texture | suggest material or texture |
0.35 |
| Lighting/mood | manual tuning with lighting controls |
0.45 |
| Text/logo guard | avoid copying text/logos |
0.03 |
These examples show the effect of common guide-card recipes. Open the linked PNG or drag it into ComfyUI to load the embedded workflow.
| Workflow | Best for |
|---|---|
| krea-v9-full-showcase-workflow.json | First run. Shows content, style, material, lighting, and text/logo guard cards together. |
| krea-v9-no-prompt-style-transfer-workflow.json | Applying image 2's style to image 1 with no written prompt. |
| krea-v9-reference-stack-workflow.json | Compact starter graph for building your own multi-reference workflow. |
The examples intentionally avoid LoRA, model-enhancer, and switch-node plumbing so the Krea reference nodes are easy to inspect.
| Strength | Meaning | Good uses |
|---|---|---|
0.00 |
Off | Keep a card connected but inactive. |
0.03 to 0.08 |
Tiny nudge | Text/logo guard, shape hints, stubborn prompts. |
0.10 to 0.25 |
Gentle guidance | Layout, material, mood-board influence. |
0.25 to 0.45 |
Strong guidance | Lighting, texture, pose, broad style. |
0.50 to 0.90 |
Very strong | Content anchor or deliberate style transfer. Watch for over-copying. |
Tips:
- Start strengths low and raise slowly.
- Use
0.80only when the main subject must stay stable. - Lower
Image detail levelif a style image starts copying the wrong subject. - Raise
Written prompt strengthwhen the text prompt should win over references. - Use text/logo guard whenever a reference includes readable marks.
| Start here | What it contains |
|---|---|
| V9 visual HTML guide | Full visual walkthrough with all recipes and embedded-workflow demo PNGs. |
| V9 Markdown user guide | Same guide in Markdown form for GitHub reading. |
| Documentation landing page | Short navigation by task. |
| Node documentation index | Per-node input and output details. |
| Technical paper | How and why the nodes work: architecture, math, verification, extension and porting guides. |
| Example workflows | What each bundled workflow is for. |
| Testing guide | Maintainer checks for contract tests and workflow validation. |
The contract tests run without launching ComfyUI:
python -m unittest discover -s tests -p "test_*.py" -v
python -m compileall -q kg_krea_v9 __init__.pyMIT. See LICENSE.







