> For the complete documentation index, see [llms.txt](https://wiki.code-solutions.dev/serverassistantai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.code-solutions.dev/serverassistantai/providers-and-models/ai-providers.md).

# AI Providers

ServerAssistantAI supports a wide range of language models from both OpenAI and HuggingFace, including premium and free options, allowing server owners to choose the model that best fits their needs.

ServerAssistantAI supports a wide range of AI providers for both language models (LLMs) and embeddings.

## What Are Providers?

Providers are configurable components that enable ServerAssistantAI's customizability and flexibility. They serve as the backbone of the plugin's ability to integrate with various AI services, giving server owners the power to tailor the AI assistant's capabilities to their specific needs.

ServerAssistantAI offers several ways to configure and extend its functionality through a flexible provider system for embedding models, chat models (LLMs), and question detection, including [Built-in Providers](/serverassistantai/providers-and-models/ai-providers/configuring-providers.md#built-in-providers) (ready-to-use), [Addon Providers](/serverassistantai/providers-and-models/ai-providers/configuring-providers.md#addon-providers) (additional providers installed via addons), [Pre-configured OpenAI-compatible Providers](/serverassistantai/providers-and-models/ai-providers/configuring-providers.md#pre-configured-openai-compatible-providers) (built-in providers with predefined endpoint URLs), and [Custom Providers with Custom Base URLs](/serverassistantai/providers-and-models/ai-providers/configuring-providers.md#custom-providers-with-custom-base-urls) (integration with any OpenAI API-compatible service using a custom endpoint URL).

To configure a provider, simply specify its name and any required options in the `config.yml` file using the following format:

```yml
section_name:
    provider: 'openai' # Example provider
    option1: value
```

Each provider has its own set of options. Some options are shared across providers, while others may have the same name but behave differently depending on the provider. The specific functionality and configuration are determined by the selected provider.

## Supported AI Providers

<table><thead><tr><th width="141">Provider</th><th width="104">Type</th><th width="181">Functionality</th><th width="114">Pricing</th><th>Description</th></tr></thead><tbody><tr><td><a href="https://dashboard.cohere.ai/api-keys">Cohere</a></td><td><a data-footnote-ref href="#user-content-fn-1">Built-in</a></td><td>LLM &#x26; Embedding</td><td>Free &#x26; Paid</td><td>Provides access to Cohere's language and embedding models, with RAG capabilities to improve performance.</td></tr><tr><td><a href="https://platform.openai.com/api-keys">OpenAI</a></td><td><a data-footnote-ref href="#user-content-fn-2">Built-in</a></td><td>LLM &#x26; Embedding</td><td>Paid</td><td>Offers premium paid models like GPT-3.5-turbo and GPT-4.</td></tr><tr><td><a href="https://console.anthropic.com/settings/keys">Anthropic</a></td><td><a data-footnote-ref href="#user-content-fn-3">Addon</a></td><td>LLM</td><td>Paid</td><td>Enables the use of Anthropic's Claude models for LLM functionality.</td></tr><tr><td><a href="https://azure.microsoft.com/en-us/products/ai-services/openai-service">Azure-OpenAI</a></td><td><a data-footnote-ref href="#user-content-fn-4">Addon</a></td><td>LLM &#x26; Embedding</td><td>Paid</td><td>Allows integration with Azure OpenAI Service for both LLM and embedding capabilities.</td></tr><tr><td><a href="https://cloud.cerebras.ai/">CerebrasAI</a></td><td><a data-footnote-ref href="#user-content-fn-5">Pre-configured</a></td><td>LLM</td><td>Free &#x26; Paid</td><td>AI responses with the world's fastest AI inference, with speeds up to 2,500 tokens per second.</td></tr><tr><td><a href="https://deepinfra.com/docs">DeepInfra</a></td><td><a data-footnote-ref href="#user-content-fn-6">Pre-configured</a></td><td>LLM &#x26; Embedding</td><td>Paid</td><td>Run the latest ML models with ease using DeepInfra's simple REST API.</td></tr><tr><td><a href="https://fireworks.ai/">FireworksAI</a></td><td><a data-footnote-ref href="#user-content-fn-7">Pre-configured</a></td><td>LLM &#x26; Embedding</td><td>Paid</td><td>Fireworks.ai is a fast inference platform for serving generative AI models efficiently.</td></tr><tr><td><a href="https://github.com/settings/personal-access-tokens">Github-Models</a></td><td><a data-footnote-ref href="#user-content-fn-8">Pre-configured</a></td><td>LLM &#x26; Embedding</td><td>Free &#x26; Paid</td><td>Access industry-leading AI models directly on GitHub for free.</td></tr><tr><td><a href="https://aistudio.google.com/app/apikey">Google-AIStudio</a></td><td><a data-footnote-ref href="#user-content-fn-9">Addon</a></td><td>LLM &#x26; Embedding</td><td>Free &#x26; Paid</td><td>Provides access to Google's most advanced Gemini generative AI models.</td></tr><tr><td><a href="https://console.groq.com/keys">Groq</a></td><td><a data-footnote-ref href="#user-content-fn-10">Pre-configured</a></td><td>LLM</td><td>Free &#x26; Paid</td><td>Utilizes Groq's LPU (Language Processing Unit) Inference Engine for fast LLM inference.</td></tr><tr><td><a href="https://huggingface.co/settings/tokens">HuggingFace</a></td><td><a data-footnote-ref href="#user-content-fn-11">Addon</a></td><td>LLM &#x26; Embedding</td><td>Free</td><td>Provides access to thousands of open-source models for free through the HuggingFace Inference API.</td></tr><tr><td><a href="https://kolank.com/keys">Kolank</a></td><td><a data-footnote-ref href="#user-content-fn-12">Pre-configured</a></td><td>LLM</td><td>Paid</td><td>Kolank is an AI routing platform that connects to various models, ensuring high-quality responses.</td></tr><tr><td><a href="https://lmstudio.ai/">LM-Studio</a></td><td><a data-footnote-ref href="#user-content-fn-13">Custom baseURL</a></td><td>LLM &#x26; Embedding</td><td>Self-hosted</td><td>A desktop app for running local  models on your computer, supporting models from HuggingFace.</td></tr><tr><td><a href="https://localai.io/">LocalAI</a></td><td><a data-footnote-ref href="#user-content-fn-13">Custom baseURL</a></td><td>LLM &#x26; Embedding</td><td>Self-hosted</td><td>Open-source, OpenAI drop-in alternative REST API for local inferencing without a GPU.</td></tr><tr><td><a href="https://console.mistral.ai/api-keys/">Mistral-AI</a></td><td><a data-footnote-ref href="#user-content-fn-14">Addon</a></td><td>LLM &#x26; Embedding</td><td>Paid</td><td>Integrates Mistral AI models for both LLM and embedding capabilities.</td></tr><tr><td><a href="https://naga.ac/dashboard">NagaAI</a></td><td><a data-footnote-ref href="#user-content-fn-15">Pre-configured</a></td><td>LLM &#x26; Embedding</td><td>Free &#x26; Paid</td><td>Offers reliable API access to GPT-4, Gemini 1.5, Llama 3B, and various other language and embedding models.</td></tr><tr><td><a href="https://build.nvidia.com">Nvidia-Models</a></td><td><a data-footnote-ref href="#user-content-fn-16">Pre-configured</a></td><td>LLM</td><td>Free &#x26; Paid</td><td>Integrates NVIDIA's optimized AI models for efficient LLM functionality.</td></tr><tr><td><a href="https://octo.ai/">OctoAI</a></td><td><a data-footnote-ref href="#user-content-fn-17">Pre-configured</a></td><td>LLM</td><td>Paid</td><td>Harness the latest AI innovations with OctoAI's efficient, reliable, and customizable AI systems for your apps.</td></tr><tr><td><a href="https://ollama.com/">Ollama</a></td><td><a data-footnote-ref href="#user-content-fn-18">Custom baseURL</a></td><td>LLM</td><td>Self-hosted</td><td>Allows self-hosting of Ollama, a lightweight framework for running language models locally.</td></tr><tr><td><a href="https://github.com/bentoml/OpenLLM">OpenLLM</a></td><td><a data-footnote-ref href="#user-content-fn-18">Custom baseURL</a></td><td>LLM</td><td>Self-hosted</td><td>Allows developers to run any open-source LLMs (Llama 3.1, Qwen2, Phi3 and more) or custom models.</td></tr><tr><td><a href="https://openrouter.ai/">Openrouter</a></td><td><a data-footnote-ref href="#user-content-fn-19">Pre-configured</a></td><td>LLM</td><td>Free &#x26; Paid</td><td>Standardized API for switching between models and providers, prioritizing price or performance.</td></tr><tr><td><a href="https://www.perplexity.ai/settings/api">Perplexity</a></td><td><a data-footnote-ref href="#user-content-fn-20">Pre-configured</a></td><td>LLM</td><td>Paid</td><td>Perplexity AI's API enables users to use Perplexity Models and Open-Source LLMs.</td></tr><tr><td><a href="https://www.together.ai/products#inference">TogetherAI</a></td><td><a data-footnote-ref href="#user-content-fn-21">Pre-configured</a></td><td>LLM &#x26; Embedding</td><td>Paid</td><td>Fast, cost-efficient, and scalable inference for open-source models like Llama-3.</td></tr><tr><td><a href="https://platform.01.ai/">01.AI</a></td><td><a data-footnote-ref href="#user-content-fn-22">Pre-configured</a></td><td>LLM</td><td>Paid</td><td>Offers language models like Yi-1.5, delivering strong performance in  instruction-following.</td></tr><tr><td><a href="https://console.x.ai/">xAI</a></td><td><a data-footnote-ref href="#user-content-fn-23">Pre-configured</a></td><td>LLM &#x26; Embedding</td><td>Free &#x26; Paid</td><td>Brings xAI's powerful Grok models, enabling advanced text capabilities.</td></tr><tr><td>OpenAI-Variant</td><td><a data-footnote-ref href="#user-content-fn-24">Custom baseURL</a></td><td>LLM &#x26;/or Embedding</td><td>Free or Paid</td><td>Allows integration with any OpenAI API-compatible service. Users can set up custom endpoints by specifying the base URL in the <code>config.yml</code> file.</td></tr></tbody></table>

{% hint style="warning" %}
All providers that are not built-in or OpenAI variants require the installation of their respective [addons](/serverassistantai/getting-started/addons.md), which are available for free.
{% endhint %}

{% hint style="info" %}
With support for a diverse range of AI providers, ServerAssistantAI enables users to choose the models and services that best fit their needs and budget.
{% endhint %}

[^1]: **Built-in**

    **Usage:**

    Set `provider: 'cohere'` along with adding appropriate `model` name for either LLM and/or Embedding in `config.yml`. Add API key to the corresponding section in `credentials.yml` if not already present. Reload plugin to apply changes.

[^2]: **Built-in**

    **Usage:**

    Set `provider: 'openai'` along with adding appropriate `model` name for either LLM and/or Embedding in `config.yml`. Add API key to the corresponding section in `credentials.yml` if not already present. Reload plugin to apply changes.

[^3]: **Addon**

    **Usage:**

    Download addon `.jar` from `#saai-addons` Discord channel and place in `plugins/` directory. Restart server. Set `provider: 'anthropic'` along with adding appropriate `model` name for LLM and/or Embedding in `config.yml`. Add API key in the newly generated field in `credentials.yml`. Reload plugin to apply.

[^4]: **Addon**

    **Usage:**

    Download addon `.jar` from `#saai-addons` Discord channel and place in `plugins/` directory. Restart server. Set `provider: 'azure-openai'` along with adding appropriate `deployment_name` name for LLM and/or Embedding in `config.yml`. Add API key in the newly generated field in `credentials.yml`. Reload plugin to apply.

[^5]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.cerebras.ai/v1>

    **Usage:**

    Set `provider: 'cerebrasai'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^6]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.deepinfra.com/v1/openai>

    **Usage:**

    Set `provider: 'deepinfra'` along with adding appropriate `model` name for either LLM and/or Embedding in  `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^7]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.fireworks.ai/inference/v1>

    **Usage:**

    Set `provider: 'fireworksai'` along with adding appropriate `model` name for either LLM and/or Embedding in  `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^8]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://models.github.ai/inference>

    **Usage:**

    Set `provider: 'github-models'` along with adding appropriate `model` name for either LLM and/or Embedding in  `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^9]: **Addon**

    **Usage:**

    Download addon `.jar` from `#saai-addons` Discord channel and place in `plugins/` directory. Restart server. Set `provider: 'google-aistudio'` along with adding appropriate `model` name for LLM and/or Embedding in `config.yml`. Add API key in the newly generated field in `credentials.yml`. Reload plugin to apply.

