LiteLLM
Open-source AI gateway and SDK for many LLM providers — one API, cost tracking, load balancing, fallbacks
LiteLLM gives you one OpenAI-style API for many LLM providers — OpenAI, Anthropic, Google, Azure, AWS Bedrock, Ollama, vLLM and more. Use it as a Python SDK or run the proxy server (AI gateway) so any language can call it. The gateway tracks cost per request, user and key, enforces budgets and rate limits, load-balances across deployments and falls back automatically when a provider fails; it sends logs and traces to tools such as Langfuse and LangSmith. A Rust-based gateway is in beta (since mid-2026). The code is MIT apart from an enterprise/ directory under a separate commercial licence (enterprise features need a licence key). Ideal for teams using several LLM providers who want central control of keys and spend. Works well with: Ollama · vLLM · Langfuse · LangSmith
When to use
- You need to call many LLM APIs through one interface
- You need cost tracking, rate limits and load balancing across models
When not to use
- You only use a single LLM provider
- You do not need a proxy layer — calling the API directly is enough
At a glance
- Pricing
- Open core
- Deployment
- Self-hosted
- Difficulty
- Intermediate
- License
- MIT
- Languages
- python, rust
- Use cases
- llm gateway, cost optimization, multi provider routing
- Last verified
- 2026-10-22 (official documentation)
Works well with
Alternatives in this category
See all 4 tools in AI Infrastructure — Model Serving & Deployment →