Skip to content

Reference

Replicate

Connect Replicate to Alter Vault for secure API access

Use Replicate credentials to make authenticated API calls through Alter Vault without exposing API keys in code.

PropertyValue
Provider IDreplicate
CategoryAI
Credential TypeAPI Token

Log in to Replicate

Log in to Replicate at replicate.com.

Navigate to API Tokens

Navigate to Account > API Tokens at replicate.com/account/api-tokens.

Create or copy a token

Create a new token or copy the default one (starts with r8_).

Open the Developer Portal

Go to portal.alterauth.com and navigate to the application.

Add Replicate

Go to Managed Secrets > Add Provider > Replicate.

Enter credentials

Paste your API Token into the credential field.

Save

Click Save. You’ll receive a grant_id to use with the SDK.

response = await alter_app.request(
HttpMethod.POST,
"https://api.replicate.com/v1/predictions",
grant_id="YOUR_GRANT_ID",
json={
"version": "YOUR_MODEL_VERSION",
"input": {"prompt": "A watercolor landscape"},
},
)

Alter policy rules can target these attested operations and families for operation-level and parameter-aware controls.

Operation IDFamiliesMethodProvider path
predictions.createwritePOST/v1/predictions
models.predictions.createwritePOST/v1/models/{model_owner}/{model_name}/predictions
deployments.predictions.createwritePOST/v1/deployments/{deployment_owner}/{deployment_name}/predictions
predictions.getreadGET/v1/predictions/{prediction_id}
predictions.listreadGET/v1/predictions
predictions.cancelwritePOST/v1/predictions/{prediction_id}/cancel
trainings.createwritePOST/v1/models/{model_owner}/{model_name}/versions/{version_id}/trainings
trainings.getreadGET/v1/trainings/{training_id}
trainings.listreadGET/v1/trainings
trainings.cancelwritePOST/v1/trainings/{training_id}/cancel
models.createwritePOST/v1/models
models.getreadGET/v1/models/{model_owner}/{model_name}
models.listreadGET/v1/models
models.updatewritePATCH/v1/models/{model_owner}/{model_name}
models.deletedeleteDELETE/v1/models/{model_owner}/{model_name}
models.versions.listreadGET/v1/models/{model_owner}/{model_name}/versions
models.versions.getreadGET/v1/models/{model_owner}/{model_name}/versions/{version_id}
models.versions.deletedeleteDELETE/v1/models/{model_owner}/{model_name}/versions/{version_id}
deployments.createwritePOST/v1/deployments
deployments.getreadGET/v1/deployments/{deployment_owner}/{deployment_name}
deployments.listreadGET/v1/deployments
deployments.updatewritePATCH/v1/deployments/{deployment_owner}/{deployment_name}
deployments.deletedeleteDELETE/v1/deployments/{deployment_owner}/{deployment_name}
files.createwritePOST/v1/files
files.getreadGET/v1/files/{file_id}
files.listreadGET/v1/files
files.deletedeleteDELETE/v1/files/{file_id}
account.getreadGET/v1/account
hardware.listreadGET/v1/hardware
collections.listreadGET/v1/collections
collections.getreadGET/v1/collections/{collection_slug}
searchreadGET/v1/search
webhooks.default.secret.getreadGET/v1/webhooks/default/secret

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.