> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MagnificImageStyleTransferNode - ComfyUI Built-in Node Documentation

> Complete documentation for the MagnificImageStyleTransferNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/MagnificImageStyleTransferNode/zh.md)

此节点将参考图像的视觉风格应用到您的输入图像上。它使用外部 AI 服务来处理图像，允许您控制风格迁移的强度以及原始图像结构的保留程度。

## 输入参数

| 参数                    | 数据类型    | 必填 | 范围                                                                                                                                               | 描述                                                    |
| --------------------- | ------- | -- | ------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- |
| `image`               | IMAGE   | 是  | -                                                                                                                                                | 要应用风格迁移的图像。                                           |
| `reference_image`     | IMAGE   | 是  | -                                                                                                                                                | 用于提取风格的参考图像。                                          |
| `prompt`              | STRING  | 否  | -                                                                                                                                                | 用于引导风格迁移的可选文本提示。                                      |
| `style_strength`      | INT     | 否  | 0 到 100                                                                                                                                          | 风格强度百分比（默认值：100）。                                     |
| `structure_strength`  | INT     | 否  | 0 到 100                                                                                                                                          | 保持原始图像的结构（默认值：50）。                                    |
| `flavor`              | COMBO   | 否  | "faithful"<br />"gen\_z"<br />"psychedelia"<br />"detaily"<br />"clear"<br />"donotstyle"<br />"donotstyle\_sharp"                               | 风格迁移类型。                                               |
| `engine`              | COMBO   | 否  | "balanced"<br />"definio"<br />"illusio"<br />"3d\_cartoon"<br />"colorful\_anime"<br />"caricature"<br />"real"<br />"super\_real"<br />"softy" | 处理引擎选择。                                               |
| `portrait_mode`       | COMBO   | 否  | "disabled"<br />"enabled"                                                                                                                        | 启用人像模式以进行面部增强。                                        |
| `portrait_style`      | COMBO   | 否  | "standard"<br />"pop"<br />"super\_pop"                                                                                                          | 应用于人像图像的视觉风格。此输入仅在 `portrait_mode` 设置为 "enabled" 时可用。 |
| `portrait_beautifier` | COMBO   | 否  | "none"<br />"beautify\_face"<br />"beautify\_face\_max"                                                                                          | 人像面部美化强度。此输入仅在 `portrait_mode` 设置为 "enabled" 时可用。     |
| `fixed_generation`    | BOOLEAN | 否  | -                                                                                                                                                | 禁用时，每次生成都会引入一定程度的随机性，从而产生更多样化的结果（默认值：True）。           |

**约束条件：**

* 必须恰好提供一个 `image` 和一个 `reference_image`。
* 两张图像的宽高比必须在 1:3 到 3:1 之间。
* 两张图像的最小高度和宽度必须为 160 像素。
* `portrait_style` 和 `portrait_beautifier` 参数仅在 `portrait_mode` 设置为 "enabled" 时生效且为必需。

## 输出

| 输出名称    | 数据类型  | 描述            |
| ------- | ----- | ------------- |
| `image` | IMAGE | 应用风格迁移后得到的图像。 |
