> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# SaveLatent - ComfyUI Built-in Node Documentation

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

SaveLatent 节点用于将潜在张量保存为磁盘上的文件，以便后续使用或共享。该节点接收潜在样本，并将其保存到输出目录中，可附带包含提示信息的元数据。节点会自动处理文件命名与组织，同时保留潜在数据的结构。

## 输入

| 参数              | 描述                              | 数据类型           | 是否必填 | 范围 |
| --------------- | ------------------------------- | -------------- | ---- | -- |
| `Latent`        | 要保存到磁盘的潜在样本                     | LATENT         | 是    | -  |
| `文件名前缀`         | 输出文件名的前缀（默认值："latents/ComfyUI"） | STRING         | 否    | -  |
| `prompt`        | 要包含在元数据中的提示信息（隐藏参数）             | PROMPT         | 否    | -  |
| `extra_pnginfo` | 要包含在元数据中的额外 PNG 信息（隐藏参数）        | EXTRA\_PNGINFO | 否    | -  |

## 输出

| 输出名称      | 描述                            | 数据类型 |
| --------- | ----------------------------- | ---- |
| `samples` | 在 ComfyUI 界面中提供已保存潜在文件的存储位置信息 | UI   |

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

***

**Source fingerprint (SHA-256):** `dc7fd101c8dd93e2bcc39de64e0c39abe8e056c9e5932587fc6ce80e2fd143e8`
