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

# Hugging Face

<Info>
  Get started with [Hugging Face Inference Endpoints](https://endpoints.huggingface.co/)
</Info>

## Configuration

<Tabs>
  <Tab title="YAML">
    ```yaml title="config.yaml" theme={null}
    models:
      - name: <MODEL_NAME>
        provider: huggingface-inference-api
        model: <MODEL_ID>
        apiKey: <YOUR_HF_TOKEN>
        apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
    ```
  </Tab>

  <Tab title="JSON (Deprecated)">
    ```json title="config.json" theme={null}
    {
      "models": [
        {
          "title": "<MODEL_NAME>",
          "provider": "huggingface-inference-api",
          "model": "<MODEL_ID>",
          "apiKey": "<YOUR_HF_TOKEN>",
          "apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
        }
      ]
    }
    ```
  </Tab>
</Tabs>