[^10]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.groq.com/openai/v1>

    **Usage:**

    Set `provider: 'groq'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^11]: **Addon**

    **Usage:**

    Download addon `.jar` from `#saai-addons` Discord channel and place in `plugins/` directory. Restart server. Set `provider: 'huggingface'` along with adding appropriate `model` name for LLM and/or Embedding in `config.yml`. Add API key in the newly generated field in `credentials.yml`. Reload plugin to apply.

[^12]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://kolank.com/api/v1>

    **Usage:**

    Set `provider: 'kolank'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^13]: **OpenAI Variant (Custom baseURL)**

    **Usage:**\
    Set `provider: 'openai'` along with adding appropriate `model` name and add `base_url: 'your_custom_url'` (without including`/chat/completions` and/or `/embeddings`) under the provider field for either LLM and/or Embedding in `config.yml`. Set the appropriate `model` name and add API key to the OpenAI section in `credentials.yml`. Add random information to API key if there is no API key. Reload to apply.

[^14]: **Addon**

    **Usage:**

    Download addon `.jar` from `#saai-addons` Discord channel and place in `plugins/` directory. Restart server. Set `provider: 'mistral-ai'` along with adding appropriate `model` name for LLM and/or Embedding in `config.yml`. Add API key in the newly generated field in `credentials.yml`. Reload plugin to apply.

