> ## 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.

# MagnificImageSkinEnhancerNode - ComfyUI Built-in Node Documentation

> Complete documentation for the MagnificImageSkinEnhancerNode 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/MagnificImageSkinEnhancerNode/zh.md)

Magnific Image Skin Enhancer 节点对肖像图像应用专门的 AI 处理，以改善皮肤外观。它提供三种不同的模式以满足不同的增强目标：创意模式用于艺术效果，忠实模式用于保留原始外观，灵活模式用于针对性的改进，如光照或真实感。该节点将图像上传到外部 API 进行处理，并返回增强后的结果。

## 输入参数

| 参数              | 数据类型  | 必填 | 取值范围                                                                                                                  | 描述                                                                      |
| --------------- | ----- | -- | --------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| `image`         | IMAGE | 是  | -                                                                                                                     | 待增强的肖像图像。                                                               |
| `sharpen`       | INT   | 否  | 0 到 100                                                                                                               | 锐化强度级别（默认值：0）。                                                          |
| `smart_grain`   | INT   | 否  | 0 到 100                                                                                                               | 智能颗粒感强度级别（默认值：2）。                                                       |
| `mode`          | COMBO | 是  | `"creative"`<br />`"faithful"`<br />`"flexible"`                                                                      | 使用的处理模式。`"creative"` 用于艺术增强，`"faithful"` 用于保留原始外观，`"flexible"` 用于针对性优化。 |
| `skin_detail`   | INT   | 否  | 0 到 100                                                                                                               | 皮肤细节增强级别。此输入仅在 `mode` 设置为 `"faithful"` 时可用且必需（默认值：80）。                  |
| `optimized_for` | COMBO | 否  | `"enhance_skin"`<br />`"improve_lighting"`<br />`"enhance_everything"`<br />`"transform_to_real"`<br />`"no_make_up"` | 增强优化目标。此输入仅在 `mode` 设置为 `"flexible"` 时可用且必需。                            |

**约束条件：**

* 该节点仅接受一个输入图像。
* 输入图像的高度和宽度必须至少为 160 像素。
* `skin_detail` 参数仅在 `mode` 设置为 `"faithful"` 时生效。
* `optimized_for` 参数仅在 `mode` 设置为 `"flexible"` 时生效。

## 输出参数

| 输出名称    | 数据类型  | 描述        |
| ------- | ----- | --------- |
| `image` | IMAGE | 增强后的肖像图像。 |
