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

# BatchLatentsNode - ComfyUI Built-in Node Documentation

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

此节点将多个潜在表示输入合并为一个批次。它接收可变数量的潜在样本，并沿批次维度将它们合并，使它们能够在后续节点中一起处理。这对于在单次操作中生成或处理多张图像非常有用。

## 输入参数

| 参数                       | 数据类型   | 必填 | 取值范围 | 描述                                  |
| ------------------------ | ------ | -- | ---- | ----------------------------------- |
| `latents`                | LATENT | 是  | N/A  | 要包含在批次中的第一个潜在样本。                    |
| `latent_2` 至 `latent_50` | LATENT | 否  | N/A  | 要包含在批次中的其他潜在样本。总共可以添加 2 到 50 个潜在输入。 |

**注意：** 必须至少提供两个潜在输入，节点才能正常工作。当您连接更多潜在表示时，节点会自动创建输入槽，最多可达 50 个。

## 输出

| 输出名称     | 数据类型   | 描述                          |
| -------- | ------ | --------------------------- |
| `output` | LATENT | 一个单一的潜在输出，包含所有输入潜在表示合并后的批次。 |
