- Model deployment via Truss CLI
- Inference API calls (
truss predict
,/wake
requests) - Model management via the management API
- Metrics export via the
/metrics
endpoint
API key scope: Personal vs Workspace
There are two types of API keys on Baseten: Personal API Keys:- Tied to a user account.
- Inherit full workspace permissions.
- Actions are linked to the specific user.
- Shared across a workspace.
- Can have full access or be restricted to specific models.
Use personal keys for testing and workspace keys for automation and production.
Using API keys with Truss
Add your API key to~/.trussrc
for authentication:
~/.trussrc
Using API keys with endpoints
Include the API key in request headers:Tips for managing API keys
Best practices for API key use apply to your Baseten API keys:- Always store API keys securely.
- Never commit API keys to your codebase.
- Never share or leak API keys in notebooks or screenshots.
- Name your API keys to keep them organized.