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

# MagnificImageUpscalerCreativeNode - ComfyUI Built-in Node Documentation

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

此节点使用 Magnific AI 服务对图像进行放大和创意增强。它允许您通过文本提示来引导增强过程，选择特定的优化风格，并控制创意过程的各个方面，如细节、与原图的相似度以及风格化强度。该节点会输出按您选择的倍数（2倍、4倍、8倍或16倍）放大的图像，最大输出尺寸为2530万像素。

## 输入参数

| 参数               | 数据类型    | 必填 | 范围                                                                                                                                                                                                                                 | 描述                                                        |
| ---------------- | ------- | -- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| `image`          | IMAGE   | 是  | -                                                                                                                                                                                                                                  | 待放大和增强的输入图像。                                              |
| `prompt`         | STRING  | 否  | -                                                                                                                                                                                                                                  | 用于引导图像创意增强的文本描述。此为可选参数（默认：空）。                             |
| `scale_factor`   | COMBO   | 是  | `"2x"`<br />`"4x"`<br />`"8x"`<br />`"16x"`                                                                                                                                                                                        | 图像尺寸的放大倍数。                                                |
| `optimized_for`  | COMBO   | 是  | `"standard"`<br />`"soft_portraits"`<br />`"hard_portraits"`<br />`"art_n_illustration"`<br />`"videogame_assets"`<br />`"nature_n_landscapes"`<br />`"films_n_photography"`<br />`"3d_renders"`<br />`"science_fiction_n_horror"` | 为增强过程优化的风格或内容类型。                                          |
| `creativity`     | INT     | 否  | -10 到 10                                                                                                                                                                                                                           | 控制应用于图像的创意解读程度（默认：0）。                                     |
| `hdr`            | INT     | 否  | -10 到 10                                                                                                                                                                                                                           | 清晰度和细节水平（默认：0）。                                           |
| `resemblance`    | INT     | 否  | -10 到 10                                                                                                                                                                                                                           | 与原图的相似度水平（默认：0）。                                          |
| `fractality`     | INT     | 否  | -10 到 10                                                                                                                                                                                                                           | 提示的强度以及每平方像素的复杂精细度（默认：0）。                                 |
| `engine`         | COMBO   | 是  | `"automatic"`<br />`"magnific_illusio"`<br />`"magnific_sharpy"`<br />`"magnific_sparkle"`                                                                                                                                         | 用于处理的特定 AI 引擎。                                            |
| `auto_downscale` | BOOLEAN | 否  | -                                                                                                                                                                                                                                  | 启用后，如果请求的放大尺寸将超过允许的最大输出尺寸 2530 万像素，节点将自动缩小输入图像（默认：False）。 |

**约束条件：**

* 输入 `image` 必须恰好是一张图像。
* 输入图像的高度和宽度必须至少为 160 像素。
* 输入图像的宽高比必须在 1:3 到 3:1 之间。
* 最终输出尺寸（输入尺寸乘以 `scale_factor`）不能超过 25,300,000 像素。如果 `auto_downscale` 被禁用且将超过此限制，节点将引发错误。

## 输出

| 输出名称    | 数据类型  | 描述              |
| ------- | ----- | --------------- |
| `image` | IMAGE | 经过创意增强和放大的输出图像。 |
