
LiteLLM
Open-source LLM gateway and SDK for 100+ model providers
What is LiteLLM?
LiteLLM is an open-source Python SDK and proxy server that exposes 100+ LLM providers through a single OpenAI-format API, with budgets, rate limits, fallbacks, logging and virtual keys. Teams self-host it as an internal AI gateway. An enterprise edition adds SSO and support.
Best for: Engineering teams that want a self-hosted gateway to control spend and routing across model providers.
Is LiteLLM free?
Yes, LiteLLM is open source, so you can self-host it for free. It's a good fit for engineering teams that want a self-hosted gateway to control spend and routing across model providers. Free alternatives include OpenRouter and Vercel AI Gateway. Limits change, so confirm on litellm.ai.
Pros
- +One API for many providers
- +Budgets, keys and spend tracking
- +Self-hosted, no extra per-token fees
Cons
- −You operate and secure the proxy
- −Fast-moving codebase
How much does LiteLLM cost?
LiteLLM is free to self-host because it's open source.
We couldn't verify LiteLLM's prices on its site. Vendors change plans often, so confirm before buying.
LiteLLM alternatives

OpenRouter
One API and bill for hundreds of AI models across providers
Free plan
Vercel AI Gateway
Unified API to hundreds of AI models with budgets and fallbacks
Free plan
AnyAPI
One API for 400+ AI models with CLI, chat and agents
Usage-based
Coding Plan X
One AI gateway for 600+ models
Usage-based
Experiential Labs
Unlimited AI gateway with flat plans
Free plan
AllModels
Model router for real-time audio and language models
Free plan
Also compared with: Portkey, Helicone.
LiteLLM FAQ
Is LiteLLM free?
LiteLLM is open source and free to self-host.
What are the best LiteLLM alternatives?
The best LiteLLM alternatives are OpenRouter, Vercel AI Gateway, AnyAPI, Coding Plan X and Experiential Labs. OpenRouter, Vercel AI Gateway and Experiential Labs have a free plan.
Who is LiteLLM best for?
Engineering teams that want a self-hosted gateway to control spend and routing across model providers.
More AI developer platforms and APIs

Hugging Face
Open platform for AI models, datasets and Spaces
Free plan · from $9/mo
Mistral AI
European AI lab offering open-weight and commercial models via API
Free plan
Groq
Very fast inference for open models on custom LPU chips
Free plan
Together AI
Inference, fine-tuning and GPU clusters for open-source models
Usage-based
Fireworks AI
Fast, production inference platform for open and fine-tuned models
Usage-based
Replicate
Run and deploy open-source AI models with an API
Usage-based