Get Eval Metrics

Retrieve evaluation metrics for a specific eval template with optional filtering.

POST https://api.futureagi.com/model-hub/get-eval-metrics

Authentication

X-Api-Key API Key Required

Your Future AGI API key used to authenticate requests. You can find and manage your API keys in the Dashboard under Settings.

X-Secret-Key Secret Key Required

Your Future AGI secret key, used alongside the API key for request authentication. This is generated when you create an API key in the Dashboard.

Request body

eval_template_id string Required

UUID of the eval template to retrieve metrics for.

filters array Optional

Array of filter objects to scope which evaluation results are included in the metrics.

Response

200 OK
data object
Aggregated evaluation metrics for the specified eval template.
total_evaluations integer
Total number of evaluation results included in the metrics.
pass_rate number

Proportion of evaluations that passed, as a decimal between 0 and 1.

fail_rate number

Proportion of evaluations that failed, as a decimal between 0 and 1.

success boolean
Whether the request completed successfully.

Errors

400 Bad Request Optional
Invalid request parameters.
401 Unauthorized Optional
Invalid or missing API credentials.
500 Internal Server Error Optional
An unexpected error occurred on the server while calculating evaluation metrics.
GET /
Authentication
REQUEST
 
RESPONSE