Keys / Fireworks AI
FIREWORKS_API_KEY
The Fireworks API key your app calls models on Fireworks with.
- Expires
- you choose, up to 1 year; 1 year by default
- API
- create, list and delete
Get it
Create one on app.fireworks.ai/settings/users/api-keys. The steps aren't recorded yet.
Set it
FIREWORKS_API_KEY=...
The Fireworks Python SDK reads 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 before the old one expires. For a service account, create it for the same service account.
- Deploy it everywhere that reads
FIREWORKS_API_KEY. - 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.