LiteLLM puts many providers behind one interface. Chainless is an OpenAI-compatible provider, so it needs the openai/ prefix and an api_base.
Python SDK
import os
import litellm
resp = litellm.completion(
model="openai/kimi-k3.1-pro-uncensored",
api_base="https://chainless.one/v1",
api_key=os.environ["CHAINLESS_API_KEY"],
messages=[{"role": "user", "content": "Write a Suricata rule that alerts on HTTP requests with the User-Agent sqlmap."}],
)
print(resp.choices[0].message.content)Streaming works the same way with stream=True.
LiteLLM proxy
config.yaml:
model_list:
- model_name: kimi-k3.1-pro-uncensored
litellm_params:
model: openai/kimi-k3.1-pro-uncensored
api_base: https://chainless.one/v1
api_key: os.environ/CHAINLESS_API_KEY
- model_name: glm-5.3-fast-uncensored
litellm_params:
model: openai/glm-5.3-fast-uncensored
api_base: https://chainless.one/v1
api_key: os.environ/CHAINLESS_API_KEY
litellm_settings:
# only if clients call the proxy's Anthropic-format /v1/messages route
use_chat_completions_url_for_anthropic_messages: trueexport CHAINLESS_API_KEY="cl-..."
litellm --config config.yamlClients then call the proxy with the proxy's own key and model: "kimi-k3.1-pro-uncensored"; the proxy forwards to Chainless with your Chainless key.
Notes
- Only
/chat/completionsexists upstream: do not map Chainless models to embedding, image or audio routes. - One Chainless key per proxy deployment, with a spending limit in the dashboard, gives you a hard ceiling on top of LiteLLM's own budgets.
- Model ids and limits: /models.
Sources
Checked against the official documentation on 2026-11-29. Tools change their settings often; if a field moved, the source below is the reference.