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

# Custom Models

## Custom Models

The Baserun prompt playground supports custom models. Any model whose API is OpenAI-compatible can be added. This includes models from HuggingFace, OpenPipe, and others.

## Walkthrough

To add a custom model, go to the Setttings page in the Baserun UI.

<Frame>
  <img src="https://mintcdn.com/baserun/sfThaUjl8v9XCswy/images/custom-model-settings.png?fit=max&auto=format&n=sfThaUjl8v9XCswy&q=85&s=bb5407b3cfc53a848b4426a97c37baee" alt="Settings" width="3568" height="1867" data-path="images/custom-model-settings.png" />
</Frame>

Then, click the "Add custom model" button.

<Frame>
  <img src="https://mintcdn.com/baserun/sfThaUjl8v9XCswy/images/custom-model-add-model.png?fit=max&auto=format&n=sfThaUjl8v9XCswy&q=85&s=d181cfd7d8fd3d2dff1126daa177135a" alt="Add custom model" width="3565" height="1879" data-path="images/custom-model-add-model.png" />
</Frame>

You will be prompted to enter a label for the model (this is up to you), the model's name (must match the provider's model name), API key, and API base. This example shows an OpenPipe fine-tuned model.

<Frame>
  <img src="https://mintcdn.com/baserun/sfThaUjl8v9XCswy/images/custom-model-form.png?fit=max&auto=format&n=sfThaUjl8v9XCswy&q=85&s=5e2d8e258af7ec62ffb82dfe0c88eb6c" alt="Add model form" width="3560" height="2008" data-path="images/custom-model-form.png" />
</Frame>

Once you've added the model, you can use it in the playground.

<Frame>
  <img src="https://mintcdn.com/baserun/sfThaUjl8v9XCswy/images/custom-model-playground.png?fit=max&auto=format&n=sfThaUjl8v9XCswy&q=85&s=67c4bf49d15b86a99914450234c62ada" alt="Add model form" width="3571" height="1872" data-path="images/custom-model-playground.png" />
</Frame>
