Keys / Together AI
TOGETHER_API_KEY
The Together AI API key your app calls models on Together with. Each key belongs to one project.
- Expires
- you choose, or never
- API
- none; dashboard only
Get it
Create one on api.together.ai/settings/projects/~current/api-keys. The steps aren't recorded yet.
Set it
TOGETHER_API_KEY=...
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
TOGETHER_API_KEY. - Check the old key's Last used column, then revoke it. It stops working within about five minutes and can't be restored.
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.