> ## Documentation Index
> Fetch the complete documentation index at: https://docs.openference.com/llms.txt
> Use this file to discover all available pages before exploring further.

# LiteLLM

> Use LiteLLM as a unified interface on top of Openference.

# LiteLLM

LiteLLM works out of the box.

```python theme={null}
import litellm

response = litellm.completion(
    model="openai/your-model-name",   # or the provider prefix you configured
    messages=[{"role": "user", "content": "hi"}],
    api_base="https://api.openference.com/v1",
    api_key="YOUR_API_KEY"
)
```

You can also register Openference as a custom provider in your LiteLLM config.

All the normal LiteLLM features (fallbacks, logging, guardrails) continue to work.
