Compose private Enso router blends
Define and inspect named org-private router presets (enso-<name>) with ordered escalation arms and bounded fan-out via /v1/benchmark/presets.
Compose exact model chains for compliance, budget, or latency-critical workloads. POST /v1/benchmark/presets stores an org-scoped escalation blend resolved as enso-<name>.
Architecture & contract
A blend specifies ordered arms, escalation rank, and panel_width (bounding parallel fan-out). Storing a preset registers the recipe without silently changing production traffic until you invoke it or promote it via an experiment.
Primary endpoint: POST /v1/benchmark/presets · Status: shipped · Level: specialist
Run it across all four surfaces
CLI
SDK
HTTP
MCP
hanzo benchmark presets list
hanzo benchmark presets create --data '{
"name": "sovereign-code",
"arms": ["zen6-flash", "zen6-coder", "zen6"],
"panel_width": 1
}'TypeScript
Python
import { Configuration, BenchmarkApi } from 'hanzoai';
const bench = new BenchmarkApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await bench.postBenchmarkPresets({
name: 'sovereign-code',
arms: ['zen6-flash', 'zen6-coder', 'zen6'],
panel_width: 1,
});
console.log(data);import os
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import BenchmarkApi
api = BenchmarkApi(ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"])))
print(api.post_benchmark_presets({
"name": "sovereign-code",
"arms": ["zen6-flash", "zen6-coder", "zen6"],
"panel_width": 1,
}))curl -s -X POST https://api.hanzo.ai/v1/benchmark/presets \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"sovereign-code","arms":["zen6-flash","zen6-coder","zen6"],"panel_width":1}' | jq '.'
curl -s https://api.hanzo.ai/v1/benchmark/presets \
-H "Authorization: Bearer $HANZO_API_KEY" | jq '.'curl -s -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "benchmark",
"arguments": {"op": "get_benchmark_presets", "input": {}}
}
}'Verify the outcome
- Confirm
GET /v1/benchmark/presetslistsenso-sovereign-codewith your exact ordered arm list.
Production guardrails
- Benchmark your custom blend against
enso-prousingGET /v1/benchmark/comparebefore switching production traffic.
Next steps & Hanzo University
Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.PreviousTrain your org's learned router via outcome feedbackNextConfigure fast mode and zero-downtime tier failover
Last updated Nov 25, 2026