> ## 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.

# DeepInfra

> Configure DeepInfra with Gobi to access low-cost inference for open-source models like Mixtral-8x7B-Instruct, including API setup instructions

<Tip>
  **Discover Deep Infra models [here](https://hub.gourmand.dev/deepinfra)**
</Tip>

<Info>
  Get an API key from the [Deep Infra](https://deepinfra.com/)
</Info>

## Configuration

<Tabs>
  <Tab title="YAML">
    ```yaml title="config.yaml" theme={null}
    models:
      - name: <MODEL_NAME>
        provider: deepinfra
        model: <MODEL_ID>
        apiKey: <YOUR_DEEPINFRA_API_KEY>
    ```
  </Tab>

  <Tab title="JSON (Deprecated)">
    ```json title="config.json" theme={null}
    {
      "models": [
        {
          "title": "<MODEL_NAME>",
          "provider": "deepinfra",
          "model": "<MODEL_ID>",
          "apiKey": "<YOUR_DEEPINFRA_API_KEY>"
        }
      ]
    }
    ```
  </Tab>
</Tabs>

<Info>
  **Check out a more advanced configuration [here](https://hub.gourmand.dev/deepinfra/qwen-qwen2.5-coder-32b-instruct?view=config)**
</Info>
