> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.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` | `vae` 参数指定用于将图像数据编码到潜在空间中的变分自编码器模型。它对于定义编码机制以及所生成潜在表示的特性至关重要。 | VAE     |

## 输出

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

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/VAEEncode/zh.md)
