download_model
Downloads a model into ComfyUI's models folder from Hugging Face, CivitAI, or direct URLs, automatically placing it in the correct subfolder based on model type.
Instructions
Download a model to the ComfyUI models folder. Supports Hugging Face, CivitAI, and direct URLs. For gated HF models, will return instructions to provide a token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Model URL: HF (https://huggingface.co/user/repo/...), CivitAI (https://civitai.com/...), direct URL, or HF shorthand (user/repo/file.safetensors) | |
| filename | No | Optional: Override the filename. Auto-detected from URL if not provided. | |
| hf_token | No | Hugging Face token for gated models. Only provide if download fails with auth error. | |
| subfolder | No | Optional: Subfolder within the model type directory | |
| model_type | Yes | Model type - determines destination folder in ComfyUI/models/ |