ComfyUI Node
Save Checkpoint with Metadata
A ComfyUI node in advanced/model_merging with 10 inputs and 4 outputs.
Save Checkpoint with Metadata
- model
- clip
- vae
- clip_vision
- ckpt_path
- saved_metadata
- saved_prompt
- saved_extra_pnginfo
◄filename_prefixcheckpoints/CustomMeta►
◄filename_modesmart_counter►
◄metadata_json{}►
◄metadata_modereplace►
◄include_extra_pnginfotrue►
◄prompt_override►
Categoryadvanced/model_merging
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| model | MODEL | MODEL to serialize into a .safetensors checkpoint. Wire your merged/trained model here. | |
| filename_prefix | STRING | checkpoints/CustomMeta | Subfolder/prefix under output directory. Example: checkpoints/MyModel. |
| filename_mode | COMBO | smart_counter | smart_counter: first save uses prefix.safetensors if free, later saves use prefix_00001_.safetensors. no_counter_overwrite: always write to prefix.safetensors and overwrite if it exists. |
| metadata_json | STRING | {} | JSON object of header keys to write. Values must be strings; non-strings are JSON-encoded for you. Example: {"author":"Alex","training":{"epochs":80}} |
| metadata_mode | COMBO | replace | replace: write only metadata_json. merge_minimal: start with prompt and optional EXTRA_PNGINFO, then apply metadata_json. |
| include_extra_pnginfo | BOOLEAN | true | Merge mode only. When ON, copy keys from hidden EXTRA_PNGINFO into the header before applying metadata_json. |
| prompt_override | STRING | Optional override for the hidden PROMPT. Ignored in replace mode. In merge_minimal mode, becomes the base prompt unless metadata_json also contains prompt. | |
| clipopt | CLIP | Optional CLIP to embed into the saved checkpoint. | |
| vaeopt | VAE | Optional VAE to embed into the saved checkpoint. | |
| clip_visionopt | CLIP_VISION | Optional CLIP_VISION to embed into the saved checkpoint. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| ckpt_path | STRING | — |
| saved_metadata | STRING | — |
| saved_prompt | STRING | — |
| saved_extra_pnginfo | STRING | — |