Create runs

Answers what the arena already holds for a model on each benchmark asked about, and spends nothing.

POST /v1/benchmark/runs

Addresshttps://api.hanzo.ai/v1/benchmark/runs
MethodPOST
Operationpost_benchmark_runs
AuthAuthorization: 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).

FieldInTypeRequiredDescription
benchmarksbodystring[]yesBenchmarks are the catalog ids to ask about.
modelbodystring—Model is the model to ask about, by the id its attempts are stored under.

Response

StatusBodyMeaning
200benchmark.measurementsok
defaultproblem-detailsrefused

200 body — 13 fields.

FieldInTypeAlwaysDescription
bybodystring—By is the verified user who asked.
databodybenchmark.measurement[]—Data is one answer per benchmark, in the order the request named them.
data[].benchmarkbodystring—Benchmark is the catalog id this answer is about.
data[].harnessbodystring—Harness is the harness that measures this benchmark for the arena, by repository.
data[].latestbodybenchmark.RunPoint—
data[].latest.atbodystring (date-time)—At is when the run was recorded.
data[].latest.deltabodynumber (double)—Delta is the change in score from the previous run for this model, absent on the first.
data[].latest.nbodyinteger (int64)—N is how many items the run covered.
data[].latest.runbodystring—Run is the measurement id these attempts were recorded under.
data[].latest.scorebodynumber (double)—Score is accuracy over the items this run covered, as a percentage.
data[].notebodystring—Note says in a sentence what the answer means: a held measurement served rather than spent again, or nothing queued and why.
modelbodystring—Model is the model asked about.
orgbodystring—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"
         }
       }
     }'

Benchmark API · All Hanzo APIs · Interactive reference

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.