> ## Documentation Index
> Fetch the complete documentation index at: https://www.anything.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Hugging Face

> Access AI models and datasets

Hugging Face provides access to thousands of AI models and datasets through their comprehensive API.

## Overview

<CardGroup cols={2}>
  <Card title="Create Account" icon="user">
    Sign up for a Hugging Face account
  </Card>

  <Card title="Get API Key" icon="key">
    Generate your Hugging Face API key
  </Card>

  <Card title="Copy into Anything" icon="plug">
    Add your API key to Anything's secrets
  </Card>
</CardGroup>

## Account Creation

<Steps>
  <Step title="Visit Hugging Face Website">
    Go to [huggingface.co](https://huggingface.co/) and click "Sign Up"

    <img src="https://mintcdn.com/create/h7brMl8OkFSdcGO6/images/huggingface/homepage.png?fit=max&auto=format&n=h7brMl8OkFSdcGO6&q=85&s=5c3600f75c60b629e158db81e00f91c8" style={{ borderRadius: '0.5rem' }} width="2638" height="1322" data-path="images/huggingface/homepage.png" />
  </Step>

  <Step title="Choose Signup Method">
    * Sign up with email/password
    * Or continue with Google/GitHub authentication

    <img src="https://mintcdn.com/create/h7brMl8OkFSdcGO6/images/huggingface/signup.png?fit=max&auto=format&n=h7brMl8OkFSdcGO6&q=85&s=3bda572846455649e89c8b329547d910" style={{ borderRadius: '0.5rem' }} width="918" height="1180" data-path="images/huggingface/signup.png" />
  </Step>
</Steps>

## Generate API Key

<Steps>
  <Step title="Access API Keys">
    1. Go to your Hugging Face settings
    2. Navigate to "Access Tokens"

    <img src="https://mintcdn.com/create/h7brMl8OkFSdcGO6/images/huggingface/setting.png?fit=max&auto=format&n=h7brMl8OkFSdcGO6&q=85&s=9996f2bdb1a8732819ba94717cbf17c0" style={{ borderRadius: '0.5rem' }} width="1526" height="1416" data-path="images/huggingface/setting.png" />

    <Warning>
      Free tier has rate limits - monitor your usage
    </Warning>
  </Step>

  <Step title="Create New Read Token">
    1. Click "New token"

    <img src="https://mintcdn.com/create/h7brMl8OkFSdcGO6/images/huggingface/apigen.png?fit=max&auto=format&n=h7brMl8OkFSdcGO6&q=85&s=2c5e0fe303cfccd5e43f9cad867b7c5c" style={{ borderRadius: '0.5rem' }} width="2578" height="1146" data-path="images/huggingface/apigen.png" />

    2. Select Read and name your token (e.g., "Anything Integration")

    <img src="https://mintcdn.com/create/h7brMl8OkFSdcGO6/images/huggingface/readtoken.png?fit=max&auto=format&n=h7brMl8OkFSdcGO6&q=85&s=366751ac02e2cce5ac5710c64ca05e10" style={{ borderRadius: '0.5rem' }} width="1894" height="908" data-path="images/huggingface/readtoken.png" />

    3. Copy your API token
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "Hugging Face" from the menu
  </Step>

  <Step title="Add your API key">
    1. Paste your API key into the "HUGGINGFACE\_API\_KEY" field

    <Tip>
      Need a new key? Generate one in your Hugging Face settings.
    </Tip>
  </Step>

  <Step title="Start using">
    You can now use prompts with the integration to access AI models.

    Example prompts:

    * `Generate text using /HuggingFace`
    * `Classify sentiment with /HuggingFace`
    * `Create an AI chatbot using /HuggingFace`

    <Warning>
      The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn't re-fetch every time.
    </Warning>

    Example prompt for optimization:

    ```
    When using /HuggingFace, save the model outputs so my app doesn't have to fetch it again
    ```
  </Step>
</Steps>

<Tip>
  Your Hugging Face integration is ready! Use `/HuggingFace` in chat to access AI models.
</Tip>
