LiteLLM
Open-source SDK and AI gateway that calls 100+ providers through one OpenAI-style API.
Bookmark
Bookmarks are kept in your free account, so you can find this page again on any device.
Sign in to bookmarkWhat it is
LiteLLM translates one request format into the APIs of OpenAI, Anthropic, Gemini, Bedrock, Azure, local servers and many others. Use it as a Python library in your code, or run the proxy server as a central gateway for a team: it issues virtual keys, tracks spend per key or team, enforces budgets and rate limits, load-balances across deployments and falls back to another model when one fails. Many other tools use it under the hood for multi-provider support.
Best for
One internal endpoint with per-team keys and budgets.
Skills it helps with
Learn LiteLLM by doing
- Move an app to a new model without regressions
LLM model migration without surprises: freeze a golden set, run old and new models side by side, fix the prompts, compare cost, then roll out behind a flag.
- LLM cost levers cheat sheet
The main ways to cut model spend, ordered by effort, with what each saves, what it risks and how to check quality held. Checked against provider docs.
Related tools
DeepSeek
Chat app and API for DeepSeek's open-weight models.
Groq
Fast inference API on Groq's own LPU chips.
OpenRouter
One API and bill for models from many providers, with routing and fallbacks.
LLM
CLI and Python library for prompting many models.
Portkey AI Gateway
Open-source gateway for routing model requests with retries, fallbacks and guardrails.
vLLM
High-throughput inference and serving engine for LLMs with an OpenAI-compatible server.