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

# API Keys

> Configure API keys for LLM, TTS, STT, framework, and integration providers.

# API Keys

Voiceblox uses a `.env.local` file to store all provider API keys. Keys are loaded at server startup — restart the dev server after making changes.

## Core keys

These are required for full functionality:

| Key                             | Provider                                        | Purpose                                                       |
| ------------------------------- | ----------------------------------------------- | ------------------------------------------------------------- |
| `LIVEKIT_URL`                   | [LiveKit Cloud](https://cloud.livekit.io)       | WebSocket URL for rooms                                       |
| `LIVEKIT_API_KEY`               | LiveKit Cloud                                   | Room management auth                                          |
| `LIVEKIT_API_SECRET`            | LiveKit Cloud                                   | Room management auth                                          |
| `BUILDER_STT_DEEPGRAM_API_KEY`  | [Deepgram](https://deepgram.com)                | Voice input in builder (when `BUILDER_STT_PROVIDER=deepgram`) |
| `BUILDER_STT_GEMINI_API_KEY`    | [Google AI Studio](https://aistudio.google.com) | Voice input in builder (when `BUILDER_STT_PROVIDER=gemini`)   |
| `BUILDER_LLM_ANTHROPIC_API_KEY` | [Anthropic](https://console.anthropic.com)      | AI flow generator (when `BUILDER_LLM_PROVIDER=anthropic`)     |
| `BUILDER_LLM_GEMINI_API_KEY`    | [Google AI Studio](https://aistudio.google.com) | AI flow generator (when `BUILDER_LLM_PROVIDER=gemini`)        |

## LLM providers

| Key                  | Provider                                             |
| -------------------- | ---------------------------------------------------- |
| `OPENAI_API_KEY`     | [OpenAI](https://platform.openai.com)                |
| `ANTHROPIC_API_KEY`  | [Anthropic](https://console.anthropic.com)           |
| `GEMINI_API_KEY`     | [Google AI Studio](https://aistudio.google.com)      |
| `GROQ_API_KEY`       | [Groq](https://console.groq.com)                     |
| `TOGETHER_API_KEY`   | [Together AI](https://api.together.xyz)              |
| `MOONSHOT_API_KEY`   | [Moonshot AI](https://platform.moonshot.cn)          |
| `DEEPSEEK_API_KEY`   | [DeepSeek](https://platform.deepseek.com)            |
| `MISTRALAI_API_KEY`  | [Mistral AI](https://console.mistral.ai)             |
| `CEREBRAS_API_KEY`   | [Cerebras](https://cloud.cerebras.ai)                |
| `FIREWORKS_API_KEY`  | [Fireworks AI](https://fireworks.ai)                 |
| `PERPLEXITY_API_KEY` | [Perplexity](https://www.perplexity.ai/settings/api) |
| `XAI_API_KEY`        | [xAI](https://x.ai)                                  |
| `OPENROUTER_API_KEY` | [OpenRouter](https://openrouter.ai)                  |
| `OVHCLOUD_API_KEY`   | [OVHcloud](https://endpoints.ai.cloud.ovh.net)       |
| `BEDROCK_API_KEY`    | [Amazon Bedrock](https://aws.amazon.com/bedrock)     |
| `LETTA_API_KEY`      | [Letta](https://letta.ai)                            |
| `OLLAMA_API_KEY`     | [Ollama](https://ollama.ai) (local)                  |
| `TELNYX_API_KEY`     | [Telnyx](https://telnyx.com)                         |

## TTS providers

| Key                  | Provider                            |
| -------------------- | ----------------------------------- |
| `ELEVENLABS_API_KEY` | [ElevenLabs](https://elevenlabs.io) |
| `CARTESIA_API_KEY`   | [Cartesia](https://cartesia.ai)     |
| `DEEPGRAM_API_KEY`   | [Deepgram](https://deepgram.com)    |
| `OPENAI_API_KEY`     | OpenAI (also used for TTS)          |
| `NEUPHONIC_API_KEY`  | [Neuphonic](https://neuphonic.com)  |
| `RESEMBLE_API_KEY`   | [Resemble AI](https://resemble.ai)  |
| `RIME_API_KEY`       | [Rime](https://rime.ai)             |
| `INWORLD_API_KEY`    | [Inworld](https://inworld.ai)       |
| `GROQ_API_KEY`       | Groq (also used for TTS)            |

## STT providers

| Key                  | Provider                                 |
| -------------------- | ---------------------------------------- |
| `DEEPGRAM_API_KEY`   | [Deepgram](https://deepgram.com)         |
| `OPENAI_API_KEY`     | OpenAI Whisper                           |
| `GROQ_API_KEY`       | Groq Whisper                             |
| `ASSEMBLYAI_API_KEY` | [AssemblyAI](https://www.assemblyai.com) |
| `CARTESIA_API_KEY`   | Cartesia (also used for STT)             |
| `ELEVENLABS_API_KEY` | ElevenLabs (also used for STT)           |
| `OVHCLOUD_API_KEY`   | OVHcloud (also used for STT)             |
| `FAL_API_KEY`        | [fal.ai](https://fal.ai)                 |
| `GLADIA_API_KEY`     | [Gladia](https://gladia.io)              |
| `SONIOX_API_KEY`     | [Soniox](https://soniox.com)             |

## Integration keys

| Key           | Provider                              |
| ------------- | ------------------------------------- |
| `EXA_API_KEY` | [Exa.ai](https://exa.ai) (web search) |

## LiveKit inference gateway

If you don't have a direct API key for a provider, LiveKit's inference gateway can proxy requests for supported models. Set your LiveKit credentials and leave the provider API key blank — Voiceblox falls back to inference automatically.

## Managing keys in the UI

You can also set keys through the **Settings** panel in the builder (gear icon). Keys are written to `.env.local` on the server and take effect immediately without a restart.
