Authentication
Send a token as Authorization: Bearer <token>. Read API conventions.
Endpoints
| Method | Path | Purpose | Role |
|---|---|---|---|
| GET | /api/v1/endpoints | List the model endpoints that you can evaluate | Any |
| GET | /api/v1/benchmarks | List benchmarks | Any |
| GET | /api/v1/benchmarks/{benchmark_id} | Get a benchmark | Any |
| POST | /api/v1/eval/run | Run benchmarks against a model | admin |
| POST | /api/v1/eval/safety-eval | Run the safety evaluation | admin |
| POST | /api/v1/eval/compare | Compare models | Any |
| POST | /api/v1/benchmarks/compare | Compare results on benchmarks | Any |
| GET | /api/v1/results | List results | Any |
| GET | /api/v1/results/{eval_id} | Get a result | Any |
| POST | /api/v1/results/batch-delete | Delete more than one result | admin |
| GET | /api/v1/leaderboard | Model leaderboard | Any |
| GET | /api/v1/models/{model_id}/summary | Summary for one model | Any |
| GET | /api/v1/models/{model_id}/history | Result history for one model | Any |
| GET | /api/v1/benchmarks/{benchmark_id}/export | Export the results of a benchmark | Any |
| GET | /api/v1/health | Health check | None |
Run an evaluation
curl https://eval.example.gov/api/v1/eval/run \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"benchmark_ids": ["arabic_reasoning", "gcc_government_knowledge"], "endpoint_id": "ministry-llm", "temperature": 0.0}'
| Field | Type | Required | Meaning |
|---|---|---|---|
benchmark_ids | array | Yes | Up to 20 benchmark identifiers from GET /api/v1/benchmarks |
endpoint_id | string | Yes | The id of a registered endpoint from GET /api/v1/endpoints |
temperature | number | No | 0 to 2. The default is 0. |
The run continues in the background. Get the results from GET /api/v1/results.
Errors
| Status | Cause |
|---|---|
| 403 | Your role cannot start runs or delete results |
| 404 | A benchmark does not exist |
| 422 | The endpoint is not registered |
| 503 | No judge model or Guard connection is set up |