Lattice
Skip to content

LiteLLM

librarySelf-hostedlitellm.ai

LiteLLM is a self-hosted library in the Routing & Gateways layer of the AI stack. OpenAI-format proxy translating across 100+ model providers.

By Facts verifiedmethod

Licence
MIT
Language
Python
Cost
free
Owned by
ML Platform

Use LiteLLM when

The widest provider coverage, deployed the least committal way.

Skip LiteLLM when

You want routing policy to live in a SaaS console.

Decides which model answers, and what it costs. See every routing tool.

Badge this entry
Lattice badge: LiteLLM verified 2026-09
[![LiteLLM on Lattice: verified 2026-09](https://lattice.kunjshah.in/routing-gateways/litellm/badge.svg)](https://lattice.kunjshah.in/routing-gateways/litellm)

Rules of thumb

  • Route on measured quality, not on price alone. A cheaper model that fails your eval set is not cheaper.
  • A gateway is in the request path, so it adds latency to every call. Measure that overhead before you add policy to it.
  • Fallbacks that switch models silently change your output. Log which model answered every request, or you cannot debug quality.

Quick answers

Is LiteLLM open source?
Yes. LiteLLM is open source under the MIT licence. It is free to use.
What are the alternatives to LiteLLM?
The closest alternatives to LiteLLM are Portkey, Cloudflare AI Gateway and Envoy AI Gateway.

Ask an AI about this page

Opens the assistant with this page’s link and a question already filled in.

Compared in

Reading on routing

Alternatives to LiteLLM

compare 3 →

Listed as an alternative to

  • Portkey
  • OpenRouter
  • Envoy AI Gateway
  • Bifrost

Also in routing

  • Portkey
  • Cloudflare AI Gateway
  • OpenRouter
  • Martian
  • Envoy AI Gateway
  • Bifrost
  • RouteLLM
  • Not Diamond
  • TrueFoundry