Wild West

Set up LangChain with uncensored AI models

LangChain's ChatOpenAI takes a custom base_url. Set use_responses_api to False and it stays on chat completions, the plainest path.

Base URL
https://wildwestapi.com/v1
API key
Get one, starts sk-ww-
Example model
glm-5.3-outlaw

Python

Python
# pip install -U langchain-openai
from langchain_openai import ChatOpenAI

llm = ChatOpenAI(
    model="glm-5.3-outlaw",
    api_key="sk-ww-...",
    base_url="https://wildwestapi.com/v1",
    use_responses_api=False,
)
print(llm.invoke("Hello").content)
Keep use_responses_api False With a custom base URL LangChain can switch to the Responses API. Wild West serves it, but chat completions is the plainer path, so set use_responses_api=False. If streaming usage misbehaves, it is off by default on a custom base URL, which is fine.

JavaScript

TypeScript
// npm install @langchain/openai @langchain/core
import { ChatOpenAI } from "@langchain/openai";

const llm = new ChatOpenAI({
  model: "glm-5.3-outlaw",
  apiKey: process.env.WILDWEST_API_KEY,
  configuration: { baseURL: "https://wildwestapi.com/v1" },
});
console.log((await llm.invoke("Hello")).content);

Related guides

Uncensored AI models on one key

OpenAI and Anthropic compatible, pay as you go. New to it? Start with uncensored AI, explained.