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

# LumaImageNode2 - ComfyUI Built-in Node Documentation

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

## 概述

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

## 输入

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

### 模型特定输入

当为 `model` 参数选择 `"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"`）                     | COMBO   | 是    | `"auto"`<br />`"manga"`                                                                                                         |
| `web_search`   | 是否允许模型搜索网络以获取更多上下文信息。（默认值：False）             | BOOLEAN | 是    | True / False                                                                                                                    |
| `image_ref`    | 用于指导生成的参考图像。                                 | IMAGE   | 否    | 最多 9 张图像                                                                                                                        |

**关于 `style` 和 `aspect_ratio` 的约束说明：** 如果 `style` 设置为 `"manga"`，则 `aspect_ratio` 必须为 `"auto"` 或以下竖屏比例之一：`"2:3"`、`"9:16"`、`"1:2"`、`"1:3"`。在 `"manga"` 风格下使用横屏或方形比例将导致错误。

## 输出

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

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

***

**Source fingerprint (SHA-256):** `0a71bcd7c68c3610c162601b4c3f700034e47af8f16cf7853606753ad270c96e`
