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

# External Models

<Info>
  Before defining a custom external model provider, check your project settings to see if the
  provider you're looking for is already supported.
</Info>

To use a custom external model from a cloud provider that OpenPipe doesn't support, you can add an external model provider to your project. External models can be used for the following purposes:

* [Proxying chat completions](/features/chat-completions/external-models)
* [Filtering and relabeling your data](/features/evaluations/head-to-head)
* [Evaluating outputs through criteria](/features/criteria/quick-start)

The instructions below demonstrate how to add a DeepSeek (OpenAI Compatible) and Azure provider to your project.

### Creating an external model provider

Find the **External Model Providers** section of your project settings, and click the **Add Provider** button.

<Frame>
  <img src="https://mintcdn.com/openpipe/yLyh_RHELnvU-7tP/images/external-models/add-provider-button.png?fit=max&auto=format&n=yLyh_RHELnvU-7tP&q=85&s=3c9357c61d9b789bfd7ac0a6bdadca10" alt="" width="2372" height="342" data-path="images/external-models/add-provider-button.png" />
</Frame>

Give your custom provider a slug, API key, and add a custom base url if necessary. The provider slug should be unique,
and will be used when we proxy requests to models associated with this provider.

<Tabs>
  <Tab title="DeepSeek (OpenAI Compatible)">
    <Frame>
      <img src="https://mintcdn.com/openpipe/yLyh_RHELnvU-7tP/images/external-models/add-provider-modal-deepseek.png?fit=max&auto=format&n=yLyh_RHELnvU-7tP&q=85&s=5d85f0dbfd82518104c6e4ae47848b8e" alt="" width="1788" height="1120" data-path="images/external-models/add-provider-modal-deepseek.png" />
    </Frame>
  </Tab>

  <Tab title="Azure Endpoint">
    <Frame>
      <img src="https://mintcdn.com/openpipe/yLyh_RHELnvU-7tP/images/external-models/add-provider-modal-azure.png?fit=max&auto=format&n=yLyh_RHELnvU-7tP&q=85&s=0620abdffd3adeaa8f86bec06f36615f" alt="" width="1784" height="1202" data-path="images/external-models/add-provider-modal-azure.png" />
    </Frame>
  </Tab>
</Tabs>

### Adding a model to the external provider

To add a model to the provider you're creating, click the <b>Add Model</b> button.

<Frame>
  <img src="https://mintcdn.com/openpipe/yLyh_RHELnvU-7tP/images/external-models/add-model-button.png?fit=max&auto=format&n=yLyh_RHELnvU-7tP&q=85&s=3357b16c21ab8347f351f97b91a620ef" alt="" width="1722" height="364" data-path="images/external-models/add-model-button.png" />
</Frame>

Provide a slug that matches the model you'd like to call on your external provider. To call <b>gpt-4o-2024-08-06</b> on Azure for instance, the slug should be `gpt-4o-2024-08-06`.

<Tabs>
  <Tab title="DeepSeek (OpenAI Compatible)">
    <Frame>
      <img src="https://mintcdn.com/openpipe/yLyh_RHELnvU-7tP/images/external-models/add-model-row-deepseek.png?fit=max&auto=format&n=yLyh_RHELnvU-7tP&q=85&s=334cf4d0170dbccfeebde8bdd475f239" alt="" width="1770" height="648" data-path="images/external-models/add-model-row-deepseek.png" />
    </Frame>
  </Tab>

  <Tab title="Azure Endpoint">
    <Frame>
      <img src="https://mintcdn.com/openpipe/yLyh_RHELnvU-7tP/images/external-models/add-model-row-azure.png?fit=max&auto=format&n=yLyh_RHELnvU-7tP&q=85&s=ab0f65b68bcf5b831b0e621885358bcb" alt="" width="1738" height="636" data-path="images/external-models/add-model-row-azure.png" />
    </Frame>
  </Tab>
</Tabs>

Setting input cost and output cost is optional, but can be helpful for showing relative costs in the [evals](/features/evaluations) page.

We currently support custom external
models for providers with openai and azure-compatible endpoints. If you'd like support for an external provider with a different API format, send a request to [hello@openpipe.ai](mailto:hello@openpipe.ai).
