Litellm
LiteLLM is an open-source gateway and Python library that provides unified access to over 100 large language models (LLMs) through a standardized OpenAI-compatible API format. It abstracts the differences between various LLM providers such as OpenAI, Azure, Anthropic, and Google Gemini, enabling developers to interact with multiple models using consistent input and output formats without rewriting code for each provider. LiteLLM operates both as a proxy server managing authentication, load balancing, and cost tracking across teams, and as a Python SDK for direct integration into applications. This dual functionality supports both platform teams overseeing LLM access for multiple developers and individual developers building LLM projects.
LiteLLM offers a unified OpenAI-compatible API gateway and Python SDK to access and manage over 100 large language models from multiple providers.
Unified LLM Access for Development Teams
Platform teams managing multiple developers and projects can use LiteLLM to provide consistent access to various LLM providers with centralized cost and usage tracking.
Individual Developer Integration
Developers building applications that require multiple LLMs can integrate LiteLLM's Python SDK to simplify API calls without rewriting code for each provider.
pip install litellm to install the Python package.litellm_config.yaml file defining your model list with provider credentials including API keys and endpoints.