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

# MetaMuseImageTextToImageApi - ComfyUI Built-in Node Documentation

> Meta Muse Image 文生图节点使用 Meta 的 Muse Image 模型，根据文本提示词生成图像。

Meta Muse Image 文生图节点使用 Meta 的 Muse Image 模型，根据文本提示词生成图像。该模型在渲染之前会对提示词进行推理，并可在规划图像时使用网络搜索、图像搜索和代码执行。此节点调用 Muse Image API，并返回生成的单张或多张图像。

## 输入

### 通用输入

| 参数   | 描述      | 数据类型           | 必需 | 范围                 |
| ---- | ------- | -------------- | -- | ------------------ |
| `模型` | 要使用的模型。 | DYNAMIC\_COMBO | 是  | `"muse-image-1.0"` |

在列表中选择模型后，会显示该模型支持的设置。唯一可用的模型是 `muse-image-1.0`；其设置如下所列。

### muse-image-1.0 输入

| 参数                    | 描述                                                                         | 数据类型    | 必需 | 范围                                                                                                                                                                                    |
| --------------------- | -------------------------------------------------------------------------- | ------- | -- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `prompt`              | 描述图像的提示词。模型会对提示词进行推理，并可能在渲染前使用其内置的网络搜索和图像搜索。                               | STRING  | 是  | 多行文本，最少 1 个字符                                                                                                                                                                         |
| `aspect_ratio`        | 输出的宽高比。图像以约 2.5 兆像素渲染（1:1 为 1600x1600，16:9 为 2048x1152）；"auto" 让模型根据提示词选择。 | COMBO   | 是  | `"auto"`<br />`"1:1"`<br />`"3:2"`<br />`"2:3"`<br />`"4:3"`<br />`"3:4"`<br />`"5:4"`<br />`"4:5"`<br />`"16:9"`<br />`"9:16"`<br />`"21:9"`<br />`"9:21"`<br />`"2:1"`<br />`"1:2"` |
| `reasoning_strength`  | 模型在渲染前进行思考、规划和自我优化的程度。                                                     | COMBO   | 是  | `"high"`<br />`"low"`                                                                                                                                                                 |
| `enable_web_search`   | 允许模型在规划图像时搜索网络以获取事实和实时信息。                                                  | BOOLEAN | 否  | True<br />False（默认：True）                                                                                                                                                              |
| `enable_image_search` | 允许模型在规划图像时搜索参考图像。                                                          | BOOLEAN | 否  | True<br />False（默认：True）                                                                                                                                                              |
| `enable_shell`        | 允许模型在规划时运行代码，以实现精确的布局、图表和示意图；关闭时，数量和对其将采用近似值。                              | BOOLEAN | 否  | True<br />False（默认：True）                                                                                                                                                              |
| `seed`                | 用于确定节点是否应重新运行的种子；API 没有种子，因此无论此值如何，实际结果都是不确定的。                             | INT     | 是  | 0 – 2147483647（默认：42）                                                                                                                                                                 |

注意：提示词必须至少包含一个字符。当 `aspect_ratio` 设置为 "auto" 时，不会向 API 发送明确尺寸，模型会根据提示词决定输出尺寸。`seed` 参数仅控制节点何时重新运行；它不会被发送到 API，因此生成的结果是不确定的。

## 输出

| 输出名称    | 描述                                                     | 数据类型  |
| ------- | ------------------------------------------------------ | ----- |
| `image` | API 返回的生成图像，经解码后以批次图像形式提供。如果 API 响应包含多张图像，它们会被合并为一个批次。 | IMAGE |

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

***

**Source fingerprint (SHA-256):** `59ebd72fab3db44a35ceac723606de4eabb5fe2b690d0b701db50e0e22a9e699`
