LiteLLM is an open-source AI gateway designed to provide a single, unified calling interface for over 100 LLM providers. It supports OpenAI, Anthropic, Gemini, Bedrock, Azure, VertexAI, vLLM, Nvidia NIM, and more, all unified under the OpenAI format. Users can either integrate it directly into their code as a Python SDK or deploy the AI Gateway (proxy server) as a centralized service for a team or organization.
Key capabilities:
- Unified API: One interface to call 100+ LLMs, with no need to handle provider-specific SDKs.
- OpenAI-compatible: Can directly replace providers without rewriting code.
- Production-grade gateway: Built-in virtual keys, spend tracking, guardrails, load balancing, and an admin dashboard.
- Performance: P95 latency of 8ms at 1k RPS (benchmark).
- Supported endpoints: /chat/completions, /responses, /embeddings, /images, /audio, /batches, /rerank, /a2a, /messages, etc.
- Supports the A2A protocol and MCP gateway, allowing Agents and MCP servers to be added.
- Provides Terraform modules to deploy a production-grade componentized stack on AWS or GCP.
Usage:
- Python SDK: Call directly via import litellm.
- Proxy server: Deploy the AI Gateway, set virtual keys, and call via the OpenAI format.
- Developer mode: Set up .env, run docker-compose up db prometheus, make bootstrap, and start the proxy backend and dashboard.
- Installation: You can use the litellm or litellm-core distribution, but only one can be installed per environment.
- Enterprise edition: Offers a commercial license, including priority features, custom integrations, professional support, single sign-on, and more.
Use cases:
- Development teams that need unified calls across multiple LLM providers.
- Enterprises that need centralized management of API keys, spend, and access control.
- Production environments that need load balancing and failover.
- Applications that need to integrate Agents or MCP tools.
Limitations:
- The official materials do not provide specific pricing, platform limits, or performance guarantees.
- Some features (such as enterprise edition features) require a commercial license.
- Installing litellm and litellm-core involves overlapping files, so only one can be installed per environment.
- MCP OAuth may encounter situations where the upstream rejects requests, so OAuth applications need to be pre-registered.