Titan AI LogoTitan AI

litellm

28,548
4,049
Python

Project Description

Python SDK, Proxy Server (LLM Gateway) to call 100+ LLM APIs in OpenAI format - [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, Replicate, Groq]

litellm: Python SDK, Proxy Server (LLM Gateway) to call 100+ LLM APIs in OpenAI format - [Bedrock, Azure, Ope

litellm — A Python SDK and Proxy Server for Unified Access to Multiple LLM APIs

Overview

litellm is a Python SDK and Proxy Server (LLM Gateway) that enables developers to call over 100 different LLM APIs using the OpenAI format. It simplifies the process of interacting with various AI platforms by providing a consistent interface and output format. This project stands out for its extensive support for multiple providers and its ability to manage complex routing and fallback logic across different deployments.

Key Features

  • Unified access to multiple LLM APIs with a consistent output format
  • Automatic retry and fallback logic across different deployments
  • Budget and rate limit management per project and API key
  • Supports a wide range of providers including Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, Replicate, and Groq

Use Cases

  • Developers needing a single interface to interact with various LLM APIs
  • Enterprises looking to manage and throttle API usage across different AI platforms
  • Researchers and data scientists who require a consistent output format for model comparisons

Advantages

  • Reduces complexity by abstracting away the differences between various LLM APIs
  • Enhances reliability with built-in retry and fallback mechanisms
  • Provides flexibility in managing budgets and rate limits for different projects and models

Limitations / Considerations

  • Requires knowledge of Python and the OpenAI API format for effective use
  • The project's effectiveness is dependent on the continued support and updates for the supported LLM APIs
  • As an open-source project, it relies on community contributions for maintenance and feature expansion

Similar / Related Projects

  • OpenAI API: The official API from OpenAI, which litellm emulates for consistency across different platforms.
  • HuggingFace Transformers: A library of pre-trained models similar to LLMs, though it focuses more on NLP tasks rather than providing a unified API access.
  • LangChain: Another project aiming to provide a unified interface for LLMs, with a focus on chain-of-thought reasoning.

Basic Information


📊 Project Information

  • Project Name: litellm
  • GitHub URL: https://github.com/BerriAI/litellm
  • Programming Language: Python
  • ⭐ Stars: 28,357
  • 🍴 Forks: 4,015
  • 📅 Created: 2023-07-27
  • 🔄 Last Updated: 2025-09-04

🏷️ Project Topics

Topics: [, ", a, i, -, g, a, t, e, w, a, y, ", ,, , ", a, n, t, h, r, o, p, i, c, ", ,, , ", a, z, u, r, e, -, o, p, e, n, a, i, ", ,, , ", b, e, d, r, o, c, k, ", ,, , ", g, a, t, e, w, a, y, ", ,, , ", l, a, n, g, c, h, a, i, n, ", ,, , ", l, i, t, e, l, l, m, ", ,, , ", l, l, m, ", ,, , ", l, l, m, -, g, a, t, e, w, a, y, ", ,, , ", l, l, m, o, p, s, ", ,, , ", m, c, p, -, g, a, t, e, w, a, y, ", ,, , ", o, p, e, n, a, i, ", ,, , ", o, p, e, n, a, i, -, p, r, o, x, y, ", ,, , ", v, e, r, t, e, x, -, a, i, ", ]


📚 Documentation


This article is automatically generated by AI based on GitHub project information and README content analysis

Titan AI Explorehttps://www.titanaiexplore.com/projects/671269505en-USTechnology

Project Information

Created on 7/27/2023
Updated on 9/8/2025