Skip to content

Commit 2b42ca9

Browse files
committed
docs: add Krea 2 partner node documentation (EN/ZH/JA)
- Tutorial pages for Krea 2 Image and Krea 2 Style Reference workflows - Built-in node parameter reference pages for both nodes - Registered in navigation sidebar for all three languages - Includes workflow thumbnails and style reference sample images
1 parent 4463ce6 commit 2b42ca9

10 files changed

Lines changed: 990 additions & 0 deletions

File tree

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
---
2+
title: "Krea 2 Image - ComfyUI Built-in Node Documentation"
3+
description: "A Krea Partner node that generates images via Krea 2 with tunable creativity, style references, and moodboard conditioning"
4+
sidebarTitle: "Krea 2 Image"
5+
icon: "circle"
6+
---
7+
8+
![ComfyUI Built-in Krea 2 Image Node](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg)
9+
10+
The Krea 2 Image node generates images via Krea 2 — pick Medium (expressive illustrations) or Large (expressive photorealism). Supports an optional moodboard and up to 10 chained image style references.
11+
12+
## Parameters
13+
14+
### Basic Parameters
15+
16+
| Parameter | Type | Default | Description |
17+
| --------- | ------ | ----------- | ------------------------------------------ |
18+
| prompt | string | "" | Text prompt for the image generation |
19+
| seed | int | 0 | Random seed for reproducibility |
20+
21+
### Model Parameters (Dynamic)
22+
23+
The `model` parameter is a dynamic combo that changes based on the selected model variant:
24+
25+
| Parameter | Type | Default | Description |
26+
| ------------------- | ------ | -------- | ----------------------------------------------------- |
27+
| model | select | Medium | Krea 2 Medium (illustration) or Krea 2 Large (photorealism) |
28+
| aspect_ratio | select | 1:1 | Output aspect ratio |
29+
| resolution | select | 1K | Resolution scale |
30+
| creativity | select | medium | Prompt interpretation strength |
31+
| moodboard_id | string | "" | Optional Krea moodboard UUID |
32+
| moodboard_strength | float | 0.35 | Moodboard influence (-0.5 to 1.5) |
33+
| style_reference | chain || Optional chain of style references |
34+
35+
### Aspect Ratio Options
36+
37+
`1:1`, `4:3`, `3:2`, `16:9`, `2.35:1`, `4:5`, `2:3`, `9:16`
38+
39+
### Creativity Levels
40+
41+
| Level | Description |
42+
| ------ | -------------------------------------------- |
43+
| raw | Stays closest to the prompt |
44+
| low | Slight creative interpretation |
45+
| medium | Balanced creativity and prompt adherence |
46+
| high | Maximum aesthetic depth and visual richness |
47+
48+
## Pricing
49+
50+
| Configuration | Medium | Large |
51+
| ---------------------------- | ------ | ----- |
52+
| Text to image (no extras) | $0.03 | $0.06 |
53+
| + Style reference(s) | $0.035 | $0.065|
54+
| + Moodboard | $0.04 | $0.07 |
55+
56+
## Output
57+
58+
| Output | Type | Description |
59+
| ------ | ----- | ------------------- |
60+
| IMAGE | image | Generated image(s) |
61+
62+
## Source Code
63+
64+
[View source code on GitHub](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py)
65+
66+
```python
67+
class Krea2ImageNode:
68+
"""
69+
Generate images via Krea 2 — pick Medium (expressive illustrations) or
70+
Large (expressive photorealism). Supports an optional moodboard and up
71+
to 10 chained image style references.
72+
"""
73+
74+
RETURN_TYPES = (IO.IMAGE,)
75+
DESCRIPTION = cleandoc(__doc__ or "")
76+
FUNCTION = "execute"
77+
API_NODE = True
78+
CATEGORY = "image/partner/Krea"
79+
80+
@classmethod
81+
def INPUT_TYPES(s):
82+
return {
83+
"required": {
84+
"prompt": (
85+
IO.STRING,
86+
{
87+
"multiline": True,
88+
"default": "",
89+
"tooltip": "Text prompt for the image.",
90+
},
91+
),
92+
"model": (
93+
IO.DynamicCombo(
94+
options=[
95+
IO.DynamicCombo.Option(
96+
"Krea 2 Medium",
97+
[
98+
IO.Combo.Input("aspect_ratio", ...),
99+
IO.Combo.Input("resolution", ...),
100+
IO.Combo.Input("creativity", ...),
101+
IO.String.Input("moodboard_id", ...),
102+
IO.Float.Input("moodboard_strength", ...),
103+
IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...),
104+
],
105+
),
106+
IO.DynamicCombo.Option(
107+
"Krea 2 Large",
108+
[/* same structure */],
109+
),
110+
],
111+
),
112+
),
113+
"seed": (
114+
IO.INT,
115+
{
116+
"default": 0,
117+
"min": 0,
118+
"max": 2147483647,
119+
"control_after_generate": True,
120+
},
121+
),
122+
}
123+
}
124+
```
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
---
2+
title: "Krea 2 Style Reference - ComfyUI Built-in Node Documentation"
3+
description: "A Krea Partner node that adds an image style reference to a Krea 2 generation"
4+
sidebarTitle: "Krea 2 Style Reference"
5+
icon: "circle"
6+
---
7+
8+
![ComfyUI Built-in Krea 2 Style Reference Node](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg)
9+
10+
The Krea 2 Style Reference node adds an image style reference to a Krea 2 generation. Chain multiple Krea 2 Style Reference nodes (max 10) and feed the final `style_reference` output into Krea 2 Image. Each image is uploaded to ComfyAPI storage and passed as URL.
11+
12+
## Parameters
13+
14+
| Parameter | Type | Default | Description |
15+
| --------------- | ------ | ------- | ---------------------------------------------- |
16+
| image | image || Reference image whose style influences the generation |
17+
| strength | float | 1.0 | Reference strength (-2.0 to 2.0) |
18+
| style_reference | chain || Optional incoming chain of style references |
19+
20+
### Strength
21+
22+
The `strength` parameter controls how strongly the reference image's style influences the output:
23+
24+
- **Positive values (0.0 to 2.0):** Apply the reference style with increasing intensity
25+
- **Negative values (-2.0 to 0.0):** Invert the style influence
26+
- **0.0:** No style influence
27+
28+
## Output
29+
30+
| Output | Type | Description |
31+
| --------------- | ----- | ---------------------------------------- |
32+
| style_reference | chain | Chained style reference for Krea 2 Image |
33+
34+
## Source Code
35+
36+
[View source code on GitHub](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py)
37+
38+
```python
39+
class Krea2StyleReferenceNode:
40+
"""
41+
Add an image style reference to a Krea 2 generation. Chain multiple Krea 2
42+
Style Reference nodes (max 10) and feed the final `style_reference` output
43+
into Krea 2 Image.
44+
"""
45+
46+
RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),)
47+
DESCRIPTION = cleandoc(__doc__ or "")
48+
FUNCTION = "execute"
49+
API_NODE = True
50+
CATEGORY = "image/partner/Krea"
51+
52+
@classmethod
53+
def INPUT_TYPES(s):
54+
return {
55+
"required": {
56+
"image": (
57+
IO.IMAGE,
58+
{
59+
"tooltip": "Reference image whose style influences the generation.",
60+
},
61+
),
62+
"strength": (
63+
IO.FLOAT,
64+
{
65+
"default": 1.0,
66+
"min": -2.0,
67+
"max": 2.0,
68+
"step": 0.05,
69+
"tooltip": "Reference strength; negative values invert the style influence.",
70+
},
71+
),
72+
},
73+
"optional": {
74+
"style_reference": (
75+
IO.Custom(KreaIO.STYLE_REF),
76+
{
77+
"tooltip": "Optional incoming chain of style references.",
78+
},
79+
),
80+
},
81+
}
82+
```

