Repository navigation
Save Image Filename Templates
Save Image (LoraManager) supports dynamic filename prefixes using metadata, date and time, and widget values from other ComfyUI nodes.
-
%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%— current date and time asyyyyMMddhhmmss -
%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
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.
| 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.
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.
For organizing downloaded model filenames rather than generated images, use Filename Templates under Settings → Organization.