# Bring your own AI keys

> What an API key is, where to get one for each provider, and how we keep your keys safe.

Source: /help/api-keys

Your agent uses AI services from other companies to listen, think and speak. You connect those services with your own **API keys**, and you pay the providers directly at their normal prices. We never add a markup.

## What is an API key? [#what-is-an-api-key]

An API key is a long, secret code that a provider gives you. It works like a password that lets your agent use your account with that provider. Anyone who has it can use your account, so keep it private.

## Add a key [#add-a-key]

1. In the sidebar, open **API keys**.
2. Find the provider and select **Get a key**. The provider's website opens.
3. Sign in or create an account there, then create a new key and copy it.
4. Back here, select **Add key** next to the provider.
5. Paste the key and select **Save key**.

From then on you only see the last four characters, like `•••• 4f2a`. To change a key, select **Replace**.

<Callout type="idea" title="Tip">
Give the key a name on the provider's site, like "Voice agents", so you recognise it later.
</Callout>

## Where to get a key [#where-to-get-a-key]

| Provider | Used for | Free option | Where to get the key |
|---|---|---|---|
| **Deepgram** | Listening and speaking | $200 free credit, no card needed | [console.deepgram.com](https://console.deepgram.com/) |
| **Google Gemini** | Thinking | Free tier with usage limits | [aistudio.google.com](https://aistudio.google.com/apikey) |
| **Groq** | Thinking and listening | Free plan with usage limits | [console.groq.com](https://console.groq.com/keys) |
| **OpenRouter** | Thinking (hundreds of models) | Free models whose name ends in `:free` | [openrouter.ai](https://openrouter.ai/keys) |
| **AssemblyAI** | Listening | $50 one-time credit | [assemblyai.com](https://www.assemblyai.com/dashboard) |
| **Cartesia** | Speaking | 20,000 characters a month | [play.cartesia.ai](https://play.cartesia.ai/keys) |
| **OpenAI** | Thinking | None | [platform.openai.com](https://platform.openai.com/api-keys) |
| **Anthropic** | Thinking | None | [console.anthropic.com](https://console.anthropic.com/settings/keys) |
| **ElevenLabs** | Speaking | None for API use | [elevenlabs.io](https://elevenlabs.io/app/settings/api-keys) |

<Callout type="idea" title="Tip">
Want to spend nothing while you try things out? Use **Deepgram** (free credit) for listening and speaking, plus **Groq** or **Google Gemini** for thinking.
</Callout>

### What keys look like [#what-keys-look-like]

We check the format before saving, so a typo is caught early:

- **Google Gemini** keys start with `AIza`.
- **OpenAI** keys start with `sk-`.
- **Anthropic** keys start with `sk-ant-`.
- **Groq** keys start with `gsk_`.
- **OpenRouter** keys start with `sk-or-`.
- **Deepgram** keys are 40 characters long.

## How we protect your keys [#how-we-protect-your-keys]

- **Encrypted.** Keys are encrypted with AES-256-GCM, a bank-grade standard, before they are stored.
- **Never shown again.** After you save a key, nobody can see it in full, including you and our team. You only see the last four characters.
- **Kept on our servers.** A key is unlocked only on our servers at the moment a call starts. It is never sent back to your browser and never written to logs.
- **Only sent to its own provider.** Your Deepgram key only ever goes to Deepgram, and so on.

<Callout title="Note">
If you think a key has leaked, delete it on the provider's website and add a new one here with **Replace**.
</Callout>

Only admins and owners can add or replace keys. Saving a key for a provider that already has one replaces the old key.

<Callout type="warn" title="Available soon">
A **Test key** button and removing a key are on their way. Until then, replace a key by saving a new one.
</Callout>
