Hugging Face
Hugging Face Hub is where open models, datasets and demo apps (Spaces) are published and shared.
Authentication
- User access token
Actions
Generic API request. Call any Hugging Face Hub API endpoint on this connection, for the case where no shipped action covers it yet. The connection supplies the base URL, the authentication and the egress route, so only the path, query and body are yours to fill.
- Create repo (v1)Create an empty model, dataset or Space repository on the Hub under the token's user or one of their organizations.
- Get collection (v1)Read one Hub collection by its slug: title, description, owner and every item it lists (models, datasets, Spaces, papers) in order, each with its type, id and any curator note.
- Get dataset (v1)Read one dataset repository's metadata from the Hub by repo id: its description, tags, card metadata (cardData, incl.
- Get model (v1)Read one model repository's metadata from the Hub by repo id: its pipelinetag and libraryname, the file list (siblings), config, card metadata (cardData, incl.
- Get Space (v1)Read one Space repository's metadata from the Hub by repo id: its sdk, the app URL (host), runtime.stage (RUNNING, BUILDING, SLEEPING, ...), hardware and the file list (siblings).
- List collections (v1)Find curated Hub collections - named lists of models, datasets, Spaces and papers - by owner, by an item they contain, or by text.
- List daily papers (v1)Read Hugging Face Daily Papers - the research papers the community featured on a given day, week or month.
- List datasets (v1)Search the Hugging Face Hub for datasets by name substring, owner, tags, sorted by popularity or recency.
- List models (v1)Search the Hugging Face Hub for models by name substring, owner, tags or task, sorted by popularity or recency.
- List repo files (v1)List the files and folders of a model, dataset or Space repository at a revision, one directory at a time or recursively.
- List Spaces (v1)Search the Hugging Face Hub for Spaces by name substring, owner, tags, sorted by popularity or recency.
- Search papers (v1)Search the research papers indexed on Hugging Face by topic, title or author, using the Hub's hybrid semantic and full-text search.
- Who am I (v1)Identify the user behind this connection's access token and the organizations they belong to.
Product names, logos and brands are the property of their respective owners and are used here for identification only. Their use does not imply endorsement by, or affiliation with, those owners.