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

# MetaMuseImageTextToImageApi - ComfyUI Built-in Node Documentation

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

Meta Muse Image Text to 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`        | 输出的宽高比。图像以约 250 万像素渲染（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 (default: True)                                                                                                                                                       |
| `enable_image_search` | 允许模型在规划图像时搜索参考图像。                                                             | BOOLEAN | 否  | True<br />False (default: True)                                                                                                                                                       |
| `enable_shell`        | 允许模型在规划过程中运行代码，以实现精确的布局、图表和示意图；关闭时，数量和排列将采用近似值。                               | BOOLEAN | 否  | True<br />False (default: True)                                                                                                                                                       |
| `seed`                | 用于确定节点是否应重新运行的种子；API 没有种子机制，因此无论此值如何，实际结果都是不确定的。                              | INT     | 是  | 0 – 2147483647 (default: 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`
