Keys / AssemblyAI

ASSEMBLYAI_API_KEY

The AssemblyAI API key your app transcribes and analyzes audio with. Each key belongs to a project.

Expires
the docs don't say
API
none; dashboard only

Get it

Create one on www.assemblyai.com/dashboard/api-keys. The steps aren't recorded yet.

Set it

ASSEMBLYAI_API_KEY=...

The Python SDK reads it from this variable when you don't set a key. The Node.js SDK doesn't; your app passes it as apiKey. Or keep it out of .env with keypin: keypin run -- npm run dev

Replace it

  1. In Workspace > Manage > API Keys, create a new key in the same project. Your plan limits how many keys you can have.
  2. Deploy it everywhere that reads ASSEMBLYAI_API_KEY.
  3. Check that no app still uses the old key, then delete it. Deleting can't be undone, and a project must keep at least one key.

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