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

# LatentBatch - ComfyUI Built-in Node Documentation

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

The LatentBatch node is designed to merge two sets of latent samples into a single batch, potentially resizing one set to match the dimensions of the other before concatenation. This operation facilitates the combination of different latent representations for further processing or generation tasks.

## Inputs

| Parameter  | Description                                                                                                                                       | Data Type |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `samples1` | The first set of latent samples to be merged. It plays a crucial role in determining the final shape of the merged batch.                         | `LATENT`  |
| `samples2` | The second set of latent samples to be merged. If its dimensions differ from the first set, it is resized to ensure compatibility before merging. | `LATENT`  |

## Outputs

| Parameter | Description                                                                                | Data Type |
| --------- | ------------------------------------------------------------------------------------------ | --------- |
| `latent`  | The merged set of latent samples, now combined into a single batch for further processing. | `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/LatentBatch/en.md)
