Skip to main content
The SaveLatent node saves latent tensors to disk as files for later use or sharing. It takes latent samples and saves them to the output directory with optional metadata including prompt information. The node automatically handles file naming and organization while preserving the latent data structure.

Inputs

ParameterDescriptionData TypeRequiredRange
samplesThe latent samples to be saved to diskLATENTYes-
filename_prefixThe prefix for the output filename (default: “latents/ComfyUI”)STRINGNo-
promptPrompt information to include in metadata (hidden parameter)PROMPTNo-
extra_pnginfoAdditional PNG information to include in metadata (hidden parameter)EXTRA_PNGINFONo-

Outputs

Output NameDescriptionData Type
uiProvides file location information for the saved latent in the ComfyUI interfaceUI
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub

Source fingerprint (SHA-256): dc7fd101c8dd93e2bcc39de64e0c39abe8e056c9e5932587fc6ce80e2fd143e8