Building an IDP for Generative AI: From Models to APIs
summary
An internal gateway processes each request through six stages (mTLS auth, Envoy external processing, OPA policy, budget hold, tenant-scoped cache, model routing) and emits OpenTelemetry spans so one trace per request shows who spent what and why. The platform enforces budget holds (authorize worst‑case tokens, capture actual usage, release remainder atomically) to prevent thousands of accidental calls and huge bills. Caching follows four checks (scope, similarity threshold, entity hashes, cacheability) for safe semantic caching and failover only uses models that passed per-tenant CI evaluations.
AI-written summary · about
