BerriAI/litellm
The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
What it solves
LiteLLM simplifies the complexity of managing multiple LLM providers. Instead of juggling different SDKs, authentication patterns, and request formats for every model, it provides a single, unified interface to call over 100 LLM providers using the OpenAI format.
How it works
LiteLLM can be implemented in two ways:
- Python SDK: A library for direct integration into your code, allowing you to call various models (e.g., GPT-4o, Claude Sonnet) using a consistent syntax.
- AI Gateway (Proxy Server): A centralized service that can be self-hosted. It acts as a proxy that translates requests into the format required by the specific provider, offering enterprise features like virtual keys, spend tracking, load balancing, and guardrails.
Additionally, it supports the A2A protocol for invoking agents and provides an MCP (Model Context Protocol) bridge to connect MCP servers to any LLM.
Who it’s for
Developers and organizations that use multiple LLM providers and want to avoid provider lock-in, reduce code rewriting when swapping models, and centralize the management of LLM calls for their teams.
Highlights
- Unified API: One interface for 100+ LLMs, removing the need for provider-specific SDKs.
- OpenAI Compatibility: Drop-in compatibility allows providers to be swapped without rewriting code.
- Enterprise Gateway: Includes virtual keys, spend tracking, and an admin dashboard.
- High Performance: 8ms P95 latency at 1k RPS.
- Agent & Tool Support: Supports A2A Agents and MCP tools integration.
Related
- Project
- Project
- Project
- Project