Route Call
S4-ROUTE-02 / S5-API-03 — paid LLM router (default tier).
Pricing tradeoff: x402 settles before we know the upstream-billed truth
(usage.cost). A true post-call markup (usage_cost_usd * 1.10) would
require x402 to support a settle-after-work refund hook; v2 doesn’t.
Sprint 5 ships tiered flat charges instead — three paths, three prices,
client picks the path matching its task_hint:
POST /route → 0.05 (reasoning / code) POST /route/upgrade → $0.20 (prefer_premium=True)
Heavy callers subsidize light ones less than the Sprint 4 single-flat model, but the implementation stays predictable and auditable.
Auth: payment is enforced by the x402 middleware; this handler runs only
after settle. No per-user identity is required — route is session-less
by design.
Body
Response
Successful Response
The response is of type Response Route Call Route Post · object.