Python SDK and proxy to call 100+ LLMs with one interface
Inference & HostingFreeOpen source
LiteLLM is an open-source Python library and proxy server that provides a unified OpenAI-compatible interface for 100+ LLM providers. Call Anthropic Claude, Google Gemini, Azure OpenAI, Cohere, Groq, and others with the same `completion()` function. The LiteLLM proxy adds load balancing, rate limiting, and cost tracking.
Providers: 100+ including all major US and international LLM API providers
Founded: 2023 by Krish Dholakia and Ishaan Jaffer; San Francisco; YC backed
Ideal for
Python developers building LLM applications who want provider flexibility without rewriting their code.
Teams running a self-hosted LLM proxy to add load balancing, rate limiting, and cost controls on top of their LLM API usage.
Companies using multiple LLM providers (e.g., Claude for quality, Groq for speed) and wanting a unified interface.
Not ideal for
Teams who want a hosted multi-LLM API without self-hosting infrastructure — use OpenRouter instead.
Non-Python applications — LiteLLM is a Python library; the proxy has REST API compatibility but needs DevOps.
Simple single-provider setups — just use the official SDK; LiteLLM adds complexity if you only use one provider.
See also
OpenRouter — Hosted API service for 100+ LLMs — simpler, no self-hosting.
Portkey — AI gateway with LLM routing, fallbacks, and observability as a service.
LangChain — LLM framework that integrates LiteLLM for multi-provider support.
FAQ
What is LiteLLM?
LiteLLM is a Python library that provides a single `litellm.completion()` function that works with 100+ LLM APIs — OpenAI, Anthropic, Gemini, Azure, Cohere, Hugging Face, Ollama, and many more. It handles input/output normalization so you don't need to change your code when switching between providers.
Is LiteLLM free?
LiteLLM is fully open source under MIT license — the Python library is completely free. LiteLLM Proxy is also free for self-hosting. LiteLLM Enterprise adds SSO, audit logs, and advanced features at custom pricing.
What is the LiteLLM Proxy?
The LiteLLM Proxy is a self-hosted OpenAI-compatible server that routes requests to 100+ LLM providers. Run it in Docker, configure your models, and any OpenAI SDK pointing to it will work with any provider. Features include virtual API keys, load balancing across multiple endpoints, fallbacks, rate limiting, and spend tracking.
How does LiteLLM compare to OpenRouter?
Both provide access to multiple LLMs through one interface. OpenRouter is a hosted API service where you pay per token. LiteLLM is a library and self-hostable proxy where you use your own API keys from each provider. LiteLLM gives more control and potentially lower cost; OpenRouter is simpler with no infrastructure to manage.
SEO, AI search (how ChatGPT, Perplexity and Google describe LiteLLM), UX, CRO and support from one account manager, with a monthly report. Includes a Featured launch on db.fyi. Starts with a free audit.
Founding offer: $299 a month for your first 3 months, plus a free case study.