Returns each model's measured score per run over time, oldest first, with the…
Returns each model's measured score per run over time, oldest first, with the change between runs.
GET /v1/benchmark/history
| Address | https://api.hanzo.ai/v1/benchmark/history |
| Method | GET |
| Operation | get_benchmark_history |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns each model's measured score per run over time, oldest first, with the change between runs.
This is the counterweight to a leaderboard: the board shows the latest run because that is what "how good is it" means, and a single latest number cannot distinguish a model that has always been strong from one that just improved, or from one that regressed after a provider changed something. Both matter for routing, and only one of them is visible on a board.
Runs with no id — attempts recorded before runs existed — group under the empty run, which is honestly what they are: one undated measurement.
Request
2 fields.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
Benchmark | query | string | — | Benchmark is the catalog id to read, defaulting to gpqa_diamond. |
Model | query | string | — | Model filters to one model. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | historyOut | ok |
200 body — 11 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
benchmark | body | string | — | Benchmark is the catalog id these histories are about. |
data | body | ModelHistory[] | — | Data is one entry per model, ordered by model name. |
data[].model | body | string | — | Model is the system these runs measured. |
data[].points | body | RunPoint[] | — | Points is every run, oldest first. |
data[].points[].at | body | string (date-time) | — | At is when the run was recorded. |
data[].points[].delta | body | number | — | Delta is the change in score from the previous run for this model, absent on the first. |
data[].points[].n | body | integer | — | N is how many items the run covered. |
data[].points[].run | body | string | — | Run is the measurement id these attempts were recorded under. |
data[].points[].score | body | number | — | Score is accuracy over the items this run covered, as a percentage. |
data[].trend | body | number | — | Trend is the change from the first run to the last, absent when there has only been one. |
total | body | integer | — | Total is how many models Data holds. |
Failure carries the platform error shape — see Errors.
Examples
hanzo benchmark historyimport { Configuration, BenchmarkApi } from 'hanzoai';
const api = new BenchmarkApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getBenchmarkHistory();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BenchmarkApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = BenchmarkApi(client).get_benchmark_history()cfg := cloud.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := cloud.NewAPIClient(cfg)
resp, _, err := client.BenchmarkAPI.GetBenchmarkHistory(context.Background()).Execute()
if err != nil {
return err
}use hanzo_cloud::apis::{configuration::Configuration, benchmark_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = benchmark_api::get_benchmark_history(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BenchmarkApi;
ApiClient client = new ApiClient();
client.setRequestInterceptor(b -> b.header("Authorization", "Bearer " + System.getenv("HANZO_API_KEY")));
var result = new BenchmarkApi(client).getBenchmarkHistory();curl https://api.hanzo.ai/v1/benchmark/history \
-H "Authorization: Bearer $HANZO_API_KEY"The door reaches benchmark through the benchmark tool, which names its 6 operations with its own verbs — this one among them, under a name only the door declares. describe explains any of them:
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "describe",
"arguments": {
"op": "get_benchmark_catalog"
}
}
}'How is this guide?