---
title: "Connect an LLM provider"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/sofi/models-and-settings/connect-an-llm-provider/
type: task
application: sofi_core
last_updated: 2026-12-03
commit: 6777698daac5
---


Add a language model by hand when you use a second provider, or a model **AI Setup** does not offer. For your main provider, use [Set up AI with AI Setup](page:sofi/models-and-settings/set-up-ai) instead.

## Before you begin

- You need the `administrator` role.
- Have an account with the provider and its credential. This is an API key, or for AWS Bedrock an access key ID and secret access key.

## Steps

<Steps>
  <Step>
    In the **Administration** workspace, go to **Integrations → API access → System API outbound tokens**. Open the shipped token for your provider, enter the credential and save.

    <Image src="asset:screenshots/admin/sofi-models-and-settings-connect-an-llm-provider/outbound-tokens-menu.png">The System API outbound tokens item in the Integrations menu.</Image>
  </Step>
  <Step>
    Go to **AI models, cost & value → Models & settings → LLM models** and select **New**.

    <Image src="asset:screenshots/admin/sofi-models-and-settings-connect-an-llm-provider/llm-models-menu.png">The LLM models item in the AI models, cost & value menu.</Image>
  </Step>
  <Step>
    Enter a **Name**, choose the **Provider** and enter the **Model** identifier the provider uses. For an Azure deployment, enter the deployment name.
  </Step>
  <Step>
    Set **Model Type**. Use **Chat** for assistants and prompts, and **Embedding** for embeddings. **Decision Model** answers typed questions for AI decisions and is never used for chat.
  </Step>
  <Step>
    On the **Configuration & Connectivity** tab, set **Outbound API Token** to the token from step 1. Fill in **Base URL** if the provider table below has no default. Select **Active**.

    <Image src="asset:screenshots/admin/sofi-models-and-settings-connect-an-llm-provider/llm-model-record.png">An LLM model record with its provider, model identifier, model type and the Configuration & Connectivity tab.</Image>
  </Step>
  <Step>
    Save the record, then select **Test Connection** to send a request to the model.
  </Step>
  <Step>
    Go to **AI models, cost & value → Models & settings → Settings**. Choose the new model for the roles Sofi should use it for.
  </Step>
</Steps>

### Providers

When a model has no **Outbound API Token**, Servicely uses the shipped token for its provider. If that token has no key, Servicely reads the provider's API key from an environment variable on the server.

<!-- source: platform/data/AvailableValue?Table=SystemLLMModel&Field=Provider; platform/data/SystemAPIOutboundToken -->
| Provider | Shipped token | Default base URL |
| --- | --- | --- |
| OpenAI (Chat Completions API) | OpenAI | `https://api.openai.com/v1` |
| OpenAI (Responses API) | OpenAI | `https://api.openai.com/v1` |
| Azure OpenAI (Chat Completions API) | Azure OpenAI | None, set per token |
| Microsoft Foundry | Azure OpenAI | None, set per token |
| AWS Bedrock | AWS Bedrock | None, set by region |
| Anthropic | Anthropic | Provider default |
| Groq | Groq | `https://api.groq.com/openai/v1` |
| Ollama | None | None, set on the model |
| Openrouter | Openrouter | `https://openrouter.ai/api/v1` |
| Google | Google AI Gemini | `https://generativelanguage.googleapis.com/v1beta` |
| Cerebras | Cerebras | `https://api.cerebras.ai/v1` |
| Servicely | None | Servicely's internal service |
| LiteLLM | None | None, set on the model |
| TypeSafe | TypeSafe | None; serves decision models only |

## Result

The models are active, and Sofi's assistants, agents and prompts use them for the roles you set. Each call is recorded in **AI models, cost & value → Usage & Cost → LLM usage logs**, with its model, tokens and cost.

## Related

- [Set up AI with AI Setup](page:sofi/models-and-settings/set-up-ai)
- [How Sofi is built](page:sofi/how-sofi-is-built)
- [AI prompts](page:sofi/assistants/ai-prompts)
- [Sofi properties](page:sofi/models-and-settings/sofi-settings-and-properties)
- [Sofi data handling and security](page:sofi/data-handling)
