# LiteLLM

Call Laminarity through LiteLLM's OpenAI-compatible client or expose it behind a LiteLLM proxy alias.

> Verification: source-checked; checked 2026-09-01; LiteLLM OpenAI-compatible endpoints — Prepared as second-wave coverage; SDK and proxy execution certification are pending.

## Python SDK

The `openai/` prefix selects LiteLLM's OpenAI-compatible Chat Completions transport; Laminarity receives `auto` as the model id.

```python
import os
from litellm import completion

response = completion(
    model="openai/auto",
    api_base="https://api.laminarity.ai/v1",
    api_key=os.environ["LAMINARITY_API_KEY"],
    messages=[{"role": "user", "content": "Give me one launch checklist item."}],
    max_retries=0,
)
```

## Proxy configuration

```yaml
model_list:
  - model_name: laminarity-auto
    litellm_params:
      model: openai/auto
      api_base: https://api.laminarity.ai/v1
      api_key: os.environ/LAMINARITY_API_KEY
      max_retries: 0
```

## Avoid duplicate routing layers

Disable LiteLLM retries and model fallback for the Laminarity alias when using `auto`; Laminarity already selects and falls back between eligible providers. Layered retries can duplicate latency and billable work.

LiteLLM supports endpoints that Laminarity does not, including embeddings, images, and audio. Point only Chat Completions and the documented stateless Responses subset at Laminarity.

## Upstream documentation

- [LiteLLM OpenAI-compatible endpoints](https://docs.litellm.ai/docs/providers/openai_compatible)
