Programmatic access to AI model evaluation services
Generate an API key from your TrustModel dashboard under Settings > API Keys.
Include your API key in the X-API-Key header:
X-API-Key: tm-{env}-{key_id}_{secret}
Run an evaluation on a model:
curl -X POST /sdk/v1/evaluate/ \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model_identifier": "gpt-4o",
"evaluation_type": "quick-scan"
}'
Get available model_identifier values from /sdk/v1/models/ and evaluation_type identifiers from /sdk/v1/evaluation-types/
Get configuration options for evaluations
List available AI models for evaluation
List available vendors for custom endpoints
List evaluation types and their credit costs
Test connection to a custom API endpoint
Create a new model evaluation
List your evaluations
Get evaluation details and results
Check evaluation status
Check your credit balance
api_key_inactive - API key is disabled or expiredapi_key_credits_exhausted - API key credit limit reachedsubscription_credits_exhausted - Subscription quota exceededinsufficient_credits - Not enough credits for this operation