Recraft Style - Realistic Image 节点用于设置Recraft图像生成的真实照片风格,提供多种子风格选项,以控制生成图像的视觉特性。
节点功能
此节点创建一个风格配置对象,用于指导Recraft的图像生成过程朝向真实照片的视觉效果。
参数说明
基本参数
参数 | 类型 | 默认值 | 说明 |
---|
substyle | 选择项 | None | 真实照片风格的具体子风格(必选) |
输出 | 类型 | 说明 |
---|
recraft_style | Recraft Style | 风格配置对象,连接到Recraft生成节点 |
使用示例
Recraft Text to Image 工作流示例
Recraft Text to Image 工作流示例
源码参考
[节点源码 (更新于2025-05-03)]
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),)