Keys / Deepgram
DEEPGRAM_API_KEY
The Deepgram API key your app transcribes speech, generates speech and runs voice agents with. Each key belongs to a project and to the user who created it.
- Expires
- you choose, or never
- API
- list, create, get and delete, with a key whose role can manage keys
Get it
Create one on console.deepgram.com. The steps aren't recorded yet.
Set it
DEEPGRAM_API_KEY=...
The Python and JavaScript SDKs read it from this variable when you don't pass a key. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- In the project's Settings > API Keys, create a new key with the same role and tags as the old one.
- Deploy it everywhere that reads
DEEPGRAM_API_KEY. - Filter Usage > Logs by the old key's ID to check that it has no recent requests, then delete it.
- Removing the user who created a key disables the key. Create production keys from an account that stays.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.