# Compose private Enso router blends

URL: https://docs.hanzo.ai/docs/guides/enso/custom-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**

```bash
hanzo benchmark presets list
hanzo benchmark presets create --data '{
  "name": "sovereign-code",
  "arms": ["zen6-flash", "zen6-coder", "zen6"],
  "panel_width": 1
}'
```

**SDK**

**TypeScript**

```ts
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);
```

**Python**

```python
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,
}))
```

**HTTP**

```bash
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 '.'
```

**MCP**

```bash
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/presets` lists `enso-sovereign-code` with your exact ordered arm list.

## Production guardrails

- Benchmark your custom blend against `enso-pro` using `GET /v1/benchmark/compare` before switching production traffic.

## Next steps & Hanzo University

- [Paired McNemar Benchmarking](https://docs.hanzo.ai/docs/guides/science/paired-mcnemar-benchmark)

- **[ENS 301 — Training Enso Orchestrators](https://hanzo.university/enso-training-orchestrators)** ([Launch interactive lab on hanzo.app/learn](https://hanzo.app/learn/enso-training-orchestrators))
