Thu, Jul 30, 2026
LiteLLM
ai
llm apis
OSS

LiteLLM

Unified LLM API gateway

1,345 likesopen-sourceOpen source
Overview

Call 100+ LLM providers with OpenAI-compatible API. Budget tracking and fallbacks built-in.

Essential glue layer when your stack uses more than one LLM provider.

Key features

  • Single OpenAI-compatible endpoint for 100+ providers
  • Budget caps, rate limits, and fallback routing
  • Spend tracking per API key and team
  • Drop-in replacement for OpenAI SDK calls

Use cases

  1. 01Multi-model routing (GPT-4o → Claude → local Ollama)
  2. 02Centralized LLM gateway for microservices
  3. 03Cost control for AI features in production SaaS

Quick start

pip — quick start
pip install litellm
litellm --model gpt-4o-mini

Stack compatibility

Ollama
Open WebUI
LangChain
Vercel AI SDK

Tags

Related articles