Integrations

Use uncensored models with LiteLLM

Use the openai/ prefix with api_base, in the Python SDK or behind the LiteLLM proxy next to your other providers.

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

python
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:

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: true
shell
export CHAINLESS_API_KEY="cl-..."
litellm --config config.yaml

Clients 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/completions exists 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.

Other tools

Questions

Why the openai/ prefix?

It tells LiteLLM to treat the endpoint as a generic OpenAI-compatible API and call /chat/completions on api_base. The part after the slash is sent as the model id.

Should api_base include /v1?

Yes, and nothing more: https://chainless.one/v1. LiteLLM appends /chat/completions itself.

Clients that call the proxy's Anthropic-style /v1/messages fail. Why?

For that route LiteLLM sends openai/ models to the Responses API, which Chainless does not serve. Set use_chat_completions_url_for_anthropic_messages: true under litellm_settings.