> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-comfy-docs-comfyapi-search.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ModelSave - ComfyUI Built-in Node Documentation

> The ModelSave node saves a MODEL to your computer's storage as a .safetensors checkpoint file.

The ModelSave node saves a MODEL to your computer's storage as a `.safetensors` checkpoint file. It writes the file into ComfyUI's output directory using the filename prefix you provide, and embeds workflow prompt information and model metadata into the saved file when available.

## Inputs

| Parameter         | Description                                                                                  | Data Type      | Required | Range |
| ----------------- | -------------------------------------------------------------------------------------------- | -------------- | -------- | ----- |
| `model`           | The model to be saved to disk                                                                | MODEL          | Yes      | -     |
| `filename_prefix` | The filename and path prefix for the saved model file (default: "diffusion\_models/ComfyUI") | STRING         | Yes      | -     |
| `prompt`          | Workflow prompt information (automatically provided)                                         | PROMPT         | No       | -     |
| `extra_pnginfo`   | Additional workflow metadata (automatically provided)                                        | EXTRA\_PNGINFO | No       | -     |

Note: The saved filename is built from the `filename_prefix` value followed by a five-digit counter (for example, `diffusion_models/ComfyUI_00001_.safetensors`). If a file with the same prefix already exists, the counter is increased so the new file gets a unique name. When available, the workflow prompt, additional metadata, and model architecture information (for example Stable Diffusion XL, SDXL Refiner, Stable Video Diffusion, or Stable Diffusion 3) are embedded in the saved file. If metadata saving is disabled through ComfyUI's command-line settings, the prompt and extra metadata are not written into the file.

## Outputs

| Output Name | Description                                 | Data Type |
| ----------- | ------------------------------------------- | --------- |
| *None*      | This node does not return any output values | -         |

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ModelSave/en.md)

***

**Source fingerprint (SHA-256):** `943e60f2c596d9cbcaabe95029fd9d443df5b61c6137736a8b1b81ab78f200ea`
