Skip to content
Language: English (United States)

The Economics of a Million Tokens

November 29, 20268 min read

Token list prices hide the physics of production inference. Prefill compute, KV-cache memory bandwidth, batch utilization, and retries determine what a solved task actually costs — and why task-aware routing and zero-token decision models beat brute-force frontier calls.

Explore Benchmarks

01. Abstract

Most AI infrastructure comparisons quote a single headline figure: dollars per million input and output tokens. That figure is useful for reading a provider price sheet, and almost useless for forecasting the unit economics of an autonomous software or enterprise workload.

In production, the true cost of intelligence is governed by two separate regimes — compute-bound prefill and memory-bandwidth-bound decode — multiplied by context growth, cache hit rate, retry rate, and orchestration overhead. Separating routing (Enso), structured decisions (Kai), and open-weight execution (Zen) reduces cost per solved task without sacrificing frontier accuracy where hard reasoning is genuinely required.

02. Background: Why token price is the wrong denominator

A coding or operations agent rarely makes one isolated prompt call. A single real-world issue can trigger twenty to eighty model invocations: repository inspection, tool selection, policy checks, patch generation, test interpretation, and final verification. If every routine classification or file lookup is routed to a monolithic frontier reasoning model with a 64K-token prompt, the bill compounds quadratically with conversation length.

When CFOs and infrastructure engineers evaluate AI workloads, the only denominator that ties to P&L is cost per verified successful task: total input tokens, output tokens, failed retries, sandbox compute, and human escalation time divided by completed tasks that pass acceptance checks.

03. Architecture: The physics of prefill, decode, and KV cache

Serving a transformer is two completely different hardware problems under one API:

Prefill is compute-bound. Processing prompt tokens in parallel saturates GPU matrix cores (FLOPs). Prefix caching amortizes shared system prompts, tool schemas, and repository headers across turns so repeated prefill turns into a KV-cache lookup rather than fresh matmuls.

Decode is memory-bandwidth-bound. Generating each output token streams active model weights and the accumulated KV cache across HBM or unified memory. Under low batch concurrency or long context windows, an accelerator spends most of its wall-clock time waiting on memory bandwidth rather than compute — which is why Mixture-of-Experts architectures (such as Zen), FP8/INT4 quantization, and continuous batching shift the cost curve far more than raw peak FLOPs suggest.

Decision work should not pay decode tax at all. Policy checks, allow/deny gates, intent classification, and model routing require a calibrated label and probability — not 400 tokens of chain-of-thought prose. Hanzo Kai returns typed decisions in a single forward pass with zero generated completion tokens.

04. Implementation: Metering and routing on Hanzo

Every model call through Enso and api.hanzo.ai resolves against the live billing catalog (GET /v1/pricing/models) and records exact prompt tokens, cached prefix tokens, completion tokens, and latency per tenant and task.

Shell
# Inspect live model pricing and capability catalog
curl -s https://commerce.hanzo.ai/v1/pricing/models | jq '.models[:5]'
# Route generative work through Enso and structured gates through Kai
hanzo run --model enso-auto --prompt "Audit retry idempotency in apps/billing"

05. Evaluation: Measuring cost per solved task

Evaluating routing economics requires holding task quality constant rather than cherry-picking cheap completions that fail verification. On hanzo.ai/benchmarks and our GPQA Diamond Pareto analysis, every Enso tier is plotted on two axes simultaneously: verified accuracy and total dollar cost per 1,000 questions evaluated under disclosed list pricing.

Three operational levers account for the majority of real-world cost variance: (1) routing trivial extraction and tool formatting away from frontier reasoning weights, (2) preserving prefix-cache locality across multi-turn agent loops, and (3) moving binary/categorical policy checks out of generative completions into Kai.

06. Trade-offs and failure modes

Aggressive cost optimization has clear failure modes. Under-routing a subtle architectural bug to an undersized model increases retry count and can cost more in wall-clock time and retries than sending it to a frontier tier directly. Similarly, naive quantization degrades long-context needle retrieval and structured tool-call accuracy if evaluated only on short-form perplexity.

Good routing systems therefore measure escalation rate and end-to-end pass rate alongside raw token spend, and allow teams to pin deterministic models whenever strict reproducibility or regulatory auditability requires a fixed checkpoint.

07. Economic implications

As open weights and specialized accelerators drive the marginal cost of raw tokens downward, intelligence stops behaving like a scarce luxury and starts behaving like electricity or compute. Lower unit costs do not shrink the market — they unlock persistent background agents, continuous verification, and organization-wide automation that were uneconomic at yesterday’s prices.

Economic value therefore accrues to the execution layer that coordinates routing, durable sandboxes, shared organizational memory, and auditable billing across millions of tasks.

08. Reproduction

To reproduce our inference and routing comparisons on your own workload, pin both prompt corpus and verification harness, record prefix cache hits separately from uncached prefill, and report p50/p95 latency alongside cost per verified pass. Live benchmark runs and public pricing feeds are inspectable directly via hanzo.ai/benchmarks and hanzo.ai/pricing.

09. Ecosystem integration

This article is Priority #1 (Article #09) of Hanzo — The Intelligence Economy, connecting Enso (routing), Kai (zero-token decisions), Zen (open-weight models), and Hanzo Cloud (metered execution and billing ledgers).

10. Next steps

Economics · #09November 29, 2026

  • ProductionMaturityDeployed routing (Enso), decision endpoint (Kai), and live billing catalog
  • Cost / Solved TaskCore MetricTotal spend per verified completion, not synthetic token list rate
  • EnsoRouting LayerCapability- and cost-aware selection across Zen open weights and frontier models
  • KaiZero-Token LayerCalibrated typed decisions without generating prose completion tokens

Economics · #09

Inspect live benchmarks, pricing, and the 100-post Open Intelligence roadmap