[^15]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.naga.ac/v1>

    **Usage:**

    Set `provider: 'nagaai'` along with adding appropriate `model` name for either LLM and/or Embedding in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^16]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://integrate.api.nvidia.com/v1>

    **Usage:**

    Set `provider: 'nvidia-models'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^17]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://text.octoai.run/v1>

    **Usage:**

    Set `provider: 'octoai'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

    * Set `provider: 'deep-infra'` in `config.yml` and reload plugin.
    * Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^18]: **OpenAI Variant (Custom baseURL)**

    **Usage:**\
    Set `provider: 'openai'` along with adding appropriate `model` name and add `base_url: 'your_custom_url'` (without including`/chat/completions`) under the provider field for LLM in `config.yml`. Set the appropriate `model` name and add API key to the OpenAI section in `credentials.yml`. Add random information to API key if there is no API key. Reload to apply.

[^19]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://openrouter.ai/api/v1>

    **Usage:**

    Set `provider: 'openrouter'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^20]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.perplexity.ai/>

    **Usage:**

    Set `provider: 'perplexity'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^21]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.together.xyz/v1>

    **Usage:**

    Set `provider: 'togetherai'` along with adding appropriate `model` name for either LLM and/or Embedding in  `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^22]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.01ww.xyz/v1>

    **Usage:**

    Set `provider: '01AI'` along with adding appropriate `model` name for LLM in `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^23]: **OpenAI Variant (Pre-configured)**

    **Endpoint URL:**

    <https://api.x.ai/v1>

    **Usage:**

    Set `provider: 'xai'` along with adding appropriate `model` name for either LLM and/or Embedding in  `config.yml` and reload plugin.

    Fill out the credentials in the newly generated field in `credentials.yml` and reload again to apply.

[^24]: **OpenAI Variant (Custom baseURL)**

    **Usage:**\
    Set `provider: 'openai-variant'` along with adding appropriate `model` name and add `base_url: 'your_custom_url'` (without including`/chat/completions` and/or `/embeddings`) under the provider field for either LLM and/or Embedding in `config.yml`. Set the appropriate `model` name and add API key to the OpenAI-Variant section in `credentials.yml`. Add random information to API key if there is no API key. Reload to apply.
