Keys / ElevenLabs

ELEVENLABS_API_KEY

The ElevenLabs API key your app calls text to speech, speech to text and the other audio APIs with.

Expires
you choose, or never; workspaces can require an expiry
API
create, list, update and delete service account keys

Get it

Create one on elevenlabs.io/app/api/api-keys. The steps aren't recorded yet.

Set it

ELEVENLABS_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

  1. Create a new key with the same permissions as the old one. For a service account key, create it for the same service account.
  2. Deploy it everywhere that reads ELEVENLABS_API_KEY.
  3. Check that requests succeed with the new key, then delete the old one.

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.

Sources, checked 2026-11-16