# Model Evaluations

A model evaluation captures how a model performs on a Version's test split — overall mAP, per-class metrics, confidence-threshold curves, image-embedding clustering, per-image predictions, and improvement recommendations. Evaluations are produced automatically when a training completes and can be re-triggered manually from the app.

The Model Evaluations API lets you read everything the app's evaluation page shows. Each panel in the UI maps to a dedicated endpoint:

* [List model evaluations in a workspace](/developer/rest-api/model-evaluations/list-model-evaluations.md)
* [Get one evaluation's metadata and headline metrics](/developer/rest-api/model-evaluations/get-a-model-evaluation.md)
* [Get full per-split mAP detail](/developer/rest-api/model-evaluations/map-results.md)
* [Get the confidence-threshold sweep and F1-optimal thresholds](/developer/rest-api/model-evaluations/confidence-sweep.md)
* [Get per-class performance for one split](/developer/rest-api/model-evaluations/performance-by-class.md)
* [Get the confusion matrix](/developer/rest-api/model-evaluations/confusion-matrix.md)
* [Get the image-embedding clustering (vector analysis)](/developer/rest-api/model-evaluations/vector-analysis.md)
* [Get per-image predictions](/developer/rest-api/model-evaluations/per-image-predictions.md)
* [Get model improvement recommendations](/developer/rest-api/model-evaluations/recommendations.md)

## Authentication

All endpoints require an API key with the `model-eval:read` scope. Pass it as a query parameter or as a `Bearer` token in the `Authorization` header.

## Common errors

| Status | Error code             | When                                                                      |
| ------ | ---------------------- | ------------------------------------------------------------------------- |
| `401`  | unauthenticated        | API key missing or invalid                                                |
| `404`  | `model_eval_not_found` | Evaluation does not exist or belongs to a different workspace             |
| `409`  | `model_eval_not_done`  | Evaluation has not completed; the panel data is not yet available         |
| `400`  | `invalid_confidence`   | `confidence` query parameter is not an integer in `[0, 100]`              |
| `400`  | `invalid_split`        | `split` query parameter is not one of the allowed values for the endpoint |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roboflow.com/developer/rest-api/model-evaluations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
