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

# Deepinfra

> Add and configure Deepinfra models in TrueFoundry's AI Gateway

### Adding Models

This section explains the steps to add Deepinfra models and configure the required access controls.

<Steps>
  <Step title="Navigate to Deepinfra Models in AI Gateway">
    From the TrueFoundry dashboard, navigate to `AI Gateway` > `Models` and select `Deepinfra`.

    <Frame caption="Navigate to Deepinfra Models">
      <img src="https://mintcdn.com/truefoundry/-g83eZw0cKb4T5XU/images/docs/Screenshot2025-07-23at2.37.53PM-min.png?fit=max&auto=format&n=-g83eZw0cKb4T5XU&q=85&s=d2604d42e3bccc9535d6a5b035b37e23" alt="Navigating to Deepinfra Provider Account in AI Gateway" width="3590" height="2002" data-path="images/docs/Screenshot2025-07-23at2.37.53PM-min.png" />
    </Frame>
  </Step>

  <Step title="Add Deepinfra Account Details">
    Click `Add Deepinfra Account`. Give a unique name to your Deepinfra account and complete the form with your Deepinfra authentication details (API Key). Add collaborators to your account, this will give access to the account to other users/teams. Learn more about access control [here](/docs/ai-gateway/gateway-access-control).

    <Frame caption="Deepinfra Model Account Form">
      <img src="https://mintcdn.com/truefoundry/-g83eZw0cKb4T5XU/images/docs/Screenshot2025-07-23at2.59.47PM-min.png?fit=max&auto=format&n=-g83eZw0cKb4T5XU&q=85&s=b19c38e194906c72e4715968a433cdde" alt="Deepinfra account configuration form with fields for API key and collaborators" width="2532" height="2014" data-path="images/docs/Screenshot2025-07-23at2.59.47PM-min.png" />
    </Frame>
  </Step>

  <Step title="Add Models">
    Select the model from the list. If you see the model you want to add in the list of checkboxes, we support public model cost for these models.

    <Note>
      (Optional) If the model you are looking for is not present in the options, you can add it using `+ Add Model` at the end of list (scroll down to see the option) by filling the form.
    </Note>
  </Step>
</Steps>

### Inference

After adding the models, you can perform inference using an OpenAI-compatible API via the Playground or by integrating with your own application.

<img src="https://mintcdn.com/truefoundry/jw406UAsc7ErYUq8/images/Screenshot2025-07-23at3.32.20PM-min.png?fit=max&auto=format&n=jw406UAsc7ErYUq8&q=85&s=018dfeba329c1ba6586b09fe1730d2d0" alt="Code Snippet and Try in Playground Buttons for each Deepinfra model" width="3594" height="2006" data-path="images/Screenshot2025-07-23at3.32.20PM-min.png" />
