Keys / Stability AI
STABILITY_API_KEY
The Stability AI API key your app generates and edits images, audio and 3D models with. It goes in the Authorization header.
- Expires
- the docs don't say
- API
- none; dashboard only
Get it
Create one on platform.stability.ai/dashboard/api-keys. The steps aren't recorded yet.
Set it
STABILITY_API_KEY=...
No official SDK reads it; your app sends it as a Bearer token. The legacy gRPC stability-sdk reads STABILITY_KEY instead. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- On the API Keys page, create a new key.
- Deploy it everywhere that reads
STABILITY_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.