User

You can provision named access tokens (opens in a new tab) in Prediction Guard that authenticate your account and allow you to access your proxy endpoints and make predictions. The user API calls below allow you to confirm the validity of an access token.

Check if an access token is valid

ℹ️

When using the Python client, you should only need to provide your access token to pg.Client() once. Prediction Guard will create a config file at ~/.predictionguard to keep track of this access token for future use. You can also optionally set the environment variable PREDICTIONGUARD_TOKEN to avoid explicitly providing the access token to the pg.Client() method.