BerriAI/litellm

Call 100+ LLM APIs in OpenAI format; SDK and proxy with cost tracking

What

Python SDK and proxy server that calls 100+ LLM providers through the OpenAI request format, with cost tracking, budgets, fallbacks and load balancing.

How to use

py
# pip install litellm
from litellm import completion
resp = completion(model="anthropic/claude-sonnet-4-5", messages=[{"role": "user", "content": "hi"}])
print(resp.choices[0].message.content)

Reach for it when

your code must swap providers freely, or a team needs one gateway with keys, spend limits and logs.