docs.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,12 @@
423423
"tutorials/partner-nodes/recraft/recraft-text-to-image"
424424
]
425425
},
426+
{
427+
"group": "Krea",
428+
"pages": [
429+
"tutorials/partner-nodes/krea/krea2-image"
430+
]
431+
},
426432
{
427433
"group": "Kling",
428434
"pages": [
@@ -1029,6 +1035,13 @@
10291035
"built-in-nodes/partner-node/image/recraft/save-svg"
10301036
]
10311037
},
1038+
{
1039+
"group": "Krea",
1040+
"pages": [
1041+
"built-in-nodes/partner-node/image/krea/krea2-image",
1042+
"built-in-nodes/partner-node/image/krea/krea2-style-reference"
1043+
]
1044+
},
10321045
{
10331046
"group": "Runway",
10341047
"pages": [
@@ -2599,6 +2612,12 @@
25992612
"zh/tutorials/partner-nodes/recraft/recraft-text-to-image"
26002613
]
26012614
},
2615+
{
2616+
"group": "Krea",
2617+
"pages": [
2618+
"zh/tutorials/partner-nodes/krea/krea2-image"
2619+
]
2620+
},
26022621
{
26032622
"group": "Kling",
26042623
"pages": [
@@ -3221,6 +3240,13 @@
32213240
"zh/built-in-nodes/partner-node/image/recraft/save-svg"
32223241
]
32233242
},
3243+
{
3244+
"group": "Krea",
3245+
"pages": [
3246+
"zh/built-in-nodes/partner-node/image/krea/krea2-image",
3247+
"zh/built-in-nodes/partner-node/image/krea/krea2-style-reference"
3248+
]
3249+
},
32243250
{
32253251
"group": "Stability AI",
32263252
"pages": [
@@ -4780,6 +4806,12 @@
47804806
"ja/tutorials/partner-nodes/recraft/recraft-text-to-image"
47814807
]
47824808
},
4809+
{
4810+
"group": "Krea",
4811+
"pages": [
4812+
"ja/tutorials/partner-nodes/krea/krea2-image"
4813+
]
4814+
},
47834815
{
47844816
"group": "Kling",
47854817
"pages": [
@@ -5402,6 +5434,13 @@
54025434
"ja/built-in-nodes/partner-node/image/recraft/save-svg"
54035435
]
54045436
},
5437+
{
5438+
"group": "Krea",
5439+
"pages": [
5440+
"ja/built-in-nodes/partner-node/image/krea/krea2-image",
5441+
"ja/built-in-nodes/partner-node/image/krea/krea2-style-reference"
5442+
]
5443+
},
54055444
{
54065445
"group": "Stability AI",
54075446
"pages": [

0 commit comments

Comments
 (0)