We've added a way to securely pass sensitive values to models.
In Cog v0.9.7 and later,
you can annotate an input with the Secret
type
to signify that an input holds sensitive information,
like a password or API token.
Replicate treats secret inputs differently throughout its system.
When you create a prediction on Replicate,
any value passed to a Secret
input is redacted after being sent to the model.
Before
After
Caution: Passing secret values to untrusted models can result in unintended disclosure, exfiltration, or misuse of sensitive data.