Integration guide
LiteLLM
Call Laminarity through LiteLLM's OpenAI-compatible client or expose it behind a LiteLLM proxy alias.
Python SDK
The openai/ prefix selects LiteLLM's OpenAI-compatible Chat Completions transport; Laminarity receives auto as the model id.
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
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: 0Avoid 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.