ノードの機能
このノードは、Recraft の画像生成プロセスをリアルな写真表現へと導くためのスタイル設定オブジェクトを作成します。パラメータ
基本パラメータ
出力
使用例
Recraft Text to Image ワークフローの例
Recraft Text to Image ワークフローの例
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Recraft による画像生成向けに、リアルな写真スタイルを設定するための補助ノード
| パラメータ | 型 | デフォルト値 | 説明 |
|---|---|---|---|
| substyle | 選択肢 | None | リアルな写真スタイルの具体的なサブスタイル(必須) |
| 出力 | 型 | 説明 |
|---|---|---|
| recraft_style | Recraft Style | Recraft 生成ノードへ接続するスタイル設定オブジェクト |
class RecraftStyleV3RealisticImageNode:
"""
Select realistic_image style and optional substyle.
"""
RETURN_TYPES = (RecraftIO.STYLEV3,)
RETURN_NAMES = ("recraft_style",)
DESCRIPTION = cleandoc(__doc__ or "") # Handle potential None value
FUNCTION = "create_style"
CATEGORY = "api node/image/Recraft"
RECRAFT_STYLE = RecraftStyleV3.realistic_image
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"substyle": (get_v3_substyles(s.RECRAFT_STYLE),),
}
}
def create_style(self, substyle: str):
if substyle == "None":
substyle = None
return (RecraftStyle(self.RECRAFT_STYLE, substyle),)