LiteLLM
OpenAI-compatible gateway for calling and routing across many LLM providers.
Overview
LiteLLM provides a unified API surface, routing, retries, and fallbacks to simplify multi-provider LLM apps.
How to get started
For developer tools & apis with LiteLLM.
- 1
Read the quickstart and pricing limits.
- 2
Keep API keys on a server, never in browser code.
- 3
Add rate limits and monitoring before launch.
Starter prompt
Show a minimal server-side example that calls this API and handles errors and retries.
Alternatives to LiteLLM
Anthropic API
Developer tools & APIs
API access to Claude models with focus on safety and long context windows.
Fireworks AI
Developer tools & APIs
Inference platform for serving open models with production reliability and speed.
GroqCloud
Developer tools & APIs
Low-latency LLM inference API powered by Groq hardware.
LlamaIndex
Developer tools & APIs
Data framework for building LLM applications with data ingestion and retrieval.
OpenAI API
Developer tools & APIs
API access to GPT-4, DALL-E, and other OpenAI models for building AI applications.
OpenPipe
Developer tools & APIs
Fine-tune and distill LLMs from production data to reduce cost and improve quality.



