Design an LLM API gateway that provides a unified API over multiple LLM providers (OpenAI, Anthropic, Google Gemini, self-hosted models) for 1,000 enterprise tenants.
Requirements:
- •Each tenant has their own API keys, rate limits, and spending caps
- •Route to optimal provider based on cost/latency/capability
- •Complete audit log of every request per tenant (for compliance)
- •99.99% availability (the gateway itself cannot be a single point of failure)
What you'll be assessed on
Multi-tenancy isolation, model routing strategy, quota enforcement, observability, and failover.