# Hugging Face integration

> Hugging Face Hub REST API for models, datasets, Spaces, collections, repos, and discussions, plus the Inference Providers router for chat completions and embeddings.

- Authentication: apiKey

## Tools (79)

- **Add Collection Item**: Add a repo or paper to a collection.
- **Change Discussion Status**: Open, close, or reopen a discussion or PR.
- **Change Discussion Title**: Rename a discussion or PR.
- **Chat Completion**: OpenAI-compatible chat completion via the inference router.
- **Comment on Discussion**: Add a comment to a discussion or PR.
- **Commit to Repository**: Create a commit adding/updating/deleting files.
- **Compare Revisions**: Diff two revisions of a repo.
- **Create Branch**: Create a new branch in a repo.
- **Create Collection**: Create a new collection.
- **Create Discussion**: Open a discussion or pull request on a repo.
- **Create Repository**: Create a new model, dataset, or Space repo.
- **Create Tag**: Create a git tag in a repo.
- **Create Webhook**: Create a webhook watching repos or orgs.
- **Delete Branch**: Delete a branch from a repo.
- **Delete Collection**: Delete a collection.
- **Delete Collection Item**: Remove an item from a collection.
- **Delete Notifications**: Delete the authenticated user's notifications.
- **Delete Repository**: Delete a model, dataset, or Space repo.
- **Delete Space Secret**: Delete a secret from a Space.
- **Delete Space Variable**: Delete an env variable from a Space.
- **Delete Tag**: Delete a git tag from a repo.
- **Delete Webhook**: Delete a webhook.
- **Download File**: Resolve and download a raw file from a repo.
- **Duplicate Repository**: Duplicate a repo into a new one.
- **Feature Extraction**: Generate text embeddings via the inference router.
- **Get Collection**: Get a single collection and its items.
- **Get Current User**: Return the account identity (name, fullname, email, orgs) for the token.
- **Get Daily Papers**: List the curated daily papers.
- **Get Dataset**: Fetch metadata for one dataset repo.
- **Get Dataset Tags**: List all dataset tags grouped by type.
- **Get Discussion**: Get one discussion or PR with its events.
- **Get Folder Size**: Get the total size of a folder in a repo.
- **Get Model**: Fetch metadata for one model repo.
- **Get Model Tags**: List all model tags grouped by type.
- **Get Notebook URL**: Get a Colab/notebook URL for a file in a repo.
- **Get Organization Members**: List the members of an organization.
- **Get Paper**: Get one paper by its arXiv id.
- **Get Paths Info**: Get size and metadata for specific paths in a repo.
- **Get Repository Scan Status**: Get malware/secret scan status for a repo.
- **Get Space**: Fetch metadata for one Space repo.
- **Get Trending**: List trending models, datasets, and Spaces.
- **Get User Overview**: Get a user's public profile overview.
- **Get User Social Handles**: Get a user's linked social accounts.
- **Get Webhook**: Get a single webhook by id.
- **Index Paper**: Index an arXiv paper on the Hub.
- **List Collections**: List and filter collections on the Hub.
- **List Datasets**: Search and filter datasets on the Hub.
- **List Discussions**: List discussions and pull requests on a repo.
- **List Docs**: List Hugging Face documentation pages.
- **List Large Files**: List the LFS/xet files stored in a repo.
- **List Models**: Search and filter models on the Hub.
- **List Notifications**: List the authenticated user's notifications.
- **List Papers**: List papers indexed on the Hub.
- **List Repository Commits**: List the commit history of a repo branch.
- **List Repository Files**: List the file tree of a repo at a revision.
- **List Repository Refs**: List branches, tags, and open PR refs of a repo.
- **List Router Models**: List inference models available across providers.
- **List Space Hardware**: List available Space hardware flavors.
- **List Spaces**: Search and filter Spaces on the Hub.
- **List Space Secrets**: List the secret keys set on a Space.
- **List Space Templates**: List available Space starter templates.
- **List Space Variables**: List the environment variables set on a Space.
- **List User Likes**: List the repos a user has liked.
- **List Webhooks**: List the authenticated user's webhooks.
- **Mark Notifications Read**: Change the read status of notifications.
- **Merge Pull Request**: Merge an open pull request.
- **Move Repository**: Rename or transfer a repo to a new id.
- **Preupload Files**: Check upload method (regular vs LFS) before a commit.
- **Quick Search**: Autocomplete search across models, datasets, Spaces, users, and orgs.
- **Request Repository Access**: Request access to a gated repo.
- **Search Docs**: Search Hugging Face documentation.
- **Search Papers**: Semantic search over Hub papers.
- **Squash Repository History**: Squash a branch's commit history into one.
- **Toggle Webhook**: Enable or disable a webhook.
- **Update Collection**: Update a collection's metadata.
- **Update Repository Settings**: Change visibility, gating, and other repo settings.
- **Update Webhook**: Update an existing webhook.
- **Upsert Space Secret**: Create or update a secret on a Space.
- **Upsert Space Variable**: Create or update an env variable on a Space.

Connect Hugging Face in General Input: https://www.generalinput.com/apps/huggingface