Skip to content

LiteLLM

OpenAI-compatible gateway for calling and routing across many LLM providers.

Visit litellm.ai ↗

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. 1

    Read the quickstart and pricing limits.

  2. 2

    Keep API keys on a server, never in browser code.

  3. 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