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

# Connect ElevenLabs to the Context Router

> Configure an ElevenLabs Conversational AI agent to use SLNG's OpenAI-compatible Context Router as a custom LLM, with response caching.

ElevenLabs Conversational AI lets an agent use a **Custom LLM**: an OpenAI-compatible endpoint you supply instead of a built-in model. Point that at the SLNG [Context Router](https://slng.mintlify.site/context-router.md) and your agent keeps its voice, prompt, and tools while gaining response caching.

**Prerequisites:**

* An [ElevenLabs](https://elevenlabs.io) account with a Conversational AI agent you can edit.
* An SLNG key from [app.slng.ai/api-keys](https://app.slng.ai/api-keys).
* Your region-specific router base URL from your SLNG contact (looks like `https://[region].context-router.slng.ai/v1`).

## Placeholders

| Placeholder | Replace with |
| - | - |
| `SLNG_API_KEY` | An SLNG key from [app.slng.ai/api-keys](https://app.slng.ai/api-keys) |
| `https://india.context-router.slng.ai/v1` | The exact region-specific base URL SLNG gave you |

## Dashboard setup

**1. Open your agent's LLM settings**

In the ElevenLabs dashboard, go to **Conversational AI**, open your agent, and find the **LLM** (or **Secondary LLM**) section of its configuration.

![Screenshot 2026 07 28 At 09 22 22](https://mintcdn.com/slng/SmJQakEUJwFNsCYg/images/Screenshot-2026-07-28-at-09.22.22.png?fit=max\&auto=format\&n=SmJQakEUJwFNsCYg\&q=85\&s=0b2dca3d49cdabf38e8ca0c48f34b5bb)

ElevenLabs agent LLM settings

**2. Choose Custom LLM**

Select **Custom LLM** as the model provider. Set:

* **Server URL / Base URL:** `https://india.context-router.slng.ai/v1`
* **Model ID:** `slng/auto`
* **API key:** `SLNG_API_KEY` (stored as a secret)

ElevenLabs calls `<base-url>/chat/completions` with your key as a Bearer token, which is exactly what the router expects.

![Screenshot 2026 07 28 At 09 23 42](https://mintcdn.com/slng/SmJQakEUJwFNsCYg/images/Screenshot-2026-07-28-at-09.23.42.png?fit=max\&auto=format\&n=SmJQakEUJwFNsCYg\&q=85\&s=fa1e0eb8f7fd64d22aa42d5be9d7e83f)

Custom LLM configuration

**3. Save and test the agent**

Save the agent and start a test conversation. SLNG now answers every turn.

## Verify it is routing

Check the agent's conversation logs, or replay a turn directly with a cURL request.

## Related

> **[Context Router](https://slng.mintlify.site/llm-router)**
>
> Endpoint, auth, request body, and response caching.

> **[Voice platform integrations](https://slng.mintlify.site/integrations/overview.md)**
>
> Other ways to route your stack through SLNG.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.