Summary: A central layer every product calls instead of holding vendor API keys. It routes each request to the right model and vendor (by availability, cost, limits, real-time vs async), meters and caps spend per feature and per customer, and adds security (PII stripping, prompt-injection defense, usage policies) plus trust features (audit logs, data residency). At high scale it becomes critical architecture: the place for optimization, intent-based routing, security, and an identity for every agent, possibly also for caching state so models become interchangeable engines. Design it so it isn’t a single point of failure. Good AI infra is the kind you don’t notice. A key in code is fastest, until it breaks.

Key ideas

Disagreements & open questions

Takeaways

llm-evals · llm-cost-optimization · model-selection · ai-guardrails