Keys / Replicate
REPLICATE_API_TOKEN
The Replicate API token your app runs models on Replicate with.
- Starts with
r8_- Expires
- the docs don't say
- API
- none; web only
Get it
Create one on replicate.com/account/api-tokens. The steps aren't recorded yet.
Set it
REPLICATE_API_TOKEN=r8_...
The Python and JavaScript client libraries read it from this variable when you don't pass a token. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- Create a new token.
- Deploy it everywhere that reads
REPLICATE_API_TOKEN. - Check that requests succeed with the new token, then disable 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.