From 2b42ca91e233895e98a94a52688dc8a7bb7aad1f Mon Sep 17 00:00:00 2001 From: lin-bot23 Date: Thu, 28 May 2026 14:35:39 +0800 Subject: [PATCH 1/4] 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 --- .../partner-node/image/krea/krea2-image.mdx | 124 ++++++++++++++++++ .../image/krea/krea2-style-reference.mdx | 82 ++++++++++++ docs.json | 39 ++++++ .../partner-node/image/krea/krea2-image.mdx | 124 ++++++++++++++++++ .../image/krea/krea2-style-reference.mdx | 82 ++++++++++++ .../partner-nodes/krea/krea2-image.mdx | 111 ++++++++++++++++ tutorials/partner-nodes/krea/krea2-image.mdx | 111 ++++++++++++++++ .../partner-node/image/krea/krea2-image.mdx | 124 ++++++++++++++++++ .../image/krea/krea2-style-reference.mdx | 82 ++++++++++++ .../partner-nodes/krea/krea2-image.mdx | 111 ++++++++++++++++ 10 files changed, 990 insertions(+) create mode 100644 built-in-nodes/partner-node/image/krea/krea2-image.mdx create mode 100644 built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx create mode 100644 ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx create mode 100644 ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx create mode 100644 ja/tutorials/partner-nodes/krea/krea2-image.mdx create mode 100644 tutorials/partner-nodes/krea/krea2-image.mdx create mode 100644 zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx create mode 100644 zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx create mode 100644 zh/tutorials/partner-nodes/krea/krea2-image.mdx diff --git a/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/built-in-nodes/partner-node/image/krea/krea2-image.mdx new file mode 100644 index 000000000..061487f4d --- /dev/null +++ b/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -0,0 +1,124 @@ +--- +title: "Krea 2 Image - ComfyUI Built-in Node Documentation" +description: "A Krea Partner node that generates images via Krea 2 with tunable creativity, style references, and moodboard conditioning" +sidebarTitle: "Krea 2 Image" +icon: "circle" +--- + +![ComfyUI Built-in Krea 2 Image Node](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) + +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. + +## Parameters + +### Basic Parameters + +| Parameter | Type | Default | Description | +| --------- | ------ | ----------- | ------------------------------------------ | +| prompt | string | "" | Text prompt for the image generation | +| seed | int | 0 | Random seed for reproducibility | + +### Model Parameters (Dynamic) + +The `model` parameter is a dynamic combo that changes based on the selected model variant: + +| Parameter | Type | Default | Description | +| ------------------- | ------ | -------- | ----------------------------------------------------- | +| model | select | Medium | Krea 2 Medium (illustration) or Krea 2 Large (photorealism) | +| aspect_ratio | select | 1:1 | Output aspect ratio | +| resolution | select | 1K | Resolution scale | +| creativity | select | medium | Prompt interpretation strength | +| moodboard_id | string | "" | Optional Krea moodboard UUID | +| moodboard_strength | float | 0.35 | Moodboard influence (-0.5 to 1.5) | +| style_reference | chain | — | Optional chain of style references | + +### Aspect Ratio Options + +`1:1`, `4:3`, `3:2`, `16:9`, `2.35:1`, `4:5`, `2:3`, `9:16` + +### Creativity Levels + +| Level | Description | +| ------ | -------------------------------------------- | +| raw | Stays closest to the prompt | +| low | Slight creative interpretation | +| medium | Balanced creativity and prompt adherence | +| high | Maximum aesthetic depth and visual richness | + +## Pricing + +| Configuration | Medium | Large | +| ---------------------------- | ------ | ----- | +| Text to image (no extras) | $0.03 | $0.06 | +| + Style reference(s) | $0.035 | $0.065| +| + Moodboard | $0.04 | $0.07 | + +## Output + +| Output | Type | Description | +| ------ | ----- | ------------------- | +| IMAGE | image | Generated image(s) | + +## Source Code + +[View source code on GitHub](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) + +```python +class Krea2ImageNode: + """ + Generate images via Krea 2 — pick Medium (expressive illustrations) or + Large (expressive photorealism). Supports an optional moodboard and up + to 10 chained image style references. + """ + + RETURN_TYPES = (IO.IMAGE,) + DESCRIPTION = cleandoc(__doc__ or "") + FUNCTION = "execute" + API_NODE = True + CATEGORY = "image/partner/Krea" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "prompt": ( + IO.STRING, + { + "multiline": True, + "default": "", + "tooltip": "Text prompt for the image.", + }, + ), + "model": ( + IO.DynamicCombo( + options=[ + IO.DynamicCombo.Option( + "Krea 2 Medium", + [ + IO.Combo.Input("aspect_ratio", ...), + IO.Combo.Input("resolution", ...), + IO.Combo.Input("creativity", ...), + IO.String.Input("moodboard_id", ...), + IO.Float.Input("moodboard_strength", ...), + IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...), + ], + ), + IO.DynamicCombo.Option( + "Krea 2 Large", + [/* same structure */], + ), + ], + ), + ), + "seed": ( + IO.INT, + { + "default": 0, + "min": 0, + "max": 2147483647, + "control_after_generate": True, + }, + ), + } + } +``` diff --git a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx new file mode 100644 index 000000000..adb2a4186 --- /dev/null +++ b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -0,0 +1,82 @@ +--- +title: "Krea 2 Style Reference - ComfyUI Built-in Node Documentation" +description: "A Krea Partner node that adds an image style reference to a Krea 2 generation" +sidebarTitle: "Krea 2 Style Reference" +icon: "circle" +--- + +![ComfyUI Built-in Krea 2 Style Reference Node](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) + +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. + +## Parameters + +| Parameter | Type | Default | Description | +| --------------- | ------ | ------- | ---------------------------------------------- | +| image | image | — | Reference image whose style influences the generation | +| strength | float | 1.0 | Reference strength (-2.0 to 2.0) | +| style_reference | chain | — | Optional incoming chain of style references | + +### Strength + +The `strength` parameter controls how strongly the reference image's style influences the output: + +- **Positive values (0.0 to 2.0):** Apply the reference style with increasing intensity +- **Negative values (-2.0 to 0.0):** Invert the style influence +- **0.0:** No style influence + +## Output + +| Output | Type | Description | +| --------------- | ----- | ---------------------------------------- | +| style_reference | chain | Chained style reference for Krea 2 Image | + +## Source Code + +[View source code on GitHub](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) + +```python +class Krea2StyleReferenceNode: + """ + Add 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. + """ + + RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),) + DESCRIPTION = cleandoc(__doc__ or "") + FUNCTION = "execute" + API_NODE = True + CATEGORY = "image/partner/Krea" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ( + IO.IMAGE, + { + "tooltip": "Reference image whose style influences the generation.", + }, + ), + "strength": ( + IO.FLOAT, + { + "default": 1.0, + "min": -2.0, + "max": 2.0, + "step": 0.05, + "tooltip": "Reference strength; negative values invert the style influence.", + }, + ), + }, + "optional": { + "style_reference": ( + IO.Custom(KreaIO.STYLE_REF), + { + "tooltip": "Optional incoming chain of style references.", + }, + ), + }, + } +``` diff --git a/docs.json b/docs.json index 473c7b20a..81f037ce8 100644 --- a/docs.json +++ b/docs.json @@ -423,6 +423,12 @@ "tutorials/partner-nodes/recraft/recraft-text-to-image" ] }, + { + "group": "Krea", + "pages": [ + "tutorials/partner-nodes/krea/krea2-image" + ] + }, { "group": "Kling", "pages": [ @@ -1029,6 +1035,13 @@ "built-in-nodes/partner-node/image/recraft/save-svg" ] }, + { + "group": "Krea", + "pages": [ + "built-in-nodes/partner-node/image/krea/krea2-image", + "built-in-nodes/partner-node/image/krea/krea2-style-reference" + ] + }, { "group": "Runway", "pages": [ @@ -2599,6 +2612,12 @@ "zh/tutorials/partner-nodes/recraft/recraft-text-to-image" ] }, + { + "group": "Krea", + "pages": [ + "zh/tutorials/partner-nodes/krea/krea2-image" + ] + }, { "group": "Kling", "pages": [ @@ -3221,6 +3240,13 @@ "zh/built-in-nodes/partner-node/image/recraft/save-svg" ] }, + { + "group": "Krea", + "pages": [ + "zh/built-in-nodes/partner-node/image/krea/krea2-image", + "zh/built-in-nodes/partner-node/image/krea/krea2-style-reference" + ] + }, { "group": "Stability AI", "pages": [ @@ -4780,6 +4806,12 @@ "ja/tutorials/partner-nodes/recraft/recraft-text-to-image" ] }, + { + "group": "Krea", + "pages": [ + "ja/tutorials/partner-nodes/krea/krea2-image" + ] + }, { "group": "Kling", "pages": [ @@ -5402,6 +5434,13 @@ "ja/built-in-nodes/partner-node/image/recraft/save-svg" ] }, + { + "group": "Krea", + "pages": [ + "ja/built-in-nodes/partner-node/image/krea/krea2-image", + "ja/built-in-nodes/partner-node/image/krea/krea2-style-reference" + ] + }, { "group": "Stability AI", "pages": [ diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx new file mode 100644 index 000000000..26993c1d4 --- /dev/null +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -0,0 +1,124 @@ +--- +title: "Krea 2 Image - ComfyUI ビルトインノードドキュメント" +description: "Krea パートナーノード。調整可能なクリエイティビティ、スタイルリファレンス、ムードボードコンディショニングで Krea 2 を介して画像を生成します" +sidebarTitle: "Krea 2 Image" +icon: "circle" +--- + +![ComfyUI ビルトイン Krea 2 Image ノード](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) + +Krea 2 Image ノードは Krea 2 を介して画像を生成します。Medium(表現力豊かなイラスト)または Large(表現力豊かなフォトリアリズム)を選択可能。オプションのムードボードと最大 10 個のチェーン式画像スタイルリファレンスをサポートします。 + +## パラメータ + +### 基本パラメータ + +| パラメータ | 型 | デフォルト | 説明 | +| ---------- | ------ | ---------- | ------------------------ | +| prompt | string | "" | 画像生成のテキストプロンプト | +| seed | int | 0 | 再現性のためのランダムシード | + +### モデルパラメータ(動的) + +`model` パラメータは選択したモデルバリアントに応じて変化する動的コンボです: + +| パラメータ | 型 | デフォルト | 説明 | +| -------------------- | ------ | ---------- | ----------------------------------- | +| model | select | Medium | Krea 2 Medium(イラスト)または Large(フォトリアリズム) | +| aspect_ratio | select | 1:1 | 出力アスペクト比 | +| resolution | select | 1K | 解像度 | +| creativity | select | medium | プロンプト解釈の強度 | +| moodboard_id | string | "" | オプションの Krea ムードボード UUID | +| moodboard_strength | float | 0.35 | ムードボードの影響度(-0.5 〜 1.5) | +| style_reference | chain | — | オプションのスタイルリファレンスチェーン | + +### アスペクト比オプション + +`1:1`、`4:3`、`3:2`、`16:9`、`2.35:1`、`4:5`、`2:3`、`9:16` + +### クリエイティビティレベル + +| レベル | 説明 | +| ------- | -------------------------------------- | +| raw | プロンプトに最も忠実 | +| low | 軽度のクリエイティブ解釈 | +| medium | クリエイティビティと忠実度のバランス | +| high | 最大の美的深度と視覚的豊かさ | + +## 料金 + +| 設定 | Medium | Large | +| ---------------------------- | ------ | ----- | +| テキストから画像(追加なし) | $0.03 | $0.06 | +| + スタイルリファレンス | $0.035 | $0.065| +| + ムードボード | $0.04 | $0.07 | + +## 出力 + +| 出力 | 型 | 説明 | +| ------ | ----- | ------------ | +| IMAGE | image | 生成された画像 | + +## ソースコード + +[GitHub でソースコードを表示](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) + +```python +class Krea2ImageNode: + """ + Generate images via Krea 2 — pick Medium (expressive illustrations) or + Large (expressive photorealism). Supports an optional moodboard and up + to 10 chained image style references. + """ + + RETURN_TYPES = (IO.IMAGE,) + DESCRIPTION = cleandoc(__doc__ or "") + FUNCTION = "execute" + API_NODE = True + CATEGORY = "image/partner/Krea" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "prompt": ( + IO.STRING, + { + "multiline": True, + "default": "", + "tooltip": "Text prompt for the image.", + }, + ), + "model": ( + IO.DynamicCombo( + options=[ + IO.DynamicCombo.Option( + "Krea 2 Medium", + [ + IO.Combo.Input("aspect_ratio", ...), + IO.Combo.Input("resolution", ...), + IO.Combo.Input("creativity", ...), + IO.String.Input("moodboard_id", ...), + IO.Float.Input("moodboard_strength", ...), + IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...), + ], + ), + IO.DynamicCombo.Option( + "Krea 2 Large", + [/* same structure */], + ), + ], + ), + ), + "seed": ( + IO.INT, + { + "default": 0, + "min": 0, + "max": 2147483647, + "control_after_generate": True, + }, + ), + } + } +``` diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx new file mode 100644 index 000000000..e5cb9523a --- /dev/null +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -0,0 +1,82 @@ +--- +title: "Krea 2 Style Reference - ComfyUI ビルトインノードドキュメント" +description: "Krea パートナーノード。Krea 2 生成に画像スタイルリファレンスを追加します" +sidebarTitle: "Krea 2 Style Reference" +icon: "circle" +--- + +![ComfyUI ビルトイン Krea 2 Style Reference ノード](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) + +Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。複数の Krea 2 Style Reference ノードをチェーン接続し(最大 10 個)、最終的な `style_reference` 出力を Krea 2 Image ノードに渡します。各画像は ComfyAPI ストレージにアップロードされ、URL として渡されます。 + +## パラメータ + +| パラメータ | 型 | デフォルト | 説明 | +| --------------- | ------ | ---------- | ---------------------------------------- | +| image | image | — | 生成にスタイル影響を与える参照画像 | +| strength | float | 1.0 | 参照強度(-2.0 〜 2.0) | +| style_reference | chain | — | オプションの入力スタイルリファレンスチェーン | + +### 強度について + +`strength` パラメータは、参照画像のスタイルが出力に与える影響の強さを制御します: + +- **正の値(0.0 〜 2.0):** 増加する強度で参照スタイルを適用 +- **負の値(-2.0 〜 0.0):** スタイルの影響を反転 +- **0.0:** スタイルの影響なし + +## 出力 + +| 出力 | 型 | 説明 | +| --------------- | ----- | -------------------------------------- | +| style_reference | chain | Krea 2 Image 用のチェーン式スタイルリファレンス | + +## ソースコード + +[GitHub でソースコードを表示](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) + +```python +class Krea2StyleReferenceNode: + """ + Add 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. + """ + + RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),) + DESCRIPTION = cleandoc(__doc__ or "") + FUNCTION = "execute" + API_NODE = True + CATEGORY = "image/partner/Krea" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ( + IO.IMAGE, + { + "tooltip": "Reference image whose style influences the generation.", + }, + ), + "strength": ( + IO.FLOAT, + { + "default": 1.0, + "min": -2.0, + "max": 2.0, + "step": 0.05, + "tooltip": "Reference strength; negative values invert the style influence.", + }, + ), + }, + "optional": { + "style_reference": ( + IO.Custom(KreaIO.STYLE_REF), + { + "tooltip": "Optional incoming chain of style references.", + }, + ), + }, + } +``` diff --git a/ja/tutorials/partner-nodes/krea/krea2-image.mdx b/ja/tutorials/partner-nodes/krea/krea2-image.mdx new file mode 100644 index 000000000..09b8b0764 --- /dev/null +++ b/ja/tutorials/partner-nodes/krea/krea2-image.mdx @@ -0,0 +1,111 @@ +--- +title: "Krea 2 Image API ノード ComfyUI 公式サンプルチュートリアル" +description: "ComfyUI で Krea 2 Image および Krea 2 Style Reference パートナーノードを使用する方法を学びます" +sidebarTitle: "Krea 2 Image" +--- + +import ReqHint from "/snippets/ja/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/ja/tutorials/update-reminder.mdx"; + +[Krea 2 Image](/ja/built-in-nodes/partner-node/image/krea/krea2-image) および [Krea 2 Style Reference](/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference) ノードは、Krea の初のファウンデーション画像モデルを ComfyUI にパートナーノードとして提供します。Krea 2 はクリエイティブコントロールを重視して設計されており、調整可能なクリエイティビティ、スタイルリファレンス、ムードボードコンディショニング、そしてイラストからフォトリアリズムまでをカバーする 2 つのモデルバリアントを備えています。 + +このガイドでは、利用可能な Krea 2 ワークフローとその使用方法を説明します。 + + + + +## 利用可能なワークフロー + +Krea 2 は現在、テンプレートライブラリに 2 つのワークフローを提供しています: + +- **Krea2: Text to Image(テキストから画像生成)** — 完全なパラメータコントロールでテキストプロンプトから画像を生成 +- **Krea 2: Style Reference(スタイルリファレンス)** — 参照画像をアップロードし、その美的スタイルを適用した画像を生成 + + + + Comfy Cloud で開く + + + JSON をダウンロード、またはテンプレートライブラリで "Krea2: Text to Image" を検索 + + + + + + Comfy Cloud で開く + + + JSON をダウンロード、またはテンプレートライブラリで "Krea 2: Style Reference" を検索 + + + +## Krea2: Text to Image ワークフローの使い方 + +Krea2: Text to Image ワークフローはシンプルな設定で使用できます: + +1. テンプレートライブラリからワークフローを開くか、JSON ファイルをダウンロード +2. **Krea 2 Image** ノードにテキストプロンプトを入力 +3. **Krea 2 Medium**(表現力豊かなイラスト)または **Krea 2 Large**(表現力豊かなフォトリアリズム)を選択 +4. アスペクト比、クリエイティビティ、シードなどのオプションパラメータを調整 +5. **Queue Prompt**(または `Ctrl+Enter` / `Cmd+Enter`)をクリックして生成 +6. 生成された画像は出力プレビューに表示され、`ComfyUI/output/` に保存されます + +![Krea 2 テキストから画像ワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) + +## Krea 2: Style Reference ワークフローの使い方 + +Krea 2: Style Reference ワークフローは、テキストから画像生成にスタイル転送を追加します: + +1. テンプレートライブラリからワークフローを開くか、JSON ファイルをダウンロード +2. ワークフローには 2 つの **Load Image** ノードが含まれており、サンプルのスタイル参照画像がプリロードされています(独自の画像を読み込むことも可能) +3. 各画像は個別の **Krea 2 Style Reference** ノードに接続され、**strength(強度)** パラメータを調整可能 +4. スタイル参照は **Krea 2 Image** ノードにチェーンで渡されます +5. **Krea 2 Image** ノードでテキストプロンプトを入力し、他の生成パラメータを設定 +6. **Queue Prompt** をクリックして生成 + +![Krea 2 スタイルリファレンスワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) + + + + スタイルリファレンスのサンプル画像を取得 + + + スタイルリファレンスのサンプル画像を取得 + + + +## Krea 2 モデルについて + +Krea 2 Image ノードは 2 つのモデルバリアントを提供します: + +### Krea 2 Medium + +より小型で高速、コスト効率の高いオプション。強めのポストトレーニングにより、生成結果は実行ごとに安定して一貫性があります。イラスト、アニメ、絵画などの表現力豊かなスタイルに特に優れています。 + +### Krea 2 Large + +Medium の 2 倍以上のサイズで、ポストトレーニングは軽め。出力はより生々しく、テクスチャがあり、柔軟です。表現力豊かな作品にも対応し、フォトリアリズムや「生」のルックに適しています。 + +## Krea 2 の機能について + +### スタイル転送 + +参照画像を **Krea 2 Style Reference** ノードの `image` 入力に渡すと、モデルがスタイルを抽出して生成に適用します。最大 10 個のスタイルリファレンスをチェーンして、マルチスタイル融合が可能です。 + +### クリエイティビティ + +`creativity(クリエイティビティ)` パラメータには 4 つのレベルがあります:**Raw(生)**、**Low(低)**、**Medium(中)**、**High(高)**。高い設定ほど美的深度と視覚的な豊かさが増します。低い設定ほどプロンプトへの忠実度が高まります。クリエイティブな解釈と忠実な再現のバランスを取るための主要な調整機能です。 + +### ムードボード + +オプションで Krea ムードボード UUID(Krea ウェブサイトから取得)を接続して、全体の美的方向性に影響を与えることができます。ムードボードの影響度も調整可能です。 + +## 関連ノードドキュメント + + +Krea 2 Image ノードの詳細パラメータリファレンス + + + +Krea 2 Style Reference ノードの詳細パラメータリファレンス + diff --git a/tutorials/partner-nodes/krea/krea2-image.mdx b/tutorials/partner-nodes/krea/krea2-image.mdx new file mode 100644 index 000000000..d3de03050 --- /dev/null +++ b/tutorials/partner-nodes/krea/krea2-image.mdx @@ -0,0 +1,111 @@ +--- +title: "Krea 2 Image API Node ComfyUI Official Example" +description: "Learn how to use the Krea 2 Image and Krea 2 Style Reference Partner nodes in ComfyUI" +sidebarTitle: "Krea 2 Image" +--- + +import ReqHint from "/snippets/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/tutorials/update-reminder.mdx"; + +The [Krea 2 Image](/built-in-nodes/partner-node/image/krea/krea2-image) and [Krea 2 Style Reference](/built-in-nodes/partner-node/image/krea/krea2-style-reference) nodes bring Krea's first foundation image model into ComfyUI as Partner Nodes. Krea 2 is designed for creative control — with tunable creativity, style references, moodboard conditioning, and two model variants that cover illustration, photorealism, and everything in between. + +In this guide, we'll walk through the available Krea 2 workflows and how to use them. + + + + +## Available Workflows + +Krea 2 currently offers two workflows in the Template Library: + +- **Krea2: Text to Image** — Generate images from text prompts with full parameter control +- **Krea 2: Style Reference** — Upload a reference image and generate images that apply its aesthetic style + + + + Open in Comfy Cloud + + + Download JSON or search "Krea2: Text to Image" in Template Library + + + + + + Open in Comfy Cloud + + + Download JSON or search "Krea 2: Style Reference" in Template Library + + + +## How to Use the Krea 2 Image Workflow + +The Krea2: Text to Image workflow provides a straightforward setup: + +1. Open the workflow from the Template Library or download the JSON file +2. Enter your text prompt in the **Krea 2 Image** node +3. Choose between **Krea 2 Medium** (expressive illustrations) and **Krea 2 Large** (expressive photorealism) +4. Adjust optional parameters like **aspect ratio**, **creativity**, and **seed** +5. Click **Queue Prompt** (or `Ctrl+Enter` / `Cmd+Enter`) to generate +6. The generated image appears in the output preview and is saved to `ComfyUI/output/` + +![Krea 2 Text to Image Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) + +## How to Use the Krea 2 Style Reference Workflow + +The Krea 2: Style Reference workflow adds style transfer on top of text-to-image generation: + +1. Open the workflow from the Template Library or download the JSON file +2. The workflow includes two **Load Image** nodes pre-loaded with sample style reference images (or load your own) +3. Each image feeds into a **Krea 2 Style Reference** node, where you can adjust the **strength** parameter +4. The style references chain into the **Krea 2 Image** node +5. Enter your text prompt and configure other generation parameters +6. Click **Queue Prompt** to generate + +![Krea 2 Style Reference Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) + + + + Get the style reference sample image + + + Get the style reference sample image + + + +## About Krea 2 Models + +The Krea 2 Image node offers two model variants: + +### Krea 2 Medium + +The smaller, faster, more cost-efficient option. Heavier post-training makes generations more stable and consistent run-to-run. Particularly strong on illustration, anime, painting, and other expressive styles. + +### Krea 2 Large + +More than twice the size of Medium, with lighter post-training. Outputs feel rawer, more textured, and more flexible. Handles expressive work well and is the stronger pick for photorealism and "raw" looks. + +## About Krea 2 Features + +### Style Transfer + +Pass a reference image into the **Krea 2 Style Reference** node's `image` input, and the model extracts and applies the style to your generation. You can chain up to 10 style references together for multi-style fusion. + +### Creativity + +The `creativity` parameter has four levels: **Raw**, **Low**, **Medium**, **High**. Higher settings add more aesthetic depth and visual richness. Lower settings produce tighter prompt adherence. This is the main lever for balancing creative interpretation versus literal reproduction. + +### Moodboard + +Optionally connect a Krea moodboard UUID (from the Krea website) to influence the overall aesthetic direction. You can also control the moodboard's influence strength. + +## Related Node Documentation + + +Detailed parameter reference for the Krea 2 Image node + + + +Detailed parameter reference for the Krea 2 Style Reference node + diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx new file mode 100644 index 000000000..dc85216d8 --- /dev/null +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -0,0 +1,124 @@ +--- +title: "Krea 2 Image - ComfyUI 内置节点文档" +description: "一个 Krea 合作伙伴节点,通过 Krea 2 生成图像,支持可调创造力、风格参考和情绪板调节" +sidebarTitle: "Krea 2 Image" +icon: "circle" +--- + +![ComfyUI 内置 Krea 2 Image 节点](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) + +Krea 2 Image 节点通过 Krea 2 生成图像——选择 Medium(表现力插画)或 Large(表现力写实)。支持可选的 moodboard 和最多 10 个链式图像风格参考。 + +## 参数 + +### 基本参数 + +| 参数 | 类型 | 默认值 | 描述 | +| ------- | ------ | --------- | ------------------- | +| prompt | string | "" | 图像生成的文本提示词 | +| seed | int | 0 | 随机种子 | + +### 模型参数(动态) + +`model` 参数是一个动态组合,会根据所选模型变体变化: + +| 参数 | 类型 | 默认值 | 描述 | +| ------------------- | -------- | ------ | ------------------------------- | +| model | select | Medium | Krea 2 Medium(插画)或 Large(写实) | +| aspect_ratio | select | 1:1 | 输出宽高比 | +| resolution | select | 1K | 分辨率 | +| creativity | select | medium | 提示词诠释强度 | +| moodboard_id | string | "" | 可选的 Krea 情绪板 UUID | +| moodboard_strength | float | 0.35 | 情绪板影响度(-0.5 至 1.5) | +| style_reference | chain | — | 可选的风格参考链 | + +### 宽高比选项 + +`1:1`、`4:3`、`3:2`、`16:9`、`2.35:1`、`4:5`、`2:3`、`9:16` + +### 创造力级别 + +| 级别 | 描述 | +| ------ | ----------------------------- | +| raw | 最贴近提示词 | +| low | 轻微的创意诠释 | +| medium | 创造力和提示词遵循度的平衡 | +| high | 最大美学深度和视觉丰富度 | + +## 定价 + +| 配置 | Medium | Large | +| ------------------------- | ------ | ----- | +| 文本生成图像(无额外) | $0.03 | $0.06 | +| + 风格参考 | $0.035 | $0.065| +| + 情绪板 | $0.04 | $0.07 | + +## 输出 + +| 输出 | 类型 | 描述 | +| ------ | ----- | ------------ | +| IMAGE | image | 生成的图像 | + +## 源代码 + +[在 GitHub 上查看源代码](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) + +```python +class Krea2ImageNode: + """ + Generate images via Krea 2 — pick Medium (expressive illustrations) or + Large (expressive photorealism). Supports an optional moodboard and up + to 10 chained image style references. + """ + + RETURN_TYPES = (IO.IMAGE,) + DESCRIPTION = cleandoc(__doc__ or "") + FUNCTION = "execute" + API_NODE = True + CATEGORY = "image/partner/Krea" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "prompt": ( + IO.STRING, + { + "multiline": True, + "default": "", + "tooltip": "Text prompt for the image.", + }, + ), + "model": ( + IO.DynamicCombo( + options=[ + IO.DynamicCombo.Option( + "Krea 2 Medium", + [ + IO.Combo.Input("aspect_ratio", ...), + IO.Combo.Input("resolution", ...), + IO.Combo.Input("creativity", ...), + IO.String.Input("moodboard_id", ...), + IO.Float.Input("moodboard_strength", ...), + IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...), + ], + ), + IO.DynamicCombo.Option( + "Krea 2 Large", + [/* same structure */], + ), + ], + ), + ), + "seed": ( + IO.INT, + { + "default": 0, + "min": 0, + "max": 2147483647, + "control_after_generate": True, + }, + ), + } + } +``` diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx new file mode 100644 index 000000000..577a8efb0 --- /dev/null +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -0,0 +1,82 @@ +--- +title: "Krea 2 Style Reference - ComfyUI 内置节点文档" +description: "一个 Krea 合作伙伴节点,为 Krea 2 生成添加图像风格参考" +sidebarTitle: "Krea 2 Style Reference" +icon: "circle" +--- + +![ComfyUI 内置 Krea 2 Style Reference 节点](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) + +Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。链式连接多个 Krea 2 Style Reference 节点(最多 10 个),将最终的 `style_reference` 输出传入 Krea 2 Image 节点。每张图像会上传到 ComfyAPI 存储,以 URL 形式传递。 + +## 参数 + +| 参数 | 类型 | 默认值 | 描述 | +| --------------- | ------ | ------ | ----------------------------------- | +| image | image | — | 影响生成效果的风格参考图像 | +| strength | float | 1.0 | 参考强度(-2.0 至 2.0) | +| style_reference | chain | — | 可选的传入风格参考链 | + +### 强度说明 + +`strength` 参数控制参考图像风格对输出的影响程度: + +- **正值(0.0 至 2.0):** 以递增强度应用参考风格 +- **负值(-2.0 至 0.0):** 反转风格影响 +- **0.0:** 无风格影响 + +## 输出 + +| 输出 | 类型 | 描述 | +| --------------- | ----- | ---------------------------------- | +| style_reference | chain | 用于 Krea 2 Image 的链式风格参考 | + +## 源代码 + +[在 GitHub 上查看源代码](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) + +```python +class Krea2StyleReferenceNode: + """ + Add 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. + """ + + RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),) + DESCRIPTION = cleandoc(__doc__ or "") + FUNCTION = "execute" + API_NODE = True + CATEGORY = "image/partner/Krea" + + @classmethod + def INPUT_TYPES(s): + return { + "required": { + "image": ( + IO.IMAGE, + { + "tooltip": "Reference image whose style influences the generation.", + }, + ), + "strength": ( + IO.FLOAT, + { + "default": 1.0, + "min": -2.0, + "max": 2.0, + "step": 0.05, + "tooltip": "Reference strength; negative values invert the style influence.", + }, + ), + }, + "optional": { + "style_reference": ( + IO.Custom(KreaIO.STYLE_REF), + { + "tooltip": "Optional incoming chain of style references.", + }, + ), + }, + } +``` diff --git a/zh/tutorials/partner-nodes/krea/krea2-image.mdx b/zh/tutorials/partner-nodes/krea/krea2-image.mdx new file mode 100644 index 000000000..2547044b2 --- /dev/null +++ b/zh/tutorials/partner-nodes/krea/krea2-image.mdx @@ -0,0 +1,111 @@ +--- +title: "Krea 2 Image API 节点 ComfyUI 官方示例教程" +description: "学习如何在 ComfyUI 中使用 Krea 2 Image 和 Krea 2 Style Reference 合作伙伴节点" +sidebarTitle: "Krea 2 Image" +--- + +import ReqHint from "/snippets/zh/tutorials/partner-nodes/req-hint.mdx"; +import UpdateReminder from "/snippets/zh/tutorials/update-reminder.mdx"; + +[Krea 2 Image](/zh/built-in-nodes/partner-node/image/krea/krea2-image) 和 [Krea 2 Style Reference](/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference) 节点将 Krea 首个基础图像模型引入 ComfyUI,作为合作伙伴节点使用。Krea 2 专为创意控制而设计——支持可调创造力、风格参考、情绪板调节,以及涵盖插画、写实等多种风格的两种模型变体。 + +在本指南中,我们将介绍可用的 Krea 2 工作流及使用方法。 + + + + +## 可用工作流 + +Krea 2 目前在模板库中提供两个工作流: + +- **Krea2: Text to Image(文本生成图像)** — 通过文本提示词生成图像,支持完整的参数控制 +- **Krea 2: Style Reference(风格参考)** — 上传参考图像,生成应用其美学风格的图像 + + + + 在 Comfy Cloud 中打开 + + + 下载 JSON 或在模板库中搜索 "Krea2: Text to Image" + + + + + + 在 Comfy Cloud 中打开 + + + 下载 JSON 或在模板库中搜索 "Krea 2: Style Reference" + + + +## 如何使用 Krea2: Text to Image 工作流 + +Krea2: Text to Image 工作流的操作非常简单: + +1. 从模板库打开工作流,或下载 JSON 文件 +2. 在 **Krea 2 Image** 节点中输入文本提示词 +3. 选择 **Krea 2 Medium(中等)**(表现力插画)或 **Krea 2 Large(大)**(表现力写实) +4. 调整可选参数,如宽高比、创造力和随机种子 +5. 点击 **Queue Prompt**(或 `Ctrl+Enter` / `Cmd+Enter`)生成图像 +6. 生成的图像会在输出预览中显示,并保存到 `ComfyUI/output/` 目录 + +![Krea 2 文本生成图像工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) + +## 如何使用 Krea 2: Style Reference 工作流 + +Krea 2: Style Reference 工作流在文本生成图像的基础上增加了风格迁移功能: + +1. 从模板库打开工作流,或下载 JSON 文件 +2. 工作流中包含两个 **Load Image** 节点,预加载了示例风格参考图像(你也可以加载自己的图像) +3. 每张图像连接到单独的 **Krea 2 Style Reference** 节点,你可以调整其 **strength(强度)** 参数 +4. 风格参考链式传入 **Krea 2 Image** 节点 +5. 在 **Krea 2 Image** 节点中输入文本提示词并配置其他生成参数 +6. 点击 **Queue Prompt** 生成图像 + +![Krea 2 风格参考工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) + + + + 获取风格参考示例图片 + + + 获取风格参考示例图片 + + + +## 关于 Krea 2 模型 + +Krea 2 Image 节点提供两种模型变体: + +### Krea 2 Medium(中等) + +更小、更快、成本效益更高的选项。更重的后期训练使得每次生成的图像更稳定、一致。特别擅长插画、动漫、绘画等表现力丰富的风格。 + +### Krea 2 Large(大) + +尺寸是 Medium 的两倍以上,后期训练较轻。输出感觉更原始、更有质感、更灵活。擅长表现力风格,也是写实主义和"原始"风格的更优选择。 + +## 关于 Krea 2 特性 + +### 风格迁移 + +将参考图像传入 **Krea 2 Style Reference** 节点的 `image` 输入,模型会提取并应用其风格到生成结果。你可以串联最多 10 个风格参考节点实现多风格融合。 + +### 创造力 + +`creativity(创造力)` 参数有四个级别:**Raw(原始)**、**Low(低)**、**Medium(中)**、**High(高)**。更高的设置会增加美学深度和视觉丰富度。较低的设置则更贴近提示词。这是平衡创意诠释与忠实再现之间的主要杠杆。 + +### 情绪板 + +可选地连接 Krea 情绪板 UUID(从 Krea 网站获取)来影响整体美学方向。你还可以控制情绪板的影响强度。 + +## 相关节点文档 + + +Krea 2 Image 节点详细参数参考 + + + +Krea 2 Style Reference 节点详细参数参考 + From b416b13ca97a86a227d0fc747929e60f39d4bdcc Mon Sep 17 00:00:00 2001 From: lin-bot23 Date: Thu, 28 May 2026 14:44:10 +0800 Subject: [PATCH 2/4] docs: rewrite Krea 2 built-in node pages with model overview focus - Removed fake node screenshots from built-in node pages - Added detailed model overview (Medium vs Large, creativity, style transfer, moodboard) - Tutorial pages keep their procedural content - Updated all three languages (EN/ZH/JA) --- .../partner-node/image/krea/krea2-image.mdx | 115 ++++++++--------- .../image/krea/krea2-style-reference.mdx | 39 +----- .../partner-node/image/krea/krea2-image.mdx | 117 ++++++++--------- .../image/krea/krea2-style-reference.mdx | 39 +----- .../partner-node/image/krea/krea2-image.mdx | 119 ++++++++---------- .../image/krea/krea2-style-reference.mdx | 39 +----- 6 files changed, 162 insertions(+), 306 deletions(-) diff --git a/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/built-in-nodes/partner-node/image/krea/krea2-image.mdx index 061487f4d..175ee9ff9 100644 --- a/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,9 +5,54 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -![ComfyUI Built-in Krea 2 Image Node](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) +The Krea 2 Image node generates images via **Krea 2**, Krea's first foundation image model designed for creative control. It offers two model variants — **Krea 2 Medium** and **Krea 2 Large** — each tuned for different use cases. The node supports an optional moodboard, up to 10 chained image style references, and the ability to control how creatively the model interprets your prompt. -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. +## Model Overview + +### Krea 2 Medium + +The smaller, faster, more cost-efficient option. Heavier post-training makes generations more stable and consistent run-to-run. Particularly strong on illustration, anime, painting, and other expressive styles. + +- Faster inference, lower cost per generation +- More consistent output across runs with the same seed +- Best suited for: illustrations, anime, paintings, character art, concept art, stylized graphics + +### Krea 2 Large + +More than twice the size of Medium, with lighter post-training. Outputs feel rawer, more textured, and more flexible. Handles expressive work well too, but is the stronger pick for photorealism and "raw" looks. + +- Higher fidelity and texture detail +- More varied output even at the same seed +- Best suited for: photorealism, product shots, landscapes, portraits, architectural visualization + +### Creativity Control + +The `creativity` parameter lets you control how the model interprets your text prompt. It has four levels: + +| Level | Description | +| ------ | -------------------------------------------------- | +| Raw | Stays closest to the prompt, minimal interpretation | +| Low | Slight creative interpretation | +| Medium | Balanced creativity and prompt adherence (default) | +| High | Maximum aesthetic depth and visual richness | + +Set it higher when you want the model to add artistic flair; lower when you need precise prompt adherence. + +### Style Transfer + +Style transfer is built into Krea 2's foundation — it's not a separate pipeline. Pass reference images through the **Krea 2 Style Reference** node and the model extracts and applies the aesthetic style to your generation. You can chain up to 10 style references together for multi-style fusion. + +### Moodboard Conditioning + +Optionally connect a Krea moodboard UUID (from the Krea website) to influence the overall aesthetic direction. The `moodboard_strength` parameter (-0.5 to 1.5) controls how much the moodboard influences the output. + +## Pricing + +| Configuration | Medium | Large | +| ---------------------------- | ------ | ----- | +| Text to image (no extras) | $0.03 | $0.06 | +| + Style reference(s) | $0.035 | $0.065| +| + Moodboard | $0.04 | $0.07 | ## Parameters @@ -36,23 +81,6 @@ The `model` parameter is a dynamic combo that changes based on the selected mode `1:1`, `4:3`, `3:2`, `16:9`, `2.35:1`, `4:5`, `2:3`, `9:16` -### Creativity Levels - -| Level | Description | -| ------ | -------------------------------------------- | -| raw | Stays closest to the prompt | -| low | Slight creative interpretation | -| medium | Balanced creativity and prompt adherence | -| high | Maximum aesthetic depth and visual richness | - -## Pricing - -| Configuration | Medium | Large | -| ---------------------------- | ------ | ----- | -| Text to image (no extras) | $0.03 | $0.06 | -| + Style reference(s) | $0.035 | $0.065| -| + Moodboard | $0.04 | $0.07 | - ## Output | Output | Type | Description | @@ -66,8 +94,8 @@ The `model` parameter is a dynamic combo that changes based on the selected mode ```python class Krea2ImageNode: """ - Generate images via Krea 2 — pick Medium (expressive illustrations) or - Large (expressive photorealism). Supports an optional moodboard and up + Generate images via Krea 2 — pick Medium (expressive illustrations) or + Large (expressive photorealism). Supports an optional moodboard and up to 10 chained image style references. """ @@ -76,49 +104,4 @@ class Krea2ImageNode: FUNCTION = "execute" API_NODE = True CATEGORY = "image/partner/Krea" - - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "prompt": ( - IO.STRING, - { - "multiline": True, - "default": "", - "tooltip": "Text prompt for the image.", - }, - ), - "model": ( - IO.DynamicCombo( - options=[ - IO.DynamicCombo.Option( - "Krea 2 Medium", - [ - IO.Combo.Input("aspect_ratio", ...), - IO.Combo.Input("resolution", ...), - IO.Combo.Input("creativity", ...), - IO.String.Input("moodboard_id", ...), - IO.Float.Input("moodboard_strength", ...), - IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...), - ], - ), - IO.DynamicCombo.Option( - "Krea 2 Large", - [/* same structure */], - ), - ], - ), - ), - "seed": ( - IO.INT, - { - "default": 0, - "min": 0, - "max": 2147483647, - "control_after_generate": True, - }, - ), - } - } ``` diff --git a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index adb2a4186..7d79c65b5 100644 --- a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,9 +5,9 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -![ComfyUI Built-in Krea 2 Style Reference Node](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) +The Krea 2 Style Reference node adds an image style reference to a Krea 2 generation. Style transfer is a core capability of the Krea 2 model — it's not a separate pipeline or after-effects filter. When you pass a reference image, the model extracts its aesthetic essence (color palette, lighting, texture, composition) and applies it during the generation process. -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. +Chain multiple Krea 2 Style Reference nodes (max 10) and feed the final `style_reference` output into a Krea 2 Image node for multi-style fusion. Each image is uploaded to ComfyAPI storage and passed as URL. ## Parameters @@ -38,8 +38,8 @@ The `strength` parameter controls how strongly the reference image's style influ ```python class Krea2StyleReferenceNode: """ - Add 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 + Add 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. """ @@ -48,35 +48,4 @@ class Krea2StyleReferenceNode: FUNCTION = "execute" API_NODE = True CATEGORY = "image/partner/Krea" - - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "image": ( - IO.IMAGE, - { - "tooltip": "Reference image whose style influences the generation.", - }, - ), - "strength": ( - IO.FLOAT, - { - "default": 1.0, - "min": -2.0, - "max": 2.0, - "step": 0.05, - "tooltip": "Reference strength; negative values invert the style influence.", - }, - ), - }, - "optional": { - "style_reference": ( - IO.Custom(KreaIO.STYLE_REF), - { - "tooltip": "Optional incoming chain of style references.", - }, - ), - }, - } ``` diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx index 26993c1d4..294da034c 100644 --- a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,9 +5,54 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -![ComfyUI ビルトイン Krea 2 Image ノード](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) +Krea 2 Image ノードは **Krea 2** — Krea 初のクリエイティブコントロールを重視したファウンデーション画像モデル — を介して画像を生成します。**Krea 2 Medium** と **Krea 2 Large** の 2 つのモデルバリアントを提供し、それぞれ異なるユースケースに最適化されています。オプションのムードボード、最大 10 個のチェーン式スタイルリファレンス、プロンプトの解釈度合いを制御するクリエイティビティ調整をサポートします。 -Krea 2 Image ノードは Krea 2 を介して画像を生成します。Medium(表現力豊かなイラスト)または Large(表現力豊かなフォトリアリズム)を選択可能。オプションのムードボードと最大 10 個のチェーン式画像スタイルリファレンスをサポートします。 +## モデル概要 + +### Krea 2 Medium + +小型で高速、コスト効率に優れたオプション。強めの後処理により、実行ごとの出力が安定して一貫しています。イラスト、アニメ、絵画などの表現力豊かなスタイルに特に優れています。 + +- 推論が速く、1 回あたりの生成コストが低い +- 同じシードでより一貫した出力 +- 最適:イラスト、アニメ、絵画、キャラクターデザイン、コンセプトアート、スタイライズドグラフィック + +### Krea 2 Large + +Medium の 2 倍以上のサイズで、後処理は軽め。出力はより生々しく、テクスチャがあり、柔軟です。表現力豊かな作品にも対応し、フォトリアリズムや「生」のルックに適しています。 + +- 高い忠実度とテクスチャ詳細 +- 同じシードでもより多様な出力 +- 最適:フォトリアリズム、商品撮影、風景、ポートレート、建築ビジュアライゼーション + +### クリエイティビティ制御 + +`creativity` パラメータはモデルがプロンプトをどう解釈するかを制御します。4 つのレベルがあります: + +| レベル | 説明 | +| ------- | ----------------------------------------- | +| Raw | プロンプトに最も忠実、最小限の解釈 | +| Low | 軽度のクリエイティブ解釈 | +| Medium | 創造性と忠実度のバランス(デフォルト) | +| High | 最大の美的深度と視覚的豊かさ | + +高い設定で芸術的なフレアを追加、低い設定で正確なプロンプト再現が必要な場合に使用します。 + +### スタイル転送 + +スタイル転送は Krea 2 のコア機能であり、独立したパイプラインではありません。**Krea 2 Style Reference** ノードに参照画像を渡すと、モデルがその美学スタイルを抽出し、生成に適用します。最大 10 個のスタイルリファレンスをチェーンして多スタイル融合が可能です。 + +### ムードボードコンディショニング + +Krea ムードボード UUID(Krea ウェブサイトから取得)を接続して全体の美的方向性に影響を与えることができます。`moodboard_strength` パラメータ(-0.5 〜 1.5)で影響度を調整します。 + +## 料金 + +| 設定 | Medium | Large | +| ---------------------------- | ------ | ----- | +| テキストから画像(追加なし) | $0.03 | $0.06 | +| + スタイルリファレンス | $0.035 | $0.065| +| + ムードボード | $0.04 | $0.07 | ## パラメータ @@ -24,7 +69,7 @@ Krea 2 Image ノードは Krea 2 を介して画像を生成します。Medium | パラメータ | 型 | デフォルト | 説明 | | -------------------- | ------ | ---------- | ----------------------------------- | -| model | select | Medium | Krea 2 Medium(イラスト)または Large(フォトリアリズム) | +| model | select | Medium | Krea 2 Medium または Large | | aspect_ratio | select | 1:1 | 出力アスペクト比 | | resolution | select | 1K | 解像度 | | creativity | select | medium | プロンプト解釈の強度 | @@ -36,23 +81,6 @@ Krea 2 Image ノードは Krea 2 を介して画像を生成します。Medium `1:1`、`4:3`、`3:2`、`16:9`、`2.35:1`、`4:5`、`2:3`、`9:16` -### クリエイティビティレベル - -| レベル | 説明 | -| ------- | -------------------------------------- | -| raw | プロンプトに最も忠実 | -| low | 軽度のクリエイティブ解釈 | -| medium | クリエイティビティと忠実度のバランス | -| high | 最大の美的深度と視覚的豊かさ | - -## 料金 - -| 設定 | Medium | Large | -| ---------------------------- | ------ | ----- | -| テキストから画像(追加なし) | $0.03 | $0.06 | -| + スタイルリファレンス | $0.035 | $0.065| -| + ムードボード | $0.04 | $0.07 | - ## 出力 | 出力 | 型 | 説明 | @@ -66,8 +94,8 @@ Krea 2 Image ノードは Krea 2 を介して画像を生成します。Medium ```python class Krea2ImageNode: """ - Generate images via Krea 2 — pick Medium (expressive illustrations) or - Large (expressive photorealism). Supports an optional moodboard and up + Generate images via Krea 2 — pick Medium (expressive illustrations) or + Large (expressive photorealism). Supports an optional moodboard and up to 10 chained image style references. """ @@ -76,49 +104,4 @@ class Krea2ImageNode: FUNCTION = "execute" API_NODE = True CATEGORY = "image/partner/Krea" - - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "prompt": ( - IO.STRING, - { - "multiline": True, - "default": "", - "tooltip": "Text prompt for the image.", - }, - ), - "model": ( - IO.DynamicCombo( - options=[ - IO.DynamicCombo.Option( - "Krea 2 Medium", - [ - IO.Combo.Input("aspect_ratio", ...), - IO.Combo.Input("resolution", ...), - IO.Combo.Input("creativity", ...), - IO.String.Input("moodboard_id", ...), - IO.Float.Input("moodboard_strength", ...), - IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...), - ], - ), - IO.DynamicCombo.Option( - "Krea 2 Large", - [/* same structure */], - ), - ], - ), - ), - "seed": ( - IO.INT, - { - "default": 0, - "min": 0, - "max": 2147483647, - "control_after_generate": True, - }, - ), - } - } ``` diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index e5cb9523a..6e2366de4 100644 --- a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,9 +5,9 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -![ComfyUI ビルトイン Krea 2 Style Reference ノード](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) +Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。スタイル転送は Krea 2 モデルのコア機能であり、独立した後処理フィルターではありません。参照画像を渡すと、モデルがその美的エッセンス(カラーパレット、照明、テクスチャ、構図)を抽出し、生成プロセスで自然に適用します。 -Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。複数の Krea 2 Style Reference ノードをチェーン接続し(最大 10 個)、最終的な `style_reference` 出力を Krea 2 Image ノードに渡します。各画像は ComfyAPI ストレージにアップロードされ、URL として渡されます。 +複数の Krea 2 Style Reference ノードをチェーン接続し(最大 10 個)、最終的な `style_reference` 出力を Krea 2 Image ノードに渡すことで多スタイル融合が可能です。各画像は ComfyAPI ストレージにアップロードされ、URL として渡されます。 ## パラメータ @@ -38,8 +38,8 @@ Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリフ ```python class Krea2StyleReferenceNode: """ - Add 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 + Add 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. """ @@ -48,35 +48,4 @@ class Krea2StyleReferenceNode: FUNCTION = "execute" API_NODE = True CATEGORY = "image/partner/Krea" - - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "image": ( - IO.IMAGE, - { - "tooltip": "Reference image whose style influences the generation.", - }, - ), - "strength": ( - IO.FLOAT, - { - "default": 1.0, - "min": -2.0, - "max": 2.0, - "step": 0.05, - "tooltip": "Reference strength; negative values invert the style influence.", - }, - ), - }, - "optional": { - "style_reference": ( - IO.Custom(KreaIO.STYLE_REF), - { - "tooltip": "Optional incoming chain of style references.", - }, - ), - }, - } ``` diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx index dc85216d8..fd3eb10c0 100644 --- a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,9 +5,54 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -![ComfyUI 内置 Krea 2 Image 节点](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) +Krea 2 Image 节点通过 **Krea 2** 生成图像——Krea 首款专为创意控制设计的基础图像模型。提供两种模型变体:**Krea 2 Medium** 和 **Krea 2 Large**,各针对不同使用场景。节点支持可选的 moodboard、最多 10 个链式图像风格参考,以及控制模型如何诠释你的提示词。 -Krea 2 Image 节点通过 Krea 2 生成图像——选择 Medium(表现力插画)或 Large(表现力写实)。支持可选的 moodboard 和最多 10 个链式图像风格参考。 +## 模型概览 + +### Krea 2 Medium + +更小、更快、更经济的选择。更强的后训练(post-training)使生成结果在运行时更加稳定和一致。在插画、动漫、绘画等表现力风格上尤其出色。 + +- 推理更快,单次生成成本更低 +- 相同种子下输出更一致 +- 最适合作:插画、动漫、绘画、角色设计、概念艺术、风格化图形 + +### Krea 2 Large + +Medium 的两倍以上规模,后训练较轻。输出更生猛、纹理更丰富、更灵活。同样擅长表现力风格,但更偏向写实和"原汁原味"风格。 + +- 更高的保真度和纹理细节 +- 相同种子下输出更富变化 +- 最适合作:照片级写实、产品拍摄、风景、人像、建筑可视化 + +### 创造力控制 + +`creativity` 参数控制模型如何诠释你的提示词,共有 4 个级别: + +| 级别 | 描述 | +| ------ | ------------------------------ | +| Raw | 最贴近提示词,最少诠释 | +| Low | 轻微的创意诠释 | +| Medium | 创造力和提示词遵循度的平衡(默认)| +| High | 最大美学深度和视觉丰富度 | + +需要模型添加艺术感时设高,需要严格遵循提示词时设低。 + +### 风格迁移 + +风格迁移是 Krea 2 的核心能力,并非独立的后期处理流程。通过 **Krea 2 Style Reference** 节点传入参考图像,模型提取其美学风格应用于生成。最多可链式连接 10 个风格参考,实现多风格融合。 + +### 情绪板调节 + +可选择连接 Krea 情绪板 UUID(从 Krea 网站获取)来影响整体美学方向。`moodboard_strength` 参数(-0.5 至 1.5)控制情绪板的影响力度。 + +## 定价 + +| 配置 | Medium | Large | +| ------------------------- | ------ | ----- | +| 文本生成图像(无额外) | $0.03 | $0.06 | +| + 风格参考 | $0.035 | $0.065| +| + 情绪板 | $0.04 | $0.07 | ## 参数 @@ -24,35 +69,18 @@ Krea 2 Image 节点通过 Krea 2 生成图像——选择 Medium(表现力插 | 参数 | 类型 | 默认值 | 描述 | | ------------------- | -------- | ------ | ------------------------------- | -| model | select | Medium | Krea 2 Medium(插画)或 Large(写实) | +| model | select | Medium | Krea 2 Medium 或 Large | | aspect_ratio | select | 1:1 | 输出宽高比 | | resolution | select | 1K | 分辨率 | | creativity | select | medium | 提示词诠释强度 | | moodboard_id | string | "" | 可选的 Krea 情绪板 UUID | | moodboard_strength | float | 0.35 | 情绪板影响度(-0.5 至 1.5) | -| style_reference | chain | — | 可选的风格参考链 | +| style_reference | chain | — | 可选的风格参考链 | ### 宽高比选项 `1:1`、`4:3`、`3:2`、`16:9`、`2.35:1`、`4:5`、`2:3`、`9:16` -### 创造力级别 - -| 级别 | 描述 | -| ------ | ----------------------------- | -| raw | 最贴近提示词 | -| low | 轻微的创意诠释 | -| medium | 创造力和提示词遵循度的平衡 | -| high | 最大美学深度和视觉丰富度 | - -## 定价 - -| 配置 | Medium | Large | -| ------------------------- | ------ | ----- | -| 文本生成图像(无额外) | $0.03 | $0.06 | -| + 风格参考 | $0.035 | $0.065| -| + 情绪板 | $0.04 | $0.07 | - ## 输出 | 输出 | 类型 | 描述 | @@ -66,8 +94,8 @@ Krea 2 Image 节点通过 Krea 2 生成图像——选择 Medium(表现力插 ```python class Krea2ImageNode: """ - Generate images via Krea 2 — pick Medium (expressive illustrations) or - Large (expressive photorealism). Supports an optional moodboard and up + Generate images via Krea 2 — pick Medium (expressive illustrations) or + Large (expressive photorealism). Supports an optional moodboard and up to 10 chained image style references. """ @@ -76,49 +104,4 @@ class Krea2ImageNode: FUNCTION = "execute" API_NODE = True CATEGORY = "image/partner/Krea" - - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "prompt": ( - IO.STRING, - { - "multiline": True, - "default": "", - "tooltip": "Text prompt for the image.", - }, - ), - "model": ( - IO.DynamicCombo( - options=[ - IO.DynamicCombo.Option( - "Krea 2 Medium", - [ - IO.Combo.Input("aspect_ratio", ...), - IO.Combo.Input("resolution", ...), - IO.Combo.Input("creativity", ...), - IO.String.Input("moodboard_id", ...), - IO.Float.Input("moodboard_strength", ...), - IO.Custom(KreaIO.STYLE_REF).Input("style_reference", ...), - ], - ), - IO.DynamicCombo.Option( - "Krea 2 Large", - [/* same structure */], - ), - ], - ), - ), - "seed": ( - IO.INT, - { - "default": 0, - "min": 0, - "max": 2147483647, - "control_after_generate": True, - }, - ), - } - } ``` diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index 577a8efb0..c5f456777 100644 --- a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,9 +5,9 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -![ComfyUI 内置 Krea 2 Style Reference 节点](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) +Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。风格迁移是 Krea 2 模型的核心能力,而非独立的后期处理流程。传入参考图像后,模型会提取其美学本质(色彩搭配、光影、质感、构图),在生成过程中自然应用。 -Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。链式连接多个 Krea 2 Style Reference 节点(最多 10 个),将最终的 `style_reference` 输出传入 Krea 2 Image 节点。每张图像会上传到 ComfyAPI 存储,以 URL 形式传递。 +可链式连接多个 Krea 2 Style Reference 节点(最多 10 个),将最终的 `style_reference` 输出传入 Krea 2 Image 节点,实现多风格融合。每张图像会传到 ComfyAPI 存储,以 URL 形式传递。 ## 参数 @@ -38,8 +38,8 @@ Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。链式 ```python class Krea2StyleReferenceNode: """ - Add 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 + Add 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. """ @@ -48,35 +48,4 @@ class Krea2StyleReferenceNode: FUNCTION = "execute" API_NODE = True CATEGORY = "image/partner/Krea" - - @classmethod - def INPUT_TYPES(s): - return { - "required": { - "image": ( - IO.IMAGE, - { - "tooltip": "Reference image whose style influences the generation.", - }, - ), - "strength": ( - IO.FLOAT, - { - "default": 1.0, - "min": -2.0, - "max": 2.0, - "step": 0.05, - "tooltip": "Reference strength; negative values invert the style influence.", - }, - ), - }, - "optional": { - "style_reference": ( - IO.Custom(KreaIO.STYLE_REF), - { - "tooltip": "Optional incoming chain of style references.", - }, - ), - }, - } ``` From 593fe0e3c7b20354f93864068c8e3b0788edd9d8 Mon Sep 17 00:00:00 2001 From: lin-bot23 Date: Thu, 28 May 2026 14:45:53 +0800 Subject: [PATCH 3/4] docs: restructure Krea 2 docs per partner node doc template - Tutorial opens with model highlights (What's new in Krea 2 style) - Tutorial focuses on model features + workflow cards + steps - Built-in node docs simplified: removed fake screenshots, pricing, long source code - Built-in nodes now show just Inputs/Outputs/Source Code sections - Synced across all three languages (EN/ZH/JA) --- .../partner-node/image/krea/krea2-image.mdx | 103 +++------------- .../image/krea/krea2-style-reference.mdx | 41 ++----- .../partner-node/image/krea/krea2-image.mdx | 111 +++--------------- .../image/krea/krea2-style-reference.mdx | 39 ++---- .../partner-nodes/krea/krea2-image.mdx | 99 ++++++---------- tutorials/partner-nodes/krea/krea2-image.mdx | 97 +++++---------- .../partner-node/image/krea/krea2-image.mdx | 105 +++-------------- .../image/krea/krea2-style-reference.mdx | 39 ++---- .../partner-nodes/krea/krea2-image.mdx | 109 ++++++----------- 9 files changed, 172 insertions(+), 571 deletions(-) diff --git a/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/built-in-nodes/partner-node/image/krea/krea2-image.mdx index 175ee9ff9..0bc1f9050 100644 --- a/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,83 +5,23 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -The Krea 2 Image node generates images via **Krea 2**, Krea's first foundation image model designed for creative control. It offers two model variants — **Krea 2 Medium** and **Krea 2 Large** — each tuned for different use cases. The node supports an optional moodboard, up to 10 chained image style references, and the ability to control how creatively the model interprets your prompt. +The Krea 2 Image node generates images via Krea 2, Krea's first foundation image model. It offers two model variants — Krea 2 Medium (expressive illustrations) and Krea 2 Large (expressive photorealism) — with tunable creativity, optional moodboard conditioning, and support for up to 10 chained image style references. -## Model Overview +## Inputs -### Krea 2 Medium +| Input | Type | Description | +| ---------------- | ----- | ------------------------------------------------------ | +| prompt | string | Text prompt for the image generation | +| model | select | Krea 2 Medium or Krea 2 Large (determines available parameters) | +| aspect_ratio | select | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | +| resolution | select | 1K | +| creativity | select | Raw, Low, Medium, High | +| moodboard_id | string | Optional Krea moodboard UUID | +| moodboard_strength | float | -0.5 to 1.5 | +| style_reference | chain | Optional chain of style references (max 10) | +| seed | int | Random seed (0 to 2147483647) | -The smaller, faster, more cost-efficient option. Heavier post-training makes generations more stable and consistent run-to-run. Particularly strong on illustration, anime, painting, and other expressive styles. - -- Faster inference, lower cost per generation -- More consistent output across runs with the same seed -- Best suited for: illustrations, anime, paintings, character art, concept art, stylized graphics - -### Krea 2 Large - -More than twice the size of Medium, with lighter post-training. Outputs feel rawer, more textured, and more flexible. Handles expressive work well too, but is the stronger pick for photorealism and "raw" looks. - -- Higher fidelity and texture detail -- More varied output even at the same seed -- Best suited for: photorealism, product shots, landscapes, portraits, architectural visualization - -### Creativity Control - -The `creativity` parameter lets you control how the model interprets your text prompt. It has four levels: - -| Level | Description | -| ------ | -------------------------------------------------- | -| Raw | Stays closest to the prompt, minimal interpretation | -| Low | Slight creative interpretation | -| Medium | Balanced creativity and prompt adherence (default) | -| High | Maximum aesthetic depth and visual richness | - -Set it higher when you want the model to add artistic flair; lower when you need precise prompt adherence. - -### Style Transfer - -Style transfer is built into Krea 2's foundation — it's not a separate pipeline. Pass reference images through the **Krea 2 Style Reference** node and the model extracts and applies the aesthetic style to your generation. You can chain up to 10 style references together for multi-style fusion. - -### Moodboard Conditioning - -Optionally connect a Krea moodboard UUID (from the Krea website) to influence the overall aesthetic direction. The `moodboard_strength` parameter (-0.5 to 1.5) controls how much the moodboard influences the output. - -## Pricing - -| Configuration | Medium | Large | -| ---------------------------- | ------ | ----- | -| Text to image (no extras) | $0.03 | $0.06 | -| + Style reference(s) | $0.035 | $0.065| -| + Moodboard | $0.04 | $0.07 | - -## Parameters - -### Basic Parameters - -| Parameter | Type | Default | Description | -| --------- | ------ | ----------- | ------------------------------------------ | -| prompt | string | "" | Text prompt for the image generation | -| seed | int | 0 | Random seed for reproducibility | - -### Model Parameters (Dynamic) - -The `model` parameter is a dynamic combo that changes based on the selected model variant: - -| Parameter | Type | Default | Description | -| ------------------- | ------ | -------- | ----------------------------------------------------- | -| model | select | Medium | Krea 2 Medium (illustration) or Krea 2 Large (photorealism) | -| aspect_ratio | select | 1:1 | Output aspect ratio | -| resolution | select | 1K | Resolution scale | -| creativity | select | medium | Prompt interpretation strength | -| moodboard_id | string | "" | Optional Krea moodboard UUID | -| moodboard_strength | float | 0.35 | Moodboard influence (-0.5 to 1.5) | -| style_reference | chain | — | Optional chain of style references | - -### Aspect Ratio Options - -`1:1`, `4:3`, `3:2`, `16:9`, `2.35:1`, `4:5`, `2:3`, `9:16` - -## Output +## Outputs | Output | Type | Description | | ------ | ----- | ------------------- | @@ -90,18 +30,3 @@ The `model` parameter is a dynamic combo that changes based on the selected mode ## Source Code [View source code on GitHub](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) - -```python -class Krea2ImageNode: - """ - Generate images via Krea 2 — pick Medium (expressive illustrations) or - Large (expressive photorealism). Supports an optional moodboard and up - to 10 chained image style references. - """ - - RETURN_TYPES = (IO.IMAGE,) - DESCRIPTION = cleandoc(__doc__ or "") - FUNCTION = "execute" - API_NODE = True - CATEGORY = "image/partner/Krea" -``` diff --git a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index 7d79c65b5..29b2864fe 100644 --- a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,27 +5,17 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -The Krea 2 Style Reference node adds an image style reference to a Krea 2 generation. Style transfer is a core capability of the Krea 2 model — it's not a separate pipeline or after-effects filter. When you pass a reference image, the model extracts its aesthetic essence (color palette, lighting, texture, composition) and applies it during the generation process. +The Krea 2 Style Reference node adds an image style reference to a Krea 2 generation. Style transfer is built into the Krea 2 model — when you pass a reference image, the model extracts its aesthetic essence (color palette, lighting, texture, composition) and applies it during generation. You can chain up to 10 style references for multi-style fusion. -Chain multiple Krea 2 Style Reference nodes (max 10) and feed the final `style_reference` output into a Krea 2 Image node for multi-style fusion. Each image is uploaded to ComfyAPI storage and passed as URL. +## Inputs -## Parameters +| Input | Type | Description | +| ---------------- | ------- | ------------------------------------------------ | +| image | image | Reference image whose style influences the generation | +| strength | float | -2.0 to 2.0 (default: 1.0) | +| style_reference | chain | Optional incoming chain of style references | -| Parameter | Type | Default | Description | -| --------------- | ------ | ------- | ---------------------------------------------- | -| image | image | — | Reference image whose style influences the generation | -| strength | float | 1.0 | Reference strength (-2.0 to 2.0) | -| style_reference | chain | — | Optional incoming chain of style references | - -### Strength - -The `strength` parameter controls how strongly the reference image's style influences the output: - -- **Positive values (0.0 to 2.0):** Apply the reference style with increasing intensity -- **Negative values (-2.0 to 0.0):** Invert the style influence -- **0.0:** No style influence - -## Output +## Outputs | Output | Type | Description | | --------------- | ----- | ---------------------------------------- | @@ -34,18 +24,3 @@ The `strength` parameter controls how strongly the reference image's style influ ## Source Code [View source code on GitHub](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) - -```python -class Krea2StyleReferenceNode: - """ - Add 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. - """ - - RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),) - DESCRIPTION = cleandoc(__doc__ or "") - FUNCTION = "execute" - API_NODE = True - CATEGORY = "image/partner/Krea" -``` diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx index 294da034c..f9d0127b2 100644 --- a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,103 +5,28 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -Krea 2 Image ノードは **Krea 2** — Krea 初のクリエイティブコントロールを重視したファウンデーション画像モデル — を介して画像を生成します。**Krea 2 Medium** と **Krea 2 Large** の 2 つのモデルバリアントを提供し、それぞれ異なるユースケースに最適化されています。オプションのムードボード、最大 10 個のチェーン式スタイルリファレンス、プロンプトの解釈度合いを制御するクリエイティビティ調整をサポートします。 - -## モデル概要 - -### Krea 2 Medium - -小型で高速、コスト効率に優れたオプション。強めの後処理により、実行ごとの出力が安定して一貫しています。イラスト、アニメ、絵画などの表現力豊かなスタイルに特に優れています。 - -- 推論が速く、1 回あたりの生成コストが低い -- 同じシードでより一貫した出力 -- 最適:イラスト、アニメ、絵画、キャラクターデザイン、コンセプトアート、スタイライズドグラフィック - -### Krea 2 Large - -Medium の 2 倍以上のサイズで、後処理は軽め。出力はより生々しく、テクスチャがあり、柔軟です。表現力豊かな作品にも対応し、フォトリアリズムや「生」のルックに適しています。 - -- 高い忠実度とテクスチャ詳細 -- 同じシードでもより多様な出力 -- 最適:フォトリアリズム、商品撮影、風景、ポートレート、建築ビジュアライゼーション - -### クリエイティビティ制御 - -`creativity` パラメータはモデルがプロンプトをどう解釈するかを制御します。4 つのレベルがあります: - -| レベル | 説明 | -| ------- | ----------------------------------------- | -| Raw | プロンプトに最も忠実、最小限の解釈 | -| Low | 軽度のクリエイティブ解釈 | -| Medium | 創造性と忠実度のバランス(デフォルト) | -| High | 最大の美的深度と視覚的豊かさ | - -高い設定で芸術的なフレアを追加、低い設定で正確なプロンプト再現が必要な場合に使用します。 - -### スタイル転送 - -スタイル転送は Krea 2 のコア機能であり、独立したパイプラインではありません。**Krea 2 Style Reference** ノードに参照画像を渡すと、モデルがその美学スタイルを抽出し、生成に適用します。最大 10 個のスタイルリファレンスをチェーンして多スタイル融合が可能です。 - -### ムードボードコンディショニング - -Krea ムードボード UUID(Krea ウェブサイトから取得)を接続して全体の美的方向性に影響を与えることができます。`moodboard_strength` パラメータ(-0.5 〜 1.5)で影響度を調整します。 - -## 料金 - -| 設定 | Medium | Large | -| ---------------------------- | ------ | ----- | -| テキストから画像(追加なし) | $0.03 | $0.06 | -| + スタイルリファレンス | $0.035 | $0.065| -| + ムードボード | $0.04 | $0.07 | - -## パラメータ - -### 基本パラメータ - -| パラメータ | 型 | デフォルト | 説明 | -| ---------- | ------ | ---------- | ------------------------ | -| prompt | string | "" | 画像生成のテキストプロンプト | -| seed | int | 0 | 再現性のためのランダムシード | - -### モデルパラメータ(動的) - -`model` パラメータは選択したモデルバリアントに応じて変化する動的コンボです: - -| パラメータ | 型 | デフォルト | 説明 | -| -------------------- | ------ | ---------- | ----------------------------------- | -| model | select | Medium | Krea 2 Medium または Large | -| aspect_ratio | select | 1:1 | 出力アスペクト比 | -| resolution | select | 1K | 解像度 | -| creativity | select | medium | プロンプト解釈の強度 | -| moodboard_id | string | "" | オプションの Krea ムードボード UUID | -| moodboard_strength | float | 0.35 | ムードボードの影響度(-0.5 〜 1.5) | -| style_reference | chain | — | オプションのスタイルリファレンスチェーン | - -### アスペクト比オプション - -`1:1`、`4:3`、`3:2`、`16:9`、`2.35:1`、`4:5`、`2:3`、`9:16` +Krea 2 Image ノードは Krea 2(Krea 初のファウンデーション画像モデル)を介して画像を生成します。Krea 2 Medium(表現力豊かなイラスト)と Krea 2 Large(表現力豊かなフォトリアリズム)の 2 つのモデルバリアントを提供し、調整可能なクリエイティビティ、オプションのムードボード、最大 10 個のチェーン式スタイルリファレンスをサポートします。 + +## 入力 + +| 入力 | 型 | 説明 | +| ----------------- | ------- | ------------------------------------- | +| prompt | string | 画像生成のテキストプロンプト | +| model | select | Krea 2 Medium または Large | +| aspect_ratio | select | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | +| resolution | select | 1K | +| creativity | select | Raw, Low, Medium, High | +| moodboard_id | string | オプションの Krea ムードボード UUID | +| moodboard_strength | float | -0.5 〜 1.5 | +| style_reference | chain | オプションのスタイルリファレンスチェーン(最大 10 個) | +| seed | int | ランダムシード(0 〜 2147483647) | ## 出力 -| 出力 | 型 | 説明 | -| ------ | ----- | ------------ | -| IMAGE | image | 生成された画像 | +| 出力 | 型 | 説明 | +| ------ | ----- | ---------------- | +| IMAGE | image | 生成された画像 | ## ソースコード [GitHub でソースコードを表示](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) - -```python -class Krea2ImageNode: - """ - Generate images via Krea 2 — pick Medium (expressive illustrations) or - Large (expressive photorealism). Supports an optional moodboard and up - to 10 chained image style references. - """ - - RETURN_TYPES = (IO.IMAGE,) - DESCRIPTION = cleandoc(__doc__ or "") - FUNCTION = "execute" - API_NODE = True - CATEGORY = "image/partner/Krea" -``` diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index 6e2366de4..142b254b7 100644 --- a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,25 +5,15 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。スタイル転送は Krea 2 モデルのコア機能であり、独立した後処理フィルターではありません。参照画像を渡すと、モデルがその美的エッセンス(カラーパレット、照明、テクスチャ、構図)を抽出し、生成プロセスで自然に適用します。 +Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。スタイル転送は Krea 2 モデルに組み込まれており、参照画像を渡すとモデルがその美的エッセンス(カラーパレット、照明、テクスチャ、構図)を抽出し、生成時に適用します。最大 10 個のスタイルリファレンスをチェーンして多スタイル融合が可能です。 -複数の Krea 2 Style Reference ノードをチェーン接続し(最大 10 個)、最終的な `style_reference` 出力を Krea 2 Image ノードに渡すことで多スタイル融合が可能です。各画像は ComfyAPI ストレージにアップロードされ、URL として渡されます。 +## 入力 -## パラメータ - -| パラメータ | 型 | デフォルト | 説明 | -| --------------- | ------ | ---------- | ---------------------------------------- | -| image | image | — | 生成にスタイル影響を与える参照画像 | -| strength | float | 1.0 | 参照強度(-2.0 〜 2.0) | -| style_reference | chain | — | オプションの入力スタイルリファレンスチェーン | - -### 強度について - -`strength` パラメータは、参照画像のスタイルが出力に与える影響の強さを制御します: - -- **正の値(0.0 〜 2.0):** 増加する強度で参照スタイルを適用 -- **負の値(-2.0 〜 0.0):** スタイルの影響を反転 -- **0.0:** スタイルの影響なし +| 入力 | 型 | 説明 | +| --------------- | ------ | ---------------------------------------- | +| image | image | 生成にスタイル影響を与える参照画像 | +| strength | float | -2.0 〜 2.0(デフォルト 1.0) | +| style_reference | chain | オプションの入力スタイルリファレンスチェーン | ## 出力 @@ -34,18 +24,3 @@ Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリフ ## ソースコード [GitHub でソースコードを表示](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) - -```python -class Krea2StyleReferenceNode: - """ - Add 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. - """ - - RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),) - DESCRIPTION = cleandoc(__doc__ or "") - FUNCTION = "execute" - API_NODE = True - CATEGORY = "image/partner/Krea" -``` diff --git a/ja/tutorials/partner-nodes/krea/krea2-image.mdx b/ja/tutorials/partner-nodes/krea/krea2-image.mdx index 09b8b0764..f42b88bce 100644 --- a/ja/tutorials/partner-nodes/krea/krea2-image.mdx +++ b/ja/tutorials/partner-nodes/krea/krea2-image.mdx @@ -1,5 +1,5 @@ --- -title: "Krea 2 Image API ノード ComfyUI 公式サンプルチュートリアル" +title: "Krea 2 Image API Node ComfyUI 公式サンプル" description: "ComfyUI で Krea 2 Image および Krea 2 Style Reference パートナーノードを使用する方法を学びます" sidebarTitle: "Krea 2 Image" --- @@ -7,22 +7,23 @@ sidebarTitle: "Krea 2 Image" import ReqHint from "/snippets/ja/tutorials/partner-nodes/req-hint.mdx"; import UpdateReminder from "/snippets/ja/tutorials/update-reminder.mdx"; -[Krea 2 Image](/ja/built-in-nodes/partner-node/image/krea/krea2-image) および [Krea 2 Style Reference](/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference) ノードは、Krea の初のファウンデーション画像モデルを ComfyUI にパートナーノードとして提供します。Krea 2 はクリエイティブコントロールを重視して設計されており、調整可能なクリエイティビティ、スタイルリファレンス、ムードボードコンディショニング、そしてイラストからフォトリアリズムまでをカバーする 2 つのモデルバリアントを備えています。 - -このガイドでは、利用可能な Krea 2 ワークフローとその使用方法を説明します。 +Krea 2 は Krea 初のファウンデーション画像モデルで、クリエイティブコントロールを重視して設計されています。調整可能なクリエイティビティシステム、スタイルリファレンスコンディショニング、ムードボードサポート、そしてイラストからフォトリアリズムまでをカバーする 2 つの異なるモデルバリアントを備えています。 -## 利用可能なワークフロー +## Krea 2 の新機能 -Krea 2 は現在、テンプレートライブラリに 2 つのワークフローを提供しています: +- **2 つのモデルバリアント** — Krea 2 Medium(安定した表現力豊かなイラスト)と Krea 2 Large(生々しくテクスチャのあるフォトリアリズム)。速度、コスト、出力のキャラクターをトレードオフできます +- **調整可能なクリエイティビティ** — Raw(厳密なプロンプト順守)から High(最大の美的深度)まで。モデルがプロンプトをどの程度文字通りに解釈するかを完全に制御できます +- **組み込みのスタイル転送** — スタイルリファレンスは後処理フィルターではなく、モデルの生成方法に組み込まれています。最大 10 個の参照画像をチェーンして多スタイル融合が可能 +- **ムードボードコンディショニング** — Krea ムードボード UUID を接続して全体的な美的方向性を制御し、影響度を細かく調整可能 +- **実行間の一貫性** — 特に Medium バリアントは同じシードで安定した再現可能な結果を提供し、反復作業に信頼性をもたらします -- **Krea2: Text to Image(テキストから画像生成)** — 完全なパラメータコントロールでテキストプロンプトから画像を生成 -- **Krea 2: Style Reference(スタイルリファレンス)** — 参照画像をアップロードし、その美的スタイルを適用した画像を生成 +## Krea 2 Text to Image ワークフロー - + Comfy Cloud で開く @@ -30,8 +31,20 @@ Krea 2 は現在、テンプレートライブラリに 2 つのワークフロ +### 実行手順 + +1. **Krea 2 Image** ノードにテキストプロンプトを入力 +2. **Krea 2 Medium** または **Krea 2 Large** を選択 +3. アスペクト比、クリエイティビティ、シードなどのオプションパラメータを調整 +4. **Queue Prompt**(または `Ctrl+Enter` / `Cmd+Enter`)をクリックして生成 +5. 生成された画像が出力プレビューに表示され、`ComfyUI/output/` に保存されます + +![Krea 2 テキストから画像ワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) + +## Krea 2 Style Reference ワークフロー + - + Comfy Cloud で開く @@ -39,29 +52,13 @@ Krea 2 は現在、テンプレートライブラリに 2 つのワークフロ -## Krea2: Text to Image ワークフローの使い方 - -Krea2: Text to Image ワークフローはシンプルな設定で使用できます: +### 実行手順 -1. テンプレートライブラリからワークフローを開くか、JSON ファイルをダウンロード -2. **Krea 2 Image** ノードにテキストプロンプトを入力 -3. **Krea 2 Medium**(表現力豊かなイラスト)または **Krea 2 Large**(表現力豊かなフォトリアリズム)を選択 -4. アスペクト比、クリエイティビティ、シードなどのオプションパラメータを調整 -5. **Queue Prompt**(または `Ctrl+Enter` / `Cmd+Enter`)をクリックして生成 -6. 生成された画像は出力プレビューに表示され、`ComfyUI/output/` に保存されます - -![Krea 2 テキストから画像ワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) - -## Krea 2: Style Reference ワークフローの使い方 - -Krea 2: Style Reference ワークフローは、テキストから画像生成にスタイル転送を追加します: - -1. テンプレートライブラリからワークフローを開くか、JSON ファイルをダウンロード -2. ワークフローには 2 つの **Load Image** ノードが含まれており、サンプルのスタイル参照画像がプリロードされています(独自の画像を読み込むことも可能) -3. 各画像は個別の **Krea 2 Style Reference** ノードに接続され、**strength(強度)** パラメータを調整可能 -4. スタイル参照は **Krea 2 Image** ノードにチェーンで渡されます -5. **Krea 2 Image** ノードでテキストプロンプトを入力し、他の生成パラメータを設定 -6. **Queue Prompt** をクリックして生成 +1. ワークフローには 2 つの **Load Image** ノードが含まれており、サンプルのスタイル参照画像がプリロードされています(独自の画像も使用可能) +2. 各画像は個別の **Krea 2 Style Reference** ノードに接続 — 参照ごとに **strength** パラメータを調整 +3. スタイル参照は **Krea 2 Image** ノードにチェーンで渡されます — 最大 10 個までチェーン可能 +4. **Krea 2 Image** ノードでテキストプロンプトを入力し、他の生成パラメータを設定 +5. **Queue Prompt** をクリックして生成 ![Krea 2 スタイルリファレンスワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) @@ -74,38 +71,8 @@ Krea 2: Style Reference ワークフローは、テキストから画像生成 -## Krea 2 モデルについて - -Krea 2 Image ノードは 2 つのモデルバリアントを提供します: - -### Krea 2 Medium - -より小型で高速、コスト効率の高いオプション。強めのポストトレーニングにより、生成結果は実行ごとに安定して一貫性があります。イラスト、アニメ、絵画などの表現力豊かなスタイルに特に優れています。 - -### Krea 2 Large - -Medium の 2 倍以上のサイズで、ポストトレーニングは軽め。出力はより生々しく、テクスチャがあり、柔軟です。表現力豊かな作品にも対応し、フォトリアリズムや「生」のルックに適しています。 - -## Krea 2 の機能について - -### スタイル転送 - -参照画像を **Krea 2 Style Reference** ノードの `image` 入力に渡すと、モデルがスタイルを抽出して生成に適用します。最大 10 個のスタイルリファレンスをチェーンして、マルチスタイル融合が可能です。 - -### クリエイティビティ - -`creativity(クリエイティビティ)` パラメータには 4 つのレベルがあります:**Raw(生)**、**Low(低)**、**Medium(中)**、**High(高)**。高い設定ほど美的深度と視覚的な豊かさが増します。低い設定ほどプロンプトへの忠実度が高まります。クリエイティブな解釈と忠実な再現のバランスを取るための主要な調整機能です。 - -### ムードボード - -オプションで Krea ムードボード UUID(Krea ウェブサイトから取得)を接続して、全体の美的方向性に影響を与えることができます。ムードボードの影響度も調整可能です。 - -## 関連ノードドキュメント - - -Krea 2 Image ノードの詳細パラメータリファレンス - +## 補足説明 - -Krea 2 Style Reference ノードの詳細パラメータリファレンス - +- **クリエイティビティレベル**:Raw → Low → Medium → High。高いほど美的深度が増し、低いほどプロンプトへの忠実度が高まります +- **スタイルリファレンス強度**:範囲 -2.0 から 2.0。負の値はスタイルの影響を反転します +- **ムードボード**:オプションの Krea ウェブサイト UUID(影響度は調整可能) diff --git a/tutorials/partner-nodes/krea/krea2-image.mdx b/tutorials/partner-nodes/krea/krea2-image.mdx index d3de03050..c7b95c3c3 100644 --- a/tutorials/partner-nodes/krea/krea2-image.mdx +++ b/tutorials/partner-nodes/krea/krea2-image.mdx @@ -7,22 +7,23 @@ sidebarTitle: "Krea 2 Image" import ReqHint from "/snippets/tutorials/partner-nodes/req-hint.mdx"; import UpdateReminder from "/snippets/tutorials/update-reminder.mdx"; -The [Krea 2 Image](/built-in-nodes/partner-node/image/krea/krea2-image) and [Krea 2 Style Reference](/built-in-nodes/partner-node/image/krea/krea2-style-reference) nodes bring Krea's first foundation image model into ComfyUI as Partner Nodes. Krea 2 is designed for creative control — with tunable creativity, style references, moodboard conditioning, and two model variants that cover illustration, photorealism, and everything in between. - -In this guide, we'll walk through the available Krea 2 workflows and how to use them. +Krea 2 is Krea's first foundation image model, designed for creative control. It introduces a tunable creativity system, style reference conditioning, moodboard support, and two distinct model variants that cover illustration through photorealism and everything in between. -## Available Workflows +## What's new in Krea 2 -Krea 2 currently offers two workflows in the Template Library: +- **Two model variants** — Krea 2 Medium (stable, expressive illustrations) and Krea 2 Large (raw, textured photorealism). Trade off speed, cost, and output character +- **Tunable creativity** — Adjustable from Raw (tight prompt adherence) to High (maximum aesthetic depth). Full creative control over how literally the model interprets your prompt +- **Style transfer baked in** — Style reference is not a post-processing filter; it's built into how the model generates. Pass up to 10 reference images and chain them together for multi-style fusion +- **Moodboard conditioning** — Connect a Krea moodboard UUID to steer the overall aesthetic direction, with fine-grained influence control +- **Consistent run-to-run** — Medium variant in particular delivers stable, repeatable results at the same seed, making it reliable for iterative work -- **Krea2: Text to Image** — Generate images from text prompts with full parameter control -- **Krea 2: Style Reference** — Upload a reference image and generate images that apply its aesthetic style +## Krea 2 Text to Image workflow - + Open in Comfy Cloud @@ -30,8 +31,20 @@ Krea 2 currently offers two workflows in the Template Library: +### Steps to run the workflow + +1. Enter your text prompt in the **Krea 2 Image** node +2. Choose between **Krea 2 Medium** and **Krea 2 Large** +3. Adjust optional parameters like **aspect ratio**, **creativity**, and **seed** +4. Click **Queue Prompt** (or `Ctrl+Enter` / `Cmd+Enter`) to generate +5. The generated image appears in the output preview and is saved to `ComfyUI/output/` + +![Krea 2 Text to Image Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) + +## Krea 2 Style Reference workflow + - + Open in Comfy Cloud @@ -39,29 +52,13 @@ Krea 2 currently offers two workflows in the Template Library: -## How to Use the Krea 2 Image Workflow - -The Krea2: Text to Image workflow provides a straightforward setup: +### Steps to run the workflow -1. Open the workflow from the Template Library or download the JSON file -2. Enter your text prompt in the **Krea 2 Image** node -3. Choose between **Krea 2 Medium** (expressive illustrations) and **Krea 2 Large** (expressive photorealism) -4. Adjust optional parameters like **aspect ratio**, **creativity**, and **seed** -5. Click **Queue Prompt** (or `Ctrl+Enter` / `Cmd+Enter`) to generate -6. The generated image appears in the output preview and is saved to `ComfyUI/output/` - -![Krea 2 Text to Image Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) - -## How to Use the Krea 2 Style Reference Workflow - -The Krea 2: Style Reference workflow adds style transfer on top of text-to-image generation: - -1. Open the workflow from the Template Library or download the JSON file -2. The workflow includes two **Load Image** nodes pre-loaded with sample style reference images (or load your own) -3. Each image feeds into a **Krea 2 Style Reference** node, where you can adjust the **strength** parameter -4. The style references chain into the **Krea 2 Image** node -5. Enter your text prompt and configure other generation parameters -6. Click **Queue Prompt** to generate +1. The workflow includes two **Load Image** nodes with sample style reference images pre-loaded (or load your own) +2. Each image feeds into a **Krea 2 Style Reference** node — adjust the **strength** parameter per reference +3. The style references chain into the **Krea 2 Image** node — you can chain up to 10 +4. Enter your text prompt and configure other generation parameters +5. Click **Queue Prompt** to generate ![Krea 2 Style Reference Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) @@ -74,38 +71,8 @@ The Krea 2: Style Reference workflow adds style transfer on top of text-to-image -## About Krea 2 Models - -The Krea 2 Image node offers two model variants: - -### Krea 2 Medium - -The smaller, faster, more cost-efficient option. Heavier post-training makes generations more stable and consistent run-to-run. Particularly strong on illustration, anime, painting, and other expressive styles. - -### Krea 2 Large - -More than twice the size of Medium, with lighter post-training. Outputs feel rawer, more textured, and more flexible. Handles expressive work well and is the stronger pick for photorealism and "raw" looks. - -## About Krea 2 Features - -### Style Transfer - -Pass a reference image into the **Krea 2 Style Reference** node's `image` input, and the model extracts and applies the style to your generation. You can chain up to 10 style references together for multi-style fusion. - -### Creativity - -The `creativity` parameter has four levels: **Raw**, **Low**, **Medium**, **High**. Higher settings add more aesthetic depth and visual richness. Lower settings produce tighter prompt adherence. This is the main lever for balancing creative interpretation versus literal reproduction. - -### Moodboard - -Optionally connect a Krea moodboard UUID (from the Krea website) to influence the overall aesthetic direction. You can also control the moodboard's influence strength. - -## Related Node Documentation - - -Detailed parameter reference for the Krea 2 Image node - +## Additional notes - -Detailed parameter reference for the Krea 2 Style Reference node - +- **Creativity levels**: Raw → Low → Medium → High. Higher adds aesthetic depth, lower gives tighter prompt adherence +- **Style reference strength**: Range -2.0 to 2.0. Negative values invert the style influence +- **Moodboard**: Optional UUID from the Krea website, with adjustable influence strength diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx index fd3eb10c0..d5fe72131 100644 --- a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,81 +5,21 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -Krea 2 Image 节点通过 **Krea 2** 生成图像——Krea 首款专为创意控制设计的基础图像模型。提供两种模型变体:**Krea 2 Medium** 和 **Krea 2 Large**,各针对不同使用场景。节点支持可选的 moodboard、最多 10 个链式图像风格参考,以及控制模型如何诠释你的提示词。 - -## 模型概览 - -### Krea 2 Medium - -更小、更快、更经济的选择。更强的后训练(post-training)使生成结果在运行时更加稳定和一致。在插画、动漫、绘画等表现力风格上尤其出色。 - -- 推理更快,单次生成成本更低 -- 相同种子下输出更一致 -- 最适合作:插画、动漫、绘画、角色设计、概念艺术、风格化图形 - -### Krea 2 Large - -Medium 的两倍以上规模,后训练较轻。输出更生猛、纹理更丰富、更灵活。同样擅长表现力风格,但更偏向写实和"原汁原味"风格。 - -- 更高的保真度和纹理细节 -- 相同种子下输出更富变化 -- 最适合作:照片级写实、产品拍摄、风景、人像、建筑可视化 - -### 创造力控制 - -`creativity` 参数控制模型如何诠释你的提示词,共有 4 个级别: - -| 级别 | 描述 | -| ------ | ------------------------------ | -| Raw | 最贴近提示词,最少诠释 | -| Low | 轻微的创意诠释 | -| Medium | 创造力和提示词遵循度的平衡(默认)| -| High | 最大美学深度和视觉丰富度 | - -需要模型添加艺术感时设高,需要严格遵循提示词时设低。 - -### 风格迁移 - -风格迁移是 Krea 2 的核心能力,并非独立的后期处理流程。通过 **Krea 2 Style Reference** 节点传入参考图像,模型提取其美学风格应用于生成。最多可链式连接 10 个风格参考,实现多风格融合。 - -### 情绪板调节 - -可选择连接 Krea 情绪板 UUID(从 Krea 网站获取)来影响整体美学方向。`moodboard_strength` 参数(-0.5 至 1.5)控制情绪板的影响力度。 - -## 定价 - -| 配置 | Medium | Large | -| ------------------------- | ------ | ----- | -| 文本生成图像(无额外) | $0.03 | $0.06 | -| + 风格参考 | $0.035 | $0.065| -| + 情绪板 | $0.04 | $0.07 | - -## 参数 - -### 基本参数 - -| 参数 | 类型 | 默认值 | 描述 | -| ------- | ------ | --------- | ------------------- | -| prompt | string | "" | 图像生成的文本提示词 | -| seed | int | 0 | 随机种子 | - -### 模型参数(动态) - -`model` 参数是一个动态组合,会根据所选模型变体变化: - -| 参数 | 类型 | 默认值 | 描述 | -| ------------------- | -------- | ------ | ------------------------------- | -| model | select | Medium | Krea 2 Medium 或 Large | -| aspect_ratio | select | 1:1 | 输出宽高比 | -| resolution | select | 1K | 分辨率 | -| creativity | select | medium | 提示词诠释强度 | -| moodboard_id | string | "" | 可选的 Krea 情绪板 UUID | -| moodboard_strength | float | 0.35 | 情绪板影响度(-0.5 至 1.5) | -| style_reference | chain | — | 可选的风格参考链 | - -### 宽高比选项 - -`1:1`、`4:3`、`3:2`、`16:9`、`2.35:1`、`4:5`、`2:3`、`9:16` +Krea 2 Image 节点通过 Krea 2(Krea 首款基础图像模型)生成图像。提供两种模型变体——Krea 2 Medium(表现力插画)和 Krea 2 Large(表现力写实)——支持可调创造力、可选的 moodboard 调节,以及最多 10 个链式图像风格参考。 + +## 输入 + +| 输入 | 类型 | 描述 | +| ----------------- | -------- | ------------------------------- | +| prompt | string | 图像生成的文本提示词 | +| model | select | Krea 2 Medium 或 Large | +| aspect_ratio | select | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | +| resolution | select | 1K | +| creativity | select | Raw, Low, Medium, High | +| moodboard_id | string | 可选的 Krea 情绪板 UUID | +| moodboard_strength | float | -0.5 至 1.5 | +| style_reference | chain | 可选的风格参考链(最多 10 个) | +| seed | int | 随机种子(0 至 2147483647) | ## 输出 @@ -90,18 +30,3 @@ Medium 的两倍以上规模,后训练较轻。输出更生猛、纹理更丰 ## 源代码 [在 GitHub 上查看源代码](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) - -```python -class Krea2ImageNode: - """ - Generate images via Krea 2 — pick Medium (expressive illustrations) or - Large (expressive photorealism). Supports an optional moodboard and up - to 10 chained image style references. - """ - - RETURN_TYPES = (IO.IMAGE,) - DESCRIPTION = cleandoc(__doc__ or "") - FUNCTION = "execute" - API_NODE = True - CATEGORY = "image/partner/Krea" -``` diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index c5f456777..ba83c9e68 100644 --- a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,25 +5,15 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。风格迁移是 Krea 2 模型的核心能力,而非独立的后期处理流程。传入参考图像后,模型会提取其美学本质(色彩搭配、光影、质感、构图),在生成过程中自然应用。 +Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。风格迁移内置在 Krea 2 模型中——传入参考图像后,模型会提取其美学本质(色彩搭配、光影、质感、构图),在生成过程中自然应用。可链式连接最多 10 个风格参考,实现多风格融合。 -可链式连接多个 Krea 2 Style Reference 节点(最多 10 个),将最终的 `style_reference` 输出传入 Krea 2 Image 节点,实现多风格融合。每张图像会传到 ComfyAPI 存储,以 URL 形式传递。 +## 输入 -## 参数 - -| 参数 | 类型 | 默认值 | 描述 | -| --------------- | ------ | ------ | ----------------------------------- | -| image | image | — | 影响生成效果的风格参考图像 | -| strength | float | 1.0 | 参考强度(-2.0 至 2.0) | -| style_reference | chain | — | 可选的传入风格参考链 | - -### 强度说明 - -`strength` 参数控制参考图像风格对输出的影响程度: - -- **正值(0.0 至 2.0):** 以递增强度应用参考风格 -- **负值(-2.0 至 0.0):** 反转风格影响 -- **0.0:** 无风格影响 +| 输入 | 类型 | 描述 | +| --------------- | ------ | ----------------------------------- | +| image | image | 影响生成效果的风格参考图像 | +| strength | float | -2.0 至 2.0(默认 1.0) | +| style_reference | chain | 可选的传入风格参考链 | ## 输出 @@ -34,18 +24,3 @@ Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。风格 ## 源代码 [在 GitHub 上查看源代码](https://github.com/Comfy-Org/ComfyUI/blob/main/comfy_api_nodes/nodes_krea.py) - -```python -class Krea2StyleReferenceNode: - """ - Add 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. - """ - - RETURN_TYPES = (IO.Custom(KreaIO.STYLE_REF),) - DESCRIPTION = cleandoc(__doc__ or "") - FUNCTION = "execute" - API_NODE = True - CATEGORY = "image/partner/Krea" -``` diff --git a/zh/tutorials/partner-nodes/krea/krea2-image.mdx b/zh/tutorials/partner-nodes/krea/krea2-image.mdx index 2547044b2..2551ed6a9 100644 --- a/zh/tutorials/partner-nodes/krea/krea2-image.mdx +++ b/zh/tutorials/partner-nodes/krea/krea2-image.mdx @@ -1,111 +1,78 @@ --- -title: "Krea 2 Image API 节点 ComfyUI 官方示例教程" -description: "学习如何在 ComfyUI 中使用 Krea 2 Image 和 Krea 2 Style Reference 合作伙伴节点" +title: "Krea 2 Image API Node ComfyUI 官方示例" +description: "了解如何在 ComfyUI 中使用 Krea 2 Image 和 Krea 2 Style Reference 合作伙伴节点" sidebarTitle: "Krea 2 Image" --- import ReqHint from "/snippets/zh/tutorials/partner-nodes/req-hint.mdx"; import UpdateReminder from "/snippets/zh/tutorials/update-reminder.mdx"; -[Krea 2 Image](/zh/built-in-nodes/partner-node/image/krea/krea2-image) 和 [Krea 2 Style Reference](/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference) 节点将 Krea 首个基础图像模型引入 ComfyUI,作为合作伙伴节点使用。Krea 2 专为创意控制而设计——支持可调创造力、风格参考、情绪板调节,以及涵盖插画、写实等多种风格的两种模型变体。 - -在本指南中,我们将介绍可用的 Krea 2 工作流及使用方法。 +Krea 2 是 Krea 首款基础图像模型,专为创意控制而设计。它引入了可调创造力系统、风格参考调节、moodboard 支持,以及两种不同模型变体,覆盖从插画到照片级写实的广阔范围。 -## 可用工作流 +## Krea 2 的新特性 -Krea 2 目前在模板库中提供两个工作流: +- **两种模型变体** — Krea 2 Medium(稳定、表现力插画)和 Krea 2 Large(生猛、纹理丰富的写实)。在速度、成本和输出风格之间灵活选择 +- **可调创造力** — 从 Raw(严格遵循提示词)到 High(最大美学深度)。完全控制模型对提示词的诠释程度 +- **内置风格迁移** — 风格参考不是后期处理滤镜,而是内建于模型的生成方式。最多传入 10 个参考图像,链式实现多风格融合 +- **Moodboard 调节** — 连接 Krea moodboard UUID 引导整体美学方向,支持精细的影响力控制 +- **稳定的运行一致性** — 特别是 Medium 变体,在相同种子下输出稳定可重复,适合迭代创作 -- **Krea2: Text to Image(文本生成图像)** — 通过文本提示词生成图像,支持完整的参数控制 -- **Krea 2: Style Reference(风格参考)** — 上传参考图像,生成应用其美学风格的图像 +## Krea 2 Text to Image 工作流 - - 在 Comfy Cloud 中打开 + + 在 Comfy Cloud 打开 下载 JSON 或在模板库中搜索 "Krea2: Text to Image" +### 运行步骤 + +1. 在 **Krea 2 Image** 节点中输入文本提示词 +2. 选择 **Krea 2 Medium** 或 **Krea 2 Large** +3. 调整可选参数,如宽高比、创造力和种子 +4. 点击 **Queue Prompt**(或 `Ctrl+Enter` / `Cmd+Enter`)生成 +5. 生成的图像出现在输出预览中,并保存到 `ComfyUI/output/` + +![Krea 2 文本生成图像工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) + +## Krea 2 Style Reference 工作流 + - - 在 Comfy Cloud 中打开 + + 在 Comfy Cloud 打开 下载 JSON 或在模板库中搜索 "Krea 2: Style Reference" -## 如何使用 Krea2: Text to Image 工作流 - -Krea2: Text to Image 工作流的操作非常简单: +### 运行步骤 -1. 从模板库打开工作流,或下载 JSON 文件 -2. 在 **Krea 2 Image** 节点中输入文本提示词 -3. 选择 **Krea 2 Medium(中等)**(表现力插画)或 **Krea 2 Large(大)**(表现力写实) -4. 调整可选参数,如宽高比、创造力和随机种子 -5. 点击 **Queue Prompt**(或 `Ctrl+Enter` / `Cmd+Enter`)生成图像 -6. 生成的图像会在输出预览中显示,并保存到 `ComfyUI/output/` 目录 - -![Krea 2 文本生成图像工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) - -## 如何使用 Krea 2: Style Reference 工作流 - -Krea 2: Style Reference 工作流在文本生成图像的基础上增加了风格迁移功能: - -1. 从模板库打开工作流,或下载 JSON 文件 -2. 工作流中包含两个 **Load Image** 节点,预加载了示例风格参考图像(你也可以加载自己的图像) -3. 每张图像连接到单独的 **Krea 2 Style Reference** 节点,你可以调整其 **strength(强度)** 参数 -4. 风格参考链式传入 **Krea 2 Image** 节点 -5. 在 **Krea 2 Image** 节点中输入文本提示词并配置其他生成参数 -6. 点击 **Queue Prompt** 生成图像 +1. 工作流包含两个 **Load Image** 节点,预加载了示例风格参考图像(也可加载自己的图片) +2. 每张图像接入一个 **Krea 2 Style Reference** 节点——可调节每个参考的 **strength** 参数 +3. 风格参考链式传入 **Krea 2 Image** 节点——最多可链式连接 10 个 +4. 输入文本提示词并配置其他生成参数 +5. 点击 **Queue Prompt** 生成 ![Krea 2 风格参考工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) - 获取风格参考示例图片 + 获取风格参考示例图像 - 获取风格参考示例图片 + 获取风格参考示例图像 -## 关于 Krea 2 模型 - -Krea 2 Image 节点提供两种模型变体: - -### Krea 2 Medium(中等) - -更小、更快、成本效益更高的选项。更重的后期训练使得每次生成的图像更稳定、一致。特别擅长插画、动漫、绘画等表现力丰富的风格。 - -### Krea 2 Large(大) - -尺寸是 Medium 的两倍以上,后期训练较轻。输出感觉更原始、更有质感、更灵活。擅长表现力风格,也是写实主义和"原始"风格的更优选择。 - -## 关于 Krea 2 特性 - -### 风格迁移 - -将参考图像传入 **Krea 2 Style Reference** 节点的 `image` 输入,模型会提取并应用其风格到生成结果。你可以串联最多 10 个风格参考节点实现多风格融合。 - -### 创造力 - -`creativity(创造力)` 参数有四个级别:**Raw(原始)**、**Low(低)**、**Medium(中)**、**High(高)**。更高的设置会增加美学深度和视觉丰富度。较低的设置则更贴近提示词。这是平衡创意诠释与忠实再现之间的主要杠杆。 - -### 情绪板 - -可选地连接 Krea 情绪板 UUID(从 Krea 网站获取)来影响整体美学方向。你还可以控制情绪板的影响强度。 - -## 相关节点文档 - - -Krea 2 Image 节点详细参数参考 - +## 补充说明 - -Krea 2 Style Reference 节点详细参数参考 - +- **创造力级别**:Raw → Low → Medium → High。越高美学深度越强,越低提示词遵循度越高 +- **风格参考强度**:范围 -2.0 到 2.0。负值反转风格影响 +- **Moodboard**:可选的 Krea 网站 UUID,附带可调影响力强度 From 7471e8ac6a2c2cc9ec40d30f46f95adb01b352fc Mon Sep 17 00:00:00 2001 From: lin-bot23 Date: Thu, 28 May 2026 14:47:22 +0800 Subject: [PATCH 4/4] docs: align Krea 2 docs with existing partner node format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Tutorial now follows standard format: intro + node doc cards + workflow cards + steps + additional notes - Built-in node docs now follow Recraft format: node screenshot + brief intro + parameters table + output + source code link - Removed model overview section (not in other tutorials) - Removed pricing/源码段 (not in other docs) - Synced EN/ZH/JA --- .../partner-node/image/krea/krea2-image.mdx | 36 ++++++++++--------- .../image/krea/krea2-style-reference.mdx | 18 +++++----- .../partner-node/image/krea/krea2-image.mdx | 32 +++++++++-------- .../image/krea/krea2-style-reference.mdx | 16 +++++---- .../partner-nodes/krea/krea2-image.mdx | 30 +++++++++------- tutorials/partner-nodes/krea/krea2-image.mdx | 36 +++++++++++-------- .../partner-node/image/krea/krea2-image.mdx | 32 +++++++++-------- .../image/krea/krea2-style-reference.mdx | 16 +++++---- .../partner-nodes/krea/krea2-image.mdx | 30 +++++++++------- 9 files changed, 138 insertions(+), 108 deletions(-) diff --git a/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/built-in-nodes/partner-node/image/krea/krea2-image.mdx index 0bc1f9050..88a45fbec 100644 --- a/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,23 +5,25 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -The Krea 2 Image node generates images via Krea 2, Krea's first foundation image model. It offers two model variants — Krea 2 Medium (expressive illustrations) and Krea 2 Large (expressive photorealism) — with tunable creativity, optional moodboard conditioning, and support for up to 10 chained image style references. - -## Inputs - -| Input | Type | Description | -| ---------------- | ----- | ------------------------------------------------------ | -| prompt | string | Text prompt for the image generation | -| model | select | Krea 2 Medium or Krea 2 Large (determines available parameters) | -| aspect_ratio | select | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | -| resolution | select | 1K | -| creativity | select | Raw, Low, Medium, High | -| moodboard_id | string | Optional Krea moodboard UUID | -| moodboard_strength | float | -0.5 to 1.5 | -| style_reference | chain | Optional chain of style references (max 10) | -| seed | int | Random seed (0 to 2147483647) | - -## Outputs +![ComfyUI Built-in Krea 2 Image Node](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) + +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. + +## Parameters + +| Parameter | Type | Default | Description | +| ------------------- | -------- | -------- | ----------------------------------------------------- | +| prompt | string | "" | Text prompt for the image generation | +| model | select | Medium | Krea 2 Medium or Krea 2 Large | +| aspect_ratio | select | 1:1 | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | +| resolution | select | 1K | Resolution scale | +| creativity | select | medium | Raw, Low, Medium, High | +| moodboard_id | string | "" | Optional Krea moodboard UUID | +| moodboard_strength | float | 0.35 | -0.5 to 1.5 | +| style_reference | chain | — | Optional chain of style references (max 10) | +| seed | int | 0 | Random seed (0 to 2147483647) | + +## Output | Output | Type | Description | | ------ | ----- | ------------------- | diff --git a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index 29b2864fe..7f3820431 100644 --- a/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,17 +5,19 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -The Krea 2 Style Reference node adds an image style reference to a Krea 2 generation. Style transfer is built into the Krea 2 model — when you pass a reference image, the model extracts its aesthetic essence (color palette, lighting, texture, composition) and applies it during generation. You can chain up to 10 style references for multi-style fusion. +![ComfyUI Built-in Krea 2 Style Reference Node](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) -## Inputs +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. -| Input | Type | Description | -| ---------------- | ------- | ------------------------------------------------ | -| image | image | Reference image whose style influences the generation | -| strength | float | -2.0 to 2.0 (default: 1.0) | -| style_reference | chain | Optional incoming chain of style references | +## Parameters -## Outputs +| Parameter | Type | Default | Description | +| --------------- | ------ | ------- | ---------------------------------------------- | +| image | image | — | Reference image whose style influences the generation | +| strength | float | 1.0 | Reference strength (-2.0 to 2.0) | +| style_reference | chain | — | Optional incoming chain of style references | + +## Output | Output | Type | Description | | --------------- | ----- | ---------------------------------------- | diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx index f9d0127b2..b253bf233 100644 --- a/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,21 +5,23 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -Krea 2 Image ノードは Krea 2(Krea 初のファウンデーション画像モデル)を介して画像を生成します。Krea 2 Medium(表現力豊かなイラスト)と Krea 2 Large(表現力豊かなフォトリアリズム)の 2 つのモデルバリアントを提供し、調整可能なクリエイティビティ、オプションのムードボード、最大 10 個のチェーン式スタイルリファレンスをサポートします。 - -## 入力 - -| 入力 | 型 | 説明 | -| ----------------- | ------- | ------------------------------------- | -| prompt | string | 画像生成のテキストプロンプト | -| model | select | Krea 2 Medium または Large | -| aspect_ratio | select | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | -| resolution | select | 1K | -| creativity | select | Raw, Low, Medium, High | -| moodboard_id | string | オプションの Krea ムードボード UUID | -| moodboard_strength | float | -0.5 〜 1.5 | -| style_reference | chain | オプションのスタイルリファレンスチェーン(最大 10 個) | -| seed | int | ランダムシード(0 〜 2147483647) | +![ComfyUI ビルトイン Krea 2 Image ノード](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) + +Krea 2 Image ノードは Krea 2 を介して画像を生成します。Medium(表現力豊かなイラスト)または Large(表現力豊かなフォトリアリズム)を選択可能。オプションのムードボードと最大 10 個のチェーン式画像スタイルリファレンスをサポートします。 + +## パラメータ + +| パラメータ | 型 | デフォルト | 説明 | +| -------------------- | ------- | ---------- | ------------------------------------- | +| prompt | string | "" | 画像生成のテキストプロンプト | +| model | select | Medium | Krea 2 Medium または Large | +| aspect_ratio | select | 1:1 | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | +| resolution | select | 1K | 解像度 | +| creativity | select | medium | Raw, Low, Medium, High | +| moodboard_id | string | "" | オプションの Krea ムードボード UUID | +| moodboard_strength | float | 0.35 | -0.5 〜 1.5 | +| style_reference | chain | — | オプションのスタイルリファレンスチェーン(最大 10 個) | +| seed | int | 0 | ランダムシード(0 〜 2147483647) | ## 出力 diff --git a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index 142b254b7..06daeb4aa 100644 --- a/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,15 +5,17 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。スタイル転送は Krea 2 モデルに組み込まれており、参照画像を渡すとモデルがその美的エッセンス(カラーパレット、照明、テクスチャ、構図)を抽出し、生成時に適用します。最大 10 個のスタイルリファレンスをチェーンして多スタイル融合が可能です。 +![ComfyUI ビルトイン Krea 2 Style Reference ノード](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) -## 入力 +Krea 2 Style Reference ノードは、Krea 2 生成に画像スタイルリファレンスを追加します。複数の Krea 2 Style Reference ノードをチェーン接続し(最大 10 個)、最終的な `style_reference` 出力を Krea 2 Image ノードに渡します。各画像は ComfyAPI ストレージにアップロードされ、URL として渡されます。 -| 入力 | 型 | 説明 | -| --------------- | ------ | ---------------------------------------- | -| image | image | 生成にスタイル影響を与える参照画像 | -| strength | float | -2.0 〜 2.0(デフォルト 1.0) | -| style_reference | chain | オプションの入力スタイルリファレンスチェーン | +## パラメータ + +| パラメータ | 型 | デフォルト | 説明 | +| --------------- | ------ | ---------- | ---------------------------------------- | +| image | image | — | 生成にスタイル影響を与える参照画像 | +| strength | float | 1.0 | 参照強度(-2.0 〜 2.0) | +| style_reference | chain | — | オプションの入力スタイルリファレンスチェーン | ## 出力 diff --git a/ja/tutorials/partner-nodes/krea/krea2-image.mdx b/ja/tutorials/partner-nodes/krea/krea2-image.mdx index f42b88bce..dc33d3af5 100644 --- a/ja/tutorials/partner-nodes/krea/krea2-image.mdx +++ b/ja/tutorials/partner-nodes/krea/krea2-image.mdx @@ -7,20 +7,26 @@ sidebarTitle: "Krea 2 Image" import ReqHint from "/snippets/ja/tutorials/partner-nodes/req-hint.mdx"; import UpdateReminder from "/snippets/ja/tutorials/update-reminder.mdx"; -Krea 2 は Krea 初のファウンデーション画像モデルで、クリエイティブコントロールを重視して設計されています。調整可能なクリエイティビティシステム、スタイルリファレンスコンディショニング、ムードボードサポート、そしてイラストからフォトリアリズムまでをカバーする 2 つの異なるモデルバリアントを備えています。 +[Krea 2 Image](/ja/built-in-nodes/partner-node/image/krea/krea2-image) および [Krea 2 Style Reference](/ja/built-in-nodes/partner-node/image/krea/krea2-style-reference) ノードは、Krea の初のファウンデーション画像モデルを ComfyUI にパートナーノードとして提供します。Krea 2 はクリエイティブコントロールを重視して設計されており、調整可能なクリエイティビティ、スタイルリファレンス、ムードボードコンディショニング、そしてイラストからフォトリアリズムまでをカバーする 2 つのモデルバリアントを備えています。 + +このガイドでは、利用可能な Krea 2 ワークフローの使用方法を説明します。 -## Krea 2 の新機能 +## Krea 2 Image ノードドキュメント + +以下のドキュメントで各ノードの詳細なパラメータ設定をご確認ください: + + +Krea 2 Image Partner ノードドキュメント + -- **2 つのモデルバリアント** — Krea 2 Medium(安定した表現力豊かなイラスト)と Krea 2 Large(生々しくテクスチャのあるフォトリアリズム)。速度、コスト、出力のキャラクターをトレードオフできます -- **調整可能なクリエイティビティ** — Raw(厳密なプロンプト順守)から High(最大の美的深度)まで。モデルがプロンプトをどの程度文字通りに解釈するかを完全に制御できます -- **組み込みのスタイル転送** — スタイルリファレンスは後処理フィルターではなく、モデルの生成方法に組み込まれています。最大 10 個の参照画像をチェーンして多スタイル融合が可能 -- **ムードボードコンディショニング** — Krea ムードボード UUID を接続して全体的な美的方向性を制御し、影響度を細かく調整可能 -- **実行間の一貫性** — 特に Medium バリアントは同じシードで安定した再現可能な結果を提供し、反復作業に信頼性をもたらします + +Krea 2 Style Reference Partner ノードドキュメント + -## Krea 2 Text to Image ワークフロー +## Krea2: Text to Image ワークフロー @@ -41,7 +47,7 @@ Krea 2 は Krea 初のファウンデーション画像モデルで、クリエ ![Krea 2 テキストから画像ワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) -## Krea 2 Style Reference ワークフロー +## Krea 2: Style Reference ワークフロー @@ -56,8 +62,8 @@ Krea 2 は Krea 初のファウンデーション画像モデルで、クリエ 1. ワークフローには 2 つの **Load Image** ノードが含まれており、サンプルのスタイル参照画像がプリロードされています(独自の画像も使用可能) 2. 各画像は個別の **Krea 2 Style Reference** ノードに接続 — 参照ごとに **strength** パラメータを調整 -3. スタイル参照は **Krea 2 Image** ノードにチェーンで渡されます — 最大 10 個までチェーン可能 -4. **Krea 2 Image** ノードでテキストプロンプトを入力し、他の生成パラメータを設定 +3. スタイル参照は **Krea 2 Image** ノードにチェーンで渡されます(最大 10 個までチェーン可能) +4. **Krea 2 Image** ノードでテキストプロンプトを入力し、他のパラメータを設定 5. **Queue Prompt** をクリックして生成 ![Krea 2 スタイルリファレンスワークフロー](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) @@ -71,7 +77,7 @@ Krea 2 は Krea 初のファウンデーション画像モデルで、クリエ -## 補足説明 +### 補足説明 - **クリエイティビティレベル**:Raw → Low → Medium → High。高いほど美的深度が増し、低いほどプロンプトへの忠実度が高まります - **スタイルリファレンス強度**:範囲 -2.0 から 2.0。負の値はスタイルの影響を反転します diff --git a/tutorials/partner-nodes/krea/krea2-image.mdx b/tutorials/partner-nodes/krea/krea2-image.mdx index c7b95c3c3..bcfd4fa1d 100644 --- a/tutorials/partner-nodes/krea/krea2-image.mdx +++ b/tutorials/partner-nodes/krea/krea2-image.mdx @@ -7,20 +7,26 @@ sidebarTitle: "Krea 2 Image" import ReqHint from "/snippets/tutorials/partner-nodes/req-hint.mdx"; import UpdateReminder from "/snippets/tutorials/update-reminder.mdx"; -Krea 2 is Krea's first foundation image model, designed for creative control. It introduces a tunable creativity system, style reference conditioning, moodboard support, and two distinct model variants that cover illustration through photorealism and everything in between. +The [Krea 2 Image](/built-in-nodes/partner-node/image/krea/krea2-image) and [Krea 2 Style Reference](/built-in-nodes/partner-node/image/krea/krea2-style-reference) nodes bring Krea's first foundation image model into ComfyUI as Partner Nodes. Krea 2 is designed for creative control — with tunable creativity, style references, moodboard conditioning, and two model variants that cover illustration, photorealism, and everything in between. + +In this guide, we'll show you how to use the available Krea 2 workflows. -## What's new in Krea 2 +## Krea 2 Image Node Documentation + +Check the following documentation for detailed parameter settings of the nodes: + + +Documentation for the Krea 2 Image Partner node + -- **Two model variants** — Krea 2 Medium (stable, expressive illustrations) and Krea 2 Large (raw, textured photorealism). Trade off speed, cost, and output character -- **Tunable creativity** — Adjustable from Raw (tight prompt adherence) to High (maximum aesthetic depth). Full creative control over how literally the model interprets your prompt -- **Style transfer baked in** — Style reference is not a post-processing filter; it's built into how the model generates. Pass up to 10 reference images and chain them together for multi-style fusion -- **Moodboard conditioning** — Connect a Krea moodboard UUID to steer the overall aesthetic direction, with fine-grained influence control -- **Consistent run-to-run** — Medium variant in particular delivers stable, repeatable results at the same seed, making it reliable for iterative work + +Documentation for the Krea 2 Style Reference Partner node + -## Krea 2 Text to Image workflow +## Krea2: Text to Image Workflow @@ -31,7 +37,7 @@ Krea 2 is Krea's first foundation image model, designed for creative control. It -### Steps to run the workflow +### Steps to Run the Workflow 1. Enter your text prompt in the **Krea 2 Image** node 2. Choose between **Krea 2 Medium** and **Krea 2 Large** @@ -41,7 +47,7 @@ Krea 2 is Krea's first foundation image model, designed for creative control. It ![Krea 2 Text to Image Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) -## Krea 2 Style Reference workflow +## Krea 2: Style Reference Workflow @@ -52,12 +58,12 @@ Krea 2 is Krea's first foundation image model, designed for creative control. It -### Steps to run the workflow +### Steps to Run the Workflow -1. The workflow includes two **Load Image** nodes with sample style reference images pre-loaded (or load your own) +1. The workflow includes two **Load Image** nodes pre-loaded with sample style reference images (or load your own) 2. Each image feeds into a **Krea 2 Style Reference** node — adjust the **strength** parameter per reference -3. The style references chain into the **Krea 2 Image** node — you can chain up to 10 -4. Enter your text prompt and configure other generation parameters +3. The style references chain into the **Krea 2 Image** node (up to 10 can be chained) +4. Enter your text prompt and configure other parameters 5. Click **Queue Prompt** to generate ![Krea 2 Style Reference Workflow](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) @@ -71,7 +77,7 @@ Krea 2 is Krea's first foundation image model, designed for creative control. It -## Additional notes +### Additional Notes - **Creativity levels**: Raw → Low → Medium → High. Higher adds aesthetic depth, lower gives tighter prompt adherence - **Style reference strength**: Range -2.0 to 2.0. Negative values invert the style influence diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx index d5fe72131..76cb32c6a 100644 --- a/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-image.mdx @@ -5,21 +5,23 @@ sidebarTitle: "Krea 2 Image" icon: "circle" --- -Krea 2 Image 节点通过 Krea 2(Krea 首款基础图像模型)生成图像。提供两种模型变体——Krea 2 Medium(表现力插画)和 Krea 2 Large(表现力写实)——支持可调创造力、可选的 moodboard 调节,以及最多 10 个链式图像风格参考。 - -## 输入 - -| 输入 | 类型 | 描述 | -| ----------------- | -------- | ------------------------------- | -| prompt | string | 图像生成的文本提示词 | -| model | select | Krea 2 Medium 或 Large | -| aspect_ratio | select | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | -| resolution | select | 1K | -| creativity | select | Raw, Low, Medium, High | -| moodboard_id | string | 可选的 Krea 情绪板 UUID | -| moodboard_strength | float | -0.5 至 1.5 | -| style_reference | chain | 可选的风格参考链(最多 10 个) | -| seed | int | 随机种子(0 至 2147483647) | +![ComfyUI 内置 Krea 2 Image 节点](/images/built-in-nodes/api_nodes/krea/krea2-image.jpg) + +Krea 2 Image 节点通过 Krea 2 生成图像——选择 Medium(表现力插画)或 Large(表现力写实)。支持可选的 moodboard 和最多 10 个链式图像风格参考。 + +## 参数 + +| 参数 | 类型 | 默认值 | 描述 | +| ------------------- | -------- | ------ | ------------------------------- | +| prompt | string | "" | 图像生成的文本提示词 | +| model | select | Medium | Krea 2 Medium 或 Large | +| aspect_ratio | select | 1:1 | 1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16 | +| resolution | select | 1K | 分辨率 | +| creativity | select | medium | Raw, Low, Medium, High | +| moodboard_id | string | "" | 可选的 Krea 情绪板 UUID | +| moodboard_strength | float | 0.35 | -0.5 至 1.5 | +| style_reference | chain | — | 可选的风格参考链(最多 10 个) | +| seed | int | 0 | 随机种子(0 至 2147483647) | ## 输出 diff --git a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx index ba83c9e68..d38d478f2 100644 --- a/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx +++ b/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference.mdx @@ -5,15 +5,17 @@ sidebarTitle: "Krea 2 Style Reference" icon: "circle" --- -Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。风格迁移内置在 Krea 2 模型中——传入参考图像后,模型会提取其美学本质(色彩搭配、光影、质感、构图),在生成过程中自然应用。可链式连接最多 10 个风格参考,实现多风格融合。 +![ComfyUI 内置 Krea 2 Style Reference 节点](/images/built-in-nodes/api_nodes/krea/krea2-style-reference.jpg) -## 输入 +Krea 2 Style Reference 节点为 Krea 2 生成添加图像风格参考。链式连接多个 Krea 2 Style Reference 节点(最多 10 个),将最终的 `style_reference` 输出传入 Krea 2 Image 节点。每张图像会传到 ComfyAPI 存储,以 URL 形式传递。 -| 输入 | 类型 | 描述 | -| --------------- | ------ | ----------------------------------- | -| image | image | 影响生成效果的风格参考图像 | -| strength | float | -2.0 至 2.0(默认 1.0) | -| style_reference | chain | 可选的传入风格参考链 | +## 参数 + +| 参数 | 类型 | 默认值 | 描述 | +| --------------- | ------ | ------ | ----------------------------------- | +| image | image | — | 影响生成效果的风格参考图像 | +| strength | float | 1.0 | 参考强度(-2.0 至 2.0) | +| style_reference | chain | — | 可选的传入风格参考链 | ## 输出 diff --git a/zh/tutorials/partner-nodes/krea/krea2-image.mdx b/zh/tutorials/partner-nodes/krea/krea2-image.mdx index 2551ed6a9..cc161fa19 100644 --- a/zh/tutorials/partner-nodes/krea/krea2-image.mdx +++ b/zh/tutorials/partner-nodes/krea/krea2-image.mdx @@ -7,20 +7,26 @@ sidebarTitle: "Krea 2 Image" import ReqHint from "/snippets/zh/tutorials/partner-nodes/req-hint.mdx"; import UpdateReminder from "/snippets/zh/tutorials/update-reminder.mdx"; -Krea 2 是 Krea 首款基础图像模型,专为创意控制而设计。它引入了可调创造力系统、风格参考调节、moodboard 支持,以及两种不同模型变体,覆盖从插画到照片级写实的广阔范围。 +[Krea 2 Image](/zh/built-in-nodes/partner-node/image/krea/krea2-image) 和 [Krea 2 Style Reference](/zh/built-in-nodes/partner-node/image/krea/krea2-style-reference) 节点将 Krea 首款基础图像模型引入 ComfyUI 作为合作伙伴节点。Krea 2 专为创意控制而设计,支持可调创造力、风格参考、moodboard 调节,以及从插画到写实全覆盖的两种模型变体。 + +在本指南中,我们将演示如何使用这两个 Krea 2 工作流。 -## Krea 2 的新特性 +## Krea 2 Image 节点文档 + +查看以下文档了解节点的详细参数设置: + + +Krea 2 Image Partner 节点文档 + -- **两种模型变体** — Krea 2 Medium(稳定、表现力插画)和 Krea 2 Large(生猛、纹理丰富的写实)。在速度、成本和输出风格之间灵活选择 -- **可调创造力** — 从 Raw(严格遵循提示词)到 High(最大美学深度)。完全控制模型对提示词的诠释程度 -- **内置风格迁移** — 风格参考不是后期处理滤镜,而是内建于模型的生成方式。最多传入 10 个参考图像,链式实现多风格融合 -- **Moodboard 调节** — 连接 Krea moodboard UUID 引导整体美学方向,支持精细的影响力控制 -- **稳定的运行一致性** — 特别是 Medium 变体,在相同种子下输出稳定可重复,适合迭代创作 + +Krea 2 Style Reference Partner 节点文档 + -## Krea 2 Text to Image 工作流 +## Krea2: Text to Image 工作流 @@ -41,7 +47,7 @@ Krea 2 是 Krea 首款基础图像模型,专为创意控制而设计。它引 ![Krea 2 文本生成图像工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_t2i.png) -## Krea 2 Style Reference 工作流 +## Krea 2: Style Reference 工作流 @@ -56,8 +62,8 @@ Krea 2 是 Krea 首款基础图像模型,专为创意控制而设计。它引 1. 工作流包含两个 **Load Image** 节点,预加载了示例风格参考图像(也可加载自己的图片) 2. 每张图像接入一个 **Krea 2 Style Reference** 节点——可调节每个参考的 **strength** 参数 -3. 风格参考链式传入 **Krea 2 Image** 节点——最多可链式连接 10 个 -4. 输入文本提示词并配置其他生成参数 +3. 风格参考链式传入 **Krea 2 Image** 节点(最多可链式连接 10 个) +4. 输入文本提示词并配置其他参数 5. 点击 **Queue Prompt** 生成 ![Krea 2 风格参考工作流](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_krea2_style_reference.png) @@ -71,7 +77,7 @@ Krea 2 是 Krea 首款基础图像模型,专为创意控制而设计。它引 -## 补充说明 +### 补充说明 - **创造力级别**:Raw → Low → Medium → High。越高美学深度越强,越低提示词遵循度越高 - **风格参考强度**:范围 -2.0 到 2.0。负值反转风格影响