LiteLLM
Open-source LLM proxy that puts 100+ model APIs behind one OpenAI-compatible endpoint, with keys, budgets and fallback.
LiteLLM is an open-source proxy and Python SDK for calling many model providers through one OpenAI-compatible interface. It translates provider-specific request formats, so the same client can reach OpenAI, Anthropic, Gemini, Bedrock, Azure and open-model endpoints.
The proxy adds virtual keys, per-key budgets, rate limits, model routing, fallback and logging. Teams can run it themselves or use the vendor's managed enterprise product.
Its main appeal is control: the routing configuration and spend policy live in your own infrastructure, and the code can be audited or extended. It is widely used as the compatibility layer behind internal AI platforms.
The open-source core is free to self-host. The managed enterprise plan and support are paid; model inference is always billed by the upstream provider.
The trade-off is operational ownership. Self-hosting means patching, scaling, monitoring and securing the proxy yourself, and provider-specific features can lag the native SDK. Managed hosting removes that burden but adds a vendor.
Our take
LiteLLM is the most flexible option for a team that wants the gateway inside its own boundary. It covers an unusually wide provider list, keeps routing and budget policy in code, and can be audited like any other internal service. For platform teams, that control is the product.
Self-hosting turns the gateway into another production service to patch and scale. Provider-specific features may lag native SDKs, and a misconfigured route can quietly send traffic to the wrong model. Budget engineering time for upgrades and observability, not just the first deployment.
What it does
- OpenAI-compatible proxy across 100+ providers.
- Python SDK and proxy modes.
- Virtual keys, budgets and rate limits.
- Model routing, retries and fallback.
- Spend logs and usage tracking.
- Self-hosted deployment.
- Provider-specific translation and passthrough.
- Managed enterprise option with support.
Best for
- Teams that want to self-host the gateway.
- Platforms standardising many providers behind one API.
- Engineering teams that need auditable routing code.
- Internal AI platforms with per-team keys and budgets.
- Projects that need OpenAI compatibility for open models.
Not ideal for
- Teams without the capacity to run and patch a proxy.
- Buyers who need a fully managed SLA and no infrastructure work.
- Workloads requiring every native provider feature on day one.
- Simple single-model apps with no routing or budget needs.
Pros
- Open-source core can be self-hosted and audited.
- Very broad provider coverage.
- OpenAI-compatible interface simplifies clients.
- Budgets, keys and fallback are built in.
- Can sit inside your own network and data boundary.
- Managed option exists when self-hosting becomes a burden.
Cons
- You own patching, scaling and security.
- Provider-specific edge features may lag native SDKs.
- Configuration can become complex at scale.
- Managed plan adds cost and another vendor.
- Operational quality depends on your deployment.
Pricing and facts
| Pricing model | Open source · from Free to self-host / enterprise quote |
|---|---|
| Free tier | Open-source core is free; managed enterprise is paid. |
| Pricing detail |
|
| Platforms | Self-hosted proxy, Python SDK, Docker, OpenAI-compatible API |
| Developer | BerriAI |
| Website | https://www.litellm.ai/?utm_source=aibookmarks.net |
| Last reviewed | 2026-11-27 |
Example prompt
Deploy LiteLLM as an internal proxy, give each team a virtual key with a monthly budget, and fail over from GPT to Claude when the primary route returns a 429.Alternatives to LiteLLM
Questions about LiteLLM
What is LiteLLM?
LiteLLM is an open-source proxy and Python SDK for calling many model providers through one OpenAI-compatible interface. It translates provider-specific request formats, so the same client can reach OpenAI, Anthropic, Gemini, Bedrock, Azure and open-model endpoints.
The proxy adds virtual keys, per-key budgets, rate limits, model routing, fallback and logging. Teams can run it themselves or use the vendor's managed enterprise product.
Its main appeal is control: the routing configuration and spend policy live in your own infrastructure, and the code can be audited or extended. It is widely used as the compatibility layer behind internal AI platforms.
The open-source core is free to self-host. The managed enterprise plan and support are paid; model inference is always billed by the upstream provider.
The trade-off is operational ownership. Self-hosting means patching, scaling, monitoring and securing the proxy yourself, and provider-specific features can lag the native SDK. Managed hosting removes that burden but adds a vendor.
Is LiteLLM free?
LiteLLM is open source. Open-source core is free; managed enterprise is paid.
What is LiteLLM best for?
Teams that want to self-host the gateway.; Platforms standardising many providers behind one API.; Engineering teams that need auditable routing code.; Internal AI platforms with per-team keys and budgets.; Projects that need OpenAI compatibility for open models.
Listed in Model Gateways & Aggregators. Something out of date? Tell us.