> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Hugging Face connector

- Connector: `appmixer.ai.huggingface`
- Version: 1.0.2
- Components: 8 (0 triggers, 8 actions)

Integrate with Hugging Face. Send prompts to any chat model served by Inference Providers, create text embeddings, classify and summarize text, generate images from a prompt, search the Hugging Face Hub for models and read a single model's metadata. Any other Hub or Inference Providers endpoint can be called directly.

- Connector page: <https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2>
- Source code: <https://github.com/clientIO/appmixer-connectors/tree/dev/src/appmixer/ai/huggingface>
- Download package: <https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/download>

## Authentication

**Type:** API Key

**Fields:**

- `User Access Token` (text): Create a token at [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens). A fine-grained token needs the **Make calls to Inference Providers** permission; a classic **read** token works too.

## Actions (8)

- [Classify Text](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.ClassifyText.md) (`appmixer.ai.huggingface.ClassifyText`): Classify a piece of text with a text-classification model served by Hugging Face Inference Providers, for example sentiment, topic or toxicity. Returns the highest scoring label plus all scored labels.
- [Create Embeddings](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.CreateEmbeddings.md) (`appmixer.ai.huggingface.CreateEmbeddings`): Turn a piece of text into a numeric embedding vector using a feature-extraction model served by Hugging Face Inference Providers.
- [Find Models](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.FindModels.md) (`appmixer.ai.huggingface.FindModels`): Search the Hugging Face Hub for model repositories by keyword, author, task or tag. Returns up to 100 models per call.
- [Generate Image](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.GenerateImage.md) (`appmixer.ai.huggingface.GenerateImage`): Generate an image from a text prompt using a text-to-image model served by Hugging Face Inference Providers. The image is saved to file storage and its file ID is returned.
- [Get Model](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.GetModel.md) (`appmixer.ai.huggingface.GetModel`): Get the metadata of a single model repository on the Hugging Face Hub by its repository ID.
- [Make API Call](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.MakeApiCall.md) (`appmixer.ai.huggingface.MakeApiCall`): Perform an arbitrary authorized API call to Hugging Face. Choose the Hub API or the Inference Providers router, then provide a path (or full URL), method, headers, query parameters and body. The access token is added automatically.
- [Send Prompt](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.SendPrompt.md) (`appmixer.ai.huggingface.SendPrompt`): Send a prompt or a full chat conversation to any model served by Hugging Face Inference Providers and return the generated answer.
- [Summarize Text](https://connectors.appmixer.com/connector/appmixer.ai.huggingface/1.0.2/component/appmixer.ai.huggingface.SummarizeText.md) (`appmixer.ai.huggingface.SummarizeText`): Condense a long piece of text into a short summary using a summarization model served by Hugging Face Inference Providers.

## Changelog

### 1.0.2

- Quote CSV cells that hold a comma, a double quote or a line break and map cells by header column when exporting results to a file.

### 1.0.1

- MakeApiCall: Request Headers and Query Parameters set in the Designer are now sent. They were silently dropped: the key-value field stores its rows as a JSON object string, which the component did not parse.

### 1.0.0

- Initial release.
