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

# LumaImageNode2 - ComfyUI Built-in Node Documentation

> 此节点使用 Luma UNI-1 模型根据文本描述生成图像。

此节点使用 Luma UNI-1 模型根据文本描述生成图像。它接收文本提示词及宽高比、风格等可选设置，然后将请求发送至 Luma API 以创建图像。有两个模型变体可用：`uni-1` 和 `uni-1-max`。

## 输入

### 通用输入

| 参数       | 描述                                    | 数据类型           | 是否必需 | 范围                           |
| -------- | ------------------------------------- | -------------- | ---- | ---------------------------- |
| `model`  | 用于生成的模型。选择模型会显示该模型的附加设置。              | DYNAMIC\_COMBO | 是    | `"uni-1"`<br />`"uni-1-max"` |
| `prompt` | 所需图像的文本描述。1–6000 个字符。（默认：""）          | STRING         | 是    | 1 至 6000 个字符                 |
| `seed`   | 种子控制节点是否应重新运行；无论种子如何，结果都是非确定性的。（默认：0） | INT            | 是    | 0 至 2147483647               |

### uni-1 和 uni-1-max 输入

由 `uni-1` 和 `uni-1-max` 模型选项共享。这些设置在选中任一模型时都会显示。

| 参数             | 描述                                                                                     | 数据类型    | 是否必需 | 范围                                                                                                                              |
| -------------- | -------------------------------------------------------------------------------------- | ------- | ---- | ------------------------------------------------------------------------------------------------------------------------------- |
| `aspect_ratio` | 输出图像的宽高比。`"auto"` 让模型根据提示词自行选择。（默认：`"auto"`）                                           | COMBO   | 是    | `"auto"`<br />`"3:1"`<br />`"2:1"`<br />`"16:9"`<br />`"3:2"`<br />`"1:1"`<br />`"2:3"`<br />`"9:16"`<br />`"1:2"`<br />`"1:3"` |
| `style`        | 风格预设。`"auto"` 根据提示词自动选择；`"manga"` 应用漫画/动漫美学，并要求使用纵向宽高比（2:3、9:16、1:2、1:3）。（默认：`"auto"`） | COMBO   | 是    | `"auto"`<br />`"manga"`                                                                                                         |
| `web_search`   | 在生成之前搜索网络以获取视觉参考。（默认：False）                                                            | BOOLEAN | 是    | True / False                                                                                                                    |

### 参考输入

| 参数          | 描述                                                                 | 数据类型  | 是否必需 | 范围       |
| ----------- | ------------------------------------------------------------------ | ----- | ---- | -------- |
| `image_ref` | 可增长插槽：连接 1 至 9 个项目（例如 `image_1` 到 `image_9`）。最多 9 张参考图像，用于风格/内容引导。 | IMAGE | 否    | 最多 9 张图像 |

**注意：** 如果 `style` 设置为 `"manga"`，则 `aspect_ratio` 必须为 `"auto"` 或纵向比例之一 `"2:3"`、`"9:16"`、`"1:2"`、`"1:3"`。将 `"manga"` 风格与任何其他比例一起使用将导致错误。`uni-1` 和 `uni-1-max` 的最大参考图像数量均为 9。

## 输出

| 输出名称    | 描述             | 数据类型  |
| ------- | -------------- | ----- |
| `image` | 生成的图像，以张量形式表示。 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `27254fe4627fd340426a68f651cab4513ffb6668cafc0accd17f2c442f7d3125`
