Create runs
Answers what the arena already holds for a model on each benchmark asked about, and spends nothing.
POST /v1/benchmark/runs
| Address | https://api.hanzo.ai/v1/benchmark/runs |
| Method | POST |
| Operation | post_benchmark_runs |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Answers what the arena already holds for a model on each benchmark asked about, and spends nothing.
For a benchmark the store holds attempts for, the answer is the model's latest run — its id, when it was recorded, its accuracy and how many items it covered — served from the attempts already recorded. A measurement held is never run again from here.
For a benchmark it holds none for, nothing is queued, because this arena has no executor: the answer says so and names the harness that measures the benchmark, or, where none here does, the import a published run's items take. There is no flag to force a run, because nothing here would act on it.
Any signed-in caller may ask; a caller with no verified principal is refused 401. The answer names the caller's verified org and user — nothing in the body names either — and stores nothing.
Validation is up front and total — a request with no model is a 400, one with no benchmarks is a 400, and any benchmark id outside the catalog is a 422 naming exactly which ids were unknown.
Request
2 fields, body application/json (required).
| Field | In | Type | Required | Description |
|---|---|---|---|---|
benchmarks | body | string[] | yes | Benchmarks are the catalog ids to ask about. |
model | body | string | — | Model is the model to ask about, by the id its attempts are stored under. |
Response
| Status | Body | Meaning |
|---|---|---|
200 | benchmark.measurements | ok |
default | problem-details | refused |
200 body — 13 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
by | body | string | — | By is the verified user who asked. |
data | body | benchmark.measurement[] | — | Data is one answer per benchmark, in the order the request named them. |
data[].benchmark | body | string | — | Benchmark is the catalog id this answer is about. |
data[].harness | body | string | — | Harness is the harness that measures this benchmark for the arena, by repository. |
data[].latest | body | benchmark.RunPoint | — | |
data[].latest.at | body | string (date-time) | — | At is when the run was recorded. |
data[].latest.delta | body | number (double) | — | Delta is the change in score from the previous run for this model, absent on the first. |
data[].latest.n | body | integer (int64) | — | N is how many items the run covered. |
data[].latest.run | body | string | — | Run is the measurement id these attempts were recorded under. |
data[].latest.score | body | number (double) | — | Score is accuracy over the items this run covered, as a percentage. |
data[].note | body | string | — | Note says in a sentence what the answer means: a held measurement served rather than spent again, or nothing queued and why. |
model | body | string | — | Model is the model asked about. |
org | body | string | — | Org is the caller's verified org. |
Failure carries the platform error shape — see Errors.
Examples
hanzo benchmark runs --benchmarks '["<benchmarks>"]'import { Configuration, BenchmarkApi } from 'hanzoai';
const api = new BenchmarkApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.postBenchmarkRuns({ benchmarks: ["<benchmarks>"] });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).post_benchmark_runs(benchmarks=["<benchmarks>"])cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.BenchmarkAPI.PostBenchmarkRuns(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::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::post_benchmark_runs(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.BenchmarkApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new BenchmarkApi(client).postBenchmarkRuns();curl -X POST https://api.hanzo.ai/v1/benchmark/runs \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"benchmarks": [
"<benchmarks>"
]
}'MCP reaches benchmark through the benchmark tool, which names its 9 operations with its own verbs — this one among them, under a name only MCP 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"
}
}
}'