Canonical: https://weaveos.com/reference/hugging-face/download-a-model-revision

1. [Software capabilities](https://weaveos.com/reference)
2. /[Hugging Face Hub](https://weaveos.com/reference/hugging-face)
3. /Download a file from a Hugging Face model revision

[![](https://weaveos.com/reference/logos/hugging-face.svg)Hugging Face Hub](https://weaveos.com/reference/hugging-face)

# Download a file from a Hugging Face model revision

Download a model file with a Hub resolve URL or the hf CLI. Use a full commit hash to pin the same file across builds.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: GET /{repo\_id}/resolve/{revision}/{filename}](https://weaveos.com/reference/hugging-face/download-a-model-revision#method-1)
2. [2CLI: hf download --revision](https://weaveos.com/reference/hugging-face/download-a-model-revision#method-2)

API

### GET /{repo\_id}/resolve/{revision}/{filename}

Download a model artifact from a repository at a named revision or commit hash using the Hub resolve URL.

[Read source: Hugging Face Hub file URL reference](https://huggingface.co/docs/huggingface_hub/en/package_reference/file_download#huggingface_hub.hf_hub_url)

- Requirements

  A model repository ID, revision, and filename. Private and gated models require a token with access to that repository.

- Limitations

  A resolve URL downloads one file at a time. Follow redirects when the file is served from a separate download host.

Example shell

Copy

```
curl --fail --location \
  -o config.json "https://huggingface.co/ORG/MODEL/resolve/$REVISION/config.json"
```

CLI

### hf download --revision

Download a selected model file with hf download and use --revision to choose the commit, branch, or tag.

[Read source: Hugging Face CLI guide](https://huggingface.co/docs/huggingface_hub/en/guides/cli#download-a-specific-revision)

- Requirements

  The hf CLI and the model repository ID and filename. Authenticate for a private or gated repository.

- Limitations

  Files go into the Hub cache by default. Set --local-dir to put the model file in a project directory.

Example shell

Copy

```
hf download ORG/MODEL config.json --revision "$REVISION" --local-dir ./model
```

## More from Hugging Face Hub

[View all 1 Hugging Face Hub tasks](https://weaveos.com/reference/hugging-face)

## The same task in other apps

- [![](https://weaveos.com/reference/logos/cloudflare.svg)Cloudflare](https://weaveos.com/reference/cloudflare)

  ### [Import DNS records from a BIND zone file](https://weaveos.com/reference/cloudflare/import-dns-zone-file)

  Upload a BIND-format zone file to import DNS records into a Cloudflare zone.

  API, SDK

- [![](https://weaveos.com/reference/logos/google-drive.svg)Google Drive](https://weaveos.com/reference/google-drive)

  ### [How to download an uploaded Google Drive file](https://weaveos.com/reference/google-drive/download-file)

  Call Drive API v3 files.get with alt=media for stored files such as PDFs and images. In Drive, select Download for a manual copy.

  API, Interface

- [![](https://weaveos.com/reference/logos/dropbox.svg)Dropbox](https://weaveos.com/reference/dropbox)

  ### [Download an individual Dropbox file](https://weaveos.com/reference/dropbox/download-an-individual-file)

  Use the Dropbox SDK to retrieve the bytes of a file your app can access, or download it directly from the Dropbox website.

  SDK, Interface
