LiteLLM logo

LiteLLM

by BerriAIFramework / SDKlitellm.ai

LiteLLM gives Python one call signature across providers, and a proxy that puts the same thing behind a server. Opper works with it today through the OpenAI-compatible provider: point it at https://api.opper.ai/v3/compat with your Opper key and every model in the catalogue is reachable. A native opper/ provider is open for review upstream in BerriAI/litellm#36075.

Build with LiteLLM on Opper

LiteLLM reaches Opper over the OpenAI-compatible endpoint. Point it at https://api.opper.ai/v3/compat with your Opper key and pick a model.

Get your API key

In your code

import os
from litellm import completion
response = completion(
model="openai/anthropic/claude-fable-5",
api_base="https://api.opper.ai/v3/compat",
api_key=os.environ["OPPER_API_KEY"],
messages=[{"role": "user", "content": "Hello!"}],
)

More apps on Opper

Build with LiteLLM on any model

One key, 700+ models, a choice of region, and zero data retention. Switch the model behind your app without changing your workflow.

Get startedView Documentation