Blog

Notes from building a model gateway that can explain itself.

Architecture, billing, and privacy decisions—written for developers who need the mechanism, not the pitch.

The notebook

More from the system

02
Prepaid AI billing without mystery charges

How reservations, settlement, immutable price snapshots, and credit buckets make variable-cost requests explainable.

03
Useful model API logs do not need your prompts

A content-blind observability model for debugging delivery and billing without creating a second store of private conversations.

04
Retries should repeat the result, not the charge

Why model requests need canonical idempotency keys, request fingerprints, and deterministic recovery across billing and inference.