← All frameworks

LiteLLM

One interface in front of a hundred providers.

Infrastructure

LiteLLM gives every model provider the same call shape, and its proxy adds keys, budgets, rate limits, fallbacks and logging across a whole team. It is the piece you add when several services all need model access.

Reach for it when

  • You call more than one provider
  • You need per team budgets, keys and rate limits
  • You want automatic fallback when a provider fails

Look elsewhere when

  • You use exactly one model from one provider
  • You already have a gateway

What the lessons will cover

  1. 01Install and first call
  2. 02Provider strings
  3. 03The proxy server
  4. 04Keys and budgets
  5. 05Fallbacks and retries
  6. 06Caching
  7. 07Logging and observability
  8. 08Running it in production

Others in infrastructure

Common questions

Is LiteLLM free to use?

LiteLLM is open source and free to run yourself. You still pay whichever model provider you point it at, and this tutorial is free with no signup.

Do I need to know Python to use LiteLLM?

Basic Python is enough. Functions, dictionaries and imports cover most of what LiteLLM asks of you.

When should I not use LiteLLM?

You use exactly one model from one provider. You already have a gateway.

Lessons for LiteLLM are being written. Meanwhile the LangGraph tutorial covers the same ground: state, tools, loops, memory and human approval. Most of it carries straight over.

Start the LangGraph tutorial →