What is LiteLLM?
LiteLLM offers a common interface to model providers through a Python SDK or a centralized gateway. It adds routing, virtual keys, spending controls and observability integrations around model access.
Edited by AhaFrame · Definition source: Official project ↗
How it works
LiteLLM offers a multi-provider LLM interface and a self-hosted gateway with routing and spend-control features. Provider names, pricing and credentials still require explicit verification.
Core features
Common request interface for multiple model providers
SDK and proxy gateway deployment options
Routing, fallback and load-balancing configuration
Virtual keys, usage tracking and budget controls
Feature reference: Official documentation ↗
What can you use it for?
- Centralize model access for a development team
- Switch providers behind a compatible application API
- Measure spend and route around provider failures
Your first guided walkthrough
Python for SDK usage or supported gateway infrastructure, plus provider credentials.
A local development environment, one test model credential and a zero-sensitive-data request.
- Follow the current official SDK or Proxy quickstart; do not expose the proxy publicly by default.
- Configure exactly one model, storing credentials via environment variables.
- Call the proxy through an OpenAI-compatible client and confirm actual response/model.
- Add a failing provider or budget limit and inspect routing, fallback and audit logs.
Route the same synthetic request to one local test model before configuring multiple paid providers.
EXPECTED RESULT · VERIFY INDEPENDENTLYOne traceable request and a documented failover or budget-limit result.
Upstream documentation checked: 2026-10-27. No independent functionality test.
Pricing & running costs
Core SDK/gateway functionality is available under the applicable source license. Enterprise capabilities and support are commercial; provider usage is billed separately.
Check official pricing details ↗Pricing checked 2026-10-27. Confirm currency, billing period, included usage and taxes on the official page.
License & limitations
The LICENSE file separates MIT content from commercial-license directories and restrictions.
- The SDK and gateway do not make upstream inference free.
- Some enterprise directories/features have commercial terms, and protocol support differs across providers.
Frequently asked questions
Is LiteLLM itself a model?
No. It provides access, routing and management around model providers.
Is the whole repository plain MIT?
No. The license distinguishes MIT content from commercially licensed areas.
Official links & sources
Based on the official sources above. Use cases are editorial examples; source checks are not independent functional tests.
Open upstream repository ↗