Configure fast mode and zero-downtime tier failover

Use Enso fast mode (fast: true / X-Fast: 1) for interactive latency SLAs while relying on ordered multi-vendor chain failover at one fixed tier price.

Vendor outages should never wake your on-call engineer. Every Enso tier runs an ordered fallback chain under one model ID and one fixed price, while optional fast: true accelerates priority interactive turns.

Architecture & contract

Failover steps sequentially — the next rung is called only on outage, rate limit, or refusal, never raced redundantly. Fast mode bills from prepaid balance (2x on enso-auto/enso-flash, 3x on enso-pro/enso-max, 4x on enso-ultra) and degrades gracefully to standard speed when prepaid balance is zero.

Primary endpoint: POST /v1/chat/completions · Status: shipped · Level: practitioner

Run it across all four surfaces

hanzo chat completions --data '{
  "model": "enso-pro",
  "fast": true,
  "messages": [{"role": "user", "content": "Diagnose HTTP 502 from upstream gRPC deadline exceeded."}]
}'
const res = await fetch('https://api.hanzo.ai/v1/chat/completions', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.HANZO_API_KEY}`,
    'Content-Type': 'application/json',
    'X-Fast': '1',
  },
  body: JSON.stringify({
    model: 'enso-pro',
    messages: [{ role: 'user', content: 'Diagnose HTTP 502 from upstream gRPC deadline exceeded.' }],
  }),
});
console.log('Served by:', res.headers.get('x-hanzo-served'));
import os, requests

r = requests.post(
    "https://api.hanzo.ai/v1/chat/completions",
    headers={"Authorization": f"Bearer {os.environ['HANZO_API_KEY']}", "X-Fast": "1"},
    json={"model": "enso-pro", "messages": [{"role": "user", "content": "Diagnose HTTP 502 from upstream gRPC deadline exceeded."}]},
)
print("Served by:", r.headers.get("X-Hanzo-Served"))
curl -si https://api.hanzo.ai/v1/chat/completions \
  -H "Authorization: Bearer $HANZO_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Fast: 1" \
  -d '{"model":"enso-pro","fast":true,"messages":[{"role":"user","content":"Diagnose HTTP 502 from upstream gRPC deadline exceeded."}]}'
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": "billing",
      "arguments": {"op": "get_billing_balance", "input": {}}
    }
  }'

Verify the outcome

  • Check X-Hanzo-Served: enso-pro and compare time-to-first-token against standard mode.
  • Confirm billing balance via GET /v1/billing/balance.

Production guardrails

  • Reserve fast: true for live user-facing turns; keep background batch and autopilot runs on standard mode to save 2x–4x.

Next steps & Hanzo University

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.
Last updated Nov 25, 2026