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

# VAEEncode - ComfyUI Built-in Node Documentation

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

用于将图像从像素空间编码至潜空间进行编码
此节点设计用于将图像编码为潜在空间表示，使用指定的变分自编码器（VAE）模型。它简化了编码过程的复杂性，提供了一种直接的方法将图像转换为它们的潜在表示。

## 输入

| 参数名称     | 数据类型    | 作用                                           |
| -------- | ------- | -------------------------------------------- |
| `像素`     | `IMAGE` | 代表要编码到潜在空间的图像数据，作为编码过程的直接输入，对确定输出潜在表示至关重要。   |
| `变分自编码器` | `VAE`   | 指定用于编码图像数据到潜在空间的变分自编码器模型，定义了编码机制和生成的潜在表示的特征。 |

## 输出

| 参数名称   | 数据类型     | 作用                              |
| ------ | -------- | ------------------------------- |
| `潜在表示` | `LATENT` | 输出是输入图像的潜在空间表示，以压缩形式封装了图像的基本特征。 |
