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

# BatchLatentsNode - ComfyUI Built-in Node Documentation

> The Batch Latents node combines multiple latent inputs into a single batch.

The Batch Latents node combines multiple latent inputs into a single batch. It takes a variable number of latent samples and merges them along the batch dimension so they can be processed together by subsequent nodes. The node also merges the batch index metadata of all inputs into the combined output.

## Inputs

| Parameter | Description                                                                                                                                                                                         | Data Type | Required | Range          |
| --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | -------- | -------------- |
| `latents` | A set of latent samples to be combined into a single batch. You must provide at least one latent, and you can add up to 50. The node automatically creates input slots as you connect more latents. | LATENT    | Yes      | 1 to 50 inputs |

**Note:** You must provide at least one latent input for the node to function. The node automatically creates input slots as you connect more latents, up to a maximum of 50. Each input latent is reshaped to match the sample shape of the first latent before being combined, and any latent without batch index metadata is assigned a sequential batch index.

## Outputs

| Output Name | Description                                                                                                                       | Data Type |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `output`    | A single latent output containing all the input latents combined into one batch, together with their merged batch index metadata. | LATENT    |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/BatchLatentsNode/en.md)

***

**Source fingerprint (SHA-256):** `38df5e6cfa391e054c663af1cc55728d115cebfbb804e1c2c51dfc2aab37df47`
