---
title: "List files in a HuggingFace repo"
method: GET
path: "/v1/models/hf/{owner}/{repo}/files"
tags: ["Models"]
---

# List files in a HuggingFace repo

`GET /v1/models/hf/{owner}/{repo}/files`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/models/hf/{owner}/{repo}/files`
- Auth: HTTP bearer

## Response `200`

Array of files

- object[]
  - `filename` string, required
  - `size` integer, required
  - `formattedSize` string, required

## Other responses

- `400`: Invalid request
- `502`: HuggingFace API error

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
