Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 2.71 KB

File metadata and controls

54 lines (40 loc) · 2.71 KB

LiteLLM

ZH EN Home

One-line take: LiteLLM is an open-source AI gateway that lets you call 100+ LLM APIs through a unified OpenAI-compatible interface with load balancing, budgets, and cost tracking.

Quick Read

Item Conclusion
Vendor BerriAI, Inc.
Route LLM API gateway and proxy
Open source Yes, MIT
Best for Teams running multiple LLM providers who want a single API interface with routing, budgets, and observability
Main cost Self-hosted infra (Docker, Redis, PostgreSQL); latency under heavy concurrency
Official website https://www.litellm.ai
GitHub repo https://github.com/BerriAI/litellm

When To Pick It

  • You call multiple LLM providers and want a single OpenAI-compatible interface.
  • You need per-key and per-team budget controls with real-time cost tracking.
  • You want load balancing, rate limiting, fallbacks, and retries across providers.
  • You need observability — export to Langfuse, Prometheus, OpenTelemetry.
  • You want virtual API keys for team management.

When Not To Pick It

  • You only use one LLM provider. The gateway adds complexity for no benefit.
  • You need high-throughput production with minimal latency — Python GIL limits concurrency.
  • You want zero operational overhead. Running LiteLLM in HA is nontrivial.
  • You need enterprise governance (SSO, granular RBAC) without paying for Enterprise.

Capability Shape

Dimension Assessment Notes
Unified LLM API Very strong 100+ providers in OpenAI-compatible format
Load balancing Strong Across providers with fallbacks and retries
Budget controls Strong Per-key and per-team spend limits
Cost tracking Strong Real-time with export to observability tools
Rate limiting Strong RPM and TPM controls
High-throughput Medium Python GIL limits under heavy concurrency
Enterprise features Medium SSO and advanced RBAC require paid tier

Operating Cost

Complexity is Medium to High. The software is free (MIT), but you own the infrastructure — Docker host, Redis for state, PostgreSQL for logging. HA deployment requires careful planning. The payoff is centralized LLM management across your entire organization.

Bottom Line

LiteLLM is the infrastructure layer for teams that run multiple LLM providers. It does not build agents — it unifies the model access that agents depend on.