Keys / Groq
GROQ_API_KEY
The GroqCloud API key your app calls Groq models with. Each key belongs to one project.
- Starts with
gsk_- Expires
- the docs don't say
- API
- none; console only
Get it
Create one on console.groq.com/keys. The steps aren't recorded yet.
Set it
GROQ_API_KEY=gsk_...
The Python and TypeScript 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
- Create a new key in the same project.
- Deploy it everywhere that reads
GROQ_API_KEY. - Check that requests succeed with the new key, then revoke the old one in the console.
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.