Skip to content

Output

Finalizes and exports workflow results. Depending on the selected type, it can save image batches to files, package data into a ZIP, or simply emit a string value to the UI. Produces UI metadata referencing saved assets for downstream consumption.
Preview

Usage

Use this as the final node in a workflow to persist results. Typical patterns: save a batch of images as PNG/JPEG, bundle text/JSON/images/audio/video into a ZIP for download, or output a plain string message.

Inputs

FieldRequiredTypeDescriptionExample
output_typeTrueCHOICESpecifies how to export the provided data. Options: STRING (emit string to UI), PNG/JPEG (save image tensor batch), ZIP (create a ZIP from supported inputs), Path (ZIP the given filesystem path).PNG
output_dataTrueWILDCARDThe content to export. Expected types depend on output_type (e.g., image tensor for PNG/JPEG, string/list/dict/tensor/bytes for ZIP, filesystem path for Path, string for STRING).Tensor of images for PNG/JPEG, or a dict like {"key": "value"} for ZIP

Outputs

No outputs

Important Notes

  • Only PNG and JPEG image saving is supported for image tensors. Selecting WEBP currently does not produce image files.
  • When output_type is STRING, the node returns a string in UI results; no files are written.
  • For ZIP: behavior depends on the data type of output_data. Image tensors become multiple PNGs zipped; a string becomes a single .txt; a list becomes multiple .txt files; a dict becomes a single .json; raw audio bytes can be exported as MP3 if configured as ZIP (Audio) by the system; video tensors may be encoded and zipped if ZIP (Video) is enabled by the system.
  • For Path: only files or directories within allowed input/output/temp directories can be zipped; external locations are rejected.
  • Saved files are organized under an auto-generated asset folder (UUID) inside the output directory. Filenames for image batches follow output_0000.ext, output_0001.ext, etc.
  • The node emits UI metadata (salt_metadata and salt_output) describing saved assets, including subfolder and filenames. No pipeline outputs are produced.

Troubleshooting

  • Nothing is saved when selecting WEBP: Choose PNG or JPEG for image saving; WEBP is not currently implemented for file output.
  • Type mismatch errors or empty results: Ensure output_data matches the selected output_type. For example, provide an image tensor for PNG/JPEG, a string/list/dict/tensor/bytes for ZIP, or a valid path string for Path.
  • ZIP with Path fails: Verify the path exists and is located under an allowed directory (input/output/temp). External paths are not permitted.
  • No permission or save failures: Check write permissions on the output directory and ensure sufficient disk space.
  • ZIP results missing expected files: For image tensors, verify the tensor contains a batch dimension; each item in the batch becomes an image inside the ZIP.
  • Audio/video zipping not available: Some ZIP subtypes (ZIP (Audio), ZIP (Video)) may be disabled in your environment’s UI options. Use general ZIP with supported inputs or switch to PNG/JPEG/STRING as appropriate.

Example Pipelines

Example
Example