---
title: Use your own AI model keys
slug: intelligent-voice-agents/use-your-own-ai-model-keys
description: Use your own API keys for speech and AI models in your voice agent. Add them under Manage > Model Configuration, then pick them in Speech and Instructions.
createdAt: 2025-12-29T04:53:19.903Z
---

The **Bring Your Own Key (BYOK)** feature allows you to integrate your own API credentials for Speech-to-Text (STT), Large Language Models (LLM), and Text-to-Speech (TTS) services. By providing your own keys, you gain greater control over model usage, billing, and region-specific configurations within your Exotel VoiceBot.

### I. Creating a Model Configuration Rule

Before you can use your own keys in a bot, you must define a configuration rule in the settings.

1. **Open Model Configuration:** in the left menu, under **Manage**, click **Model Configuration**.
2. **Add a configuration:** click **Add Configuration** at the top right. The **New Model Configuration Rule** panel opens.
3. **Name Your Rule:** Under **Your Model Name**, give your rule a clear, identifiable name (e.g., "Company\_Azure\_STT").
4. **Configure Service Type:** Select the tab for the service you wish to configure:
   - **STT (Speech-to-Text):** pick your provider under **Speech**, for example Deepgram, Soniox, ElevenLabs, Smallest, Sarvam, Azure or Speechmatics.
   - **LLM (Large Language Model):** pick the LLM provider and model.
   - **TTS (Text-to-Speech):** Configure providers like Eleven Labs or Google.
5. **Enter the connection details:** the fields change with the provider. For example, Deepgram asks for a **Region** and an **API Key**; an LLM asks for an **API Key**, **Endpoint**, **Max Tokens** and **Temperature**; Google TTS asks for your service-account details.
6. **Save:** click **Add**. The rule appears in the Model Configuration list.

### II. Applying your keys to an agent

Once your configuration rules are created, you can apply them to any agent from its settings.

1. **Open the agent:** go to **Agents**, open the agent and click **Edit agent**.
2. **Go to Configure:** the **Configure** tab opens by default.
3. **Select Your Custom Rule:**
   - Open the section for the service: **Speech** has **Speech to text** and **Text to speech**; **Instructions** has **LLM model**.
   - Open the **Configuration rule** dropdown. For the LLM, use the **Providers** dropdown.
   - Select the custom rule you created in Step I (e.g., "azure-exotel").
4. **Save:** click **Save and rollout**. The new version uses your own keys.
