Academy › Projects › Project 5

Project 5: LLM Gateway & Governance

AdvancedWeek 5Azure APIM / LiteLLMRedisPresidioGrafana

Problem: an enterprise has 10 teams calling LLMs directly, with no cost visibility, no safety controls and leaked keys. Build a central AI gateway.

Architecture:

Apps → Azure API Management (AI Gateway) / LiteLLM proxy
   ├─ AuthN (Entra ID) + per-team API keys + quotas
   ├─ Content Safety (input/output) + PII redaction
   ├─ Semantic cache (Redis)
   ├─ Model router (cheap model for simple tasks, big model for complex; fallback region)
   └─ Logging → Log Analytics → Cost & usage dashboard (per team/model)
Backends: Azure OpenAI (2 regions), Anthropic, open-source model on AKS

Step by step:

  1. Deploy a LiteLLM proxy locally in Docker (or APIM with the AI gateway policies).
  2. Configure 2+ model backends and a fallback.
  3. Add virtual keys per team with budgets and rate limits.

Checking your access…