Use your own AI model keys
1 min
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.
- Open Model Configuration: in the left menu, under Manage, click Model Configuration.
- Add a configuration: click Add Configuration at the top right. The New Model Configuration Rule panel opens.
- Name Your Rule: Under Your Model Name, give your rule a clear, identifiable name (e.g., "Company_Azure_STT").
- 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.
- 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.
- 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.
- Open the agent: go to Agents, open the agent and click Edit agent.
- Go to Configure: the Configure tab opens by default.
- 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").
- Save: click Save and rollout. The new version uses your own keys.