Skip to content

Save Image Filename Templates

Will Miao edited this page Nov 16, 2026 · 1 revision

Save Image Filename Templates

Save Image (LoraManager) supports dynamic filename prefixes using metadata, date and time, and widget values from other ComfyUI nodes.

Generation metadata placeholders

  • %seed% — generation seed
  • %width% — image width
  • %height% — image height
  • %pprompt:N% — positive prompt limited to N characters
  • %nprompt:N% — negative prompt limited to N characters
  • %model:N% — model or checkpoint name limited to N characters

The :N length limit is optional where shown. For example, %model% uses the full model name.

Date and time placeholders

  • %date% — current date and time as yyyyMMddhhmmss
  • %date:FORMAT% — custom date and time format

Format codes:

  • yyyy: four-digit year
  • yy: two-digit year
  • MM: two-digit month
  • dd: two-digit day
  • hh: two-digit hour
  • mm: two-digit minute
  • ss: two-digit second

Cross-node widget placeholders

Use %NodeTitle.WidgetName% to reference another node's widget value:

  • %KSampler.seed%
  • %KSampler.steps%
  • %Empty Latent Image.width%
  • %Empty Latent Image.height%

Nodes are matched by their Node name for S&R property first, then by their title.

Examples

Pattern Example result
image_%seed% image_1234567890
gen_%width%x%height% gen_512x768
%model:10%_%seed% dreamshape_1234567890
%date:yyyy-MM-dd% 2026-11-16
%pprompt:20%_%seed% beautiful landscape_1234567890
%KSampler.seed%_%KSampler.steps% 1234567890_25
%KSampler.seed%_%model%_%date:yyyyMMdd% 1234567890_dreamshaper_v8_20261116

Metadata and cross-node placeholders can be mixed in the same prefix.

Subdirectories

Use / in the filename prefix to create subdirectories relative to ComfyUI's output directory:

Pattern Result
%date:yyyy-MM-dd%/%seed% 2026-11-16/1234567890.png
%model%/%date:yyMMdd%_%seed% dreamshaper_v8/261116_1234567890.png
%KSampler.seed%/%model% 1234567890/dreamshaper_v8.png
%date:yyyy/MM/dd%/%seed% 2026/11/16/1234567890.png
%model%/training/%seed% dreamshaper_v8/training/1234567890.png

Characters that are invalid for folder names are replaced with underscores. ComfyUI's --output-directory option controls the base output directory.

Related guides

For organizing downloaded model filenames rather than generated images, use Filename Templates under Settings → Organization.

Clone this wiki locally