Skip to main content
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
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

ParameterData TypeRequiredRangeDescription
samplesLATENTYes-The latent samples to be saved to disk
filename_prefixSTRINGNo-The prefix for the output filename (default: “latents/ComfyUI”)
promptPROMPTNo-Prompt information to include in metadata (hidden parameter)
extra_pnginfoEXTRA_PNGINFONo-Additional PNG information to include in metadata (hidden parameter)

Outputs

Output NameData TypeDescription
uiUIProvides file location information for the saved latent in the ComfyUI interface