GLM 5.3 API: uncensored, OpenAI and Anthropic compatible
The uncensored GLM 5.3 builds sit behind an OpenAI-compatible and an Anthropic-compatible endpoint, so code written for either SDK calls them by changing the base URL and the model id.
The model ids
| Model | Model id | Context | Images |
|---|---|---|---|
| Slingshooter | glm-5.3-outlaw | 1,048,576 tokens | No |
| GLM 5.3 Lite Outlaw | glm-5.3-lite-outlaw | 262,144 tokens | No |
| Hipshooter | glm-5.3-flash-outlaw | 1,048,576 tokens | Yes |
The OpenAI SDK
Point the client at Wild West and name the model:
from openai import OpenAI client = OpenAI(base_url="https://wildwestapi.com/v1", api_key="sk-ww-...") resp = client.chat.completions.create( model="glm-5.3-outlaw", messages=[{"role": "user", "content": "Plan the change before writing code."}], ) print(resp.choices[0].message.content)
A tool call
Tools use the OpenAI shape: a tools array of functions with JSON Schema parameters. The model replies with finish_reason: "tool_calls" and the arguments as JSON.
resp = client.chat.completions.create(
model="glm-5.3-flash-outlaw",
messages=[{"role": "user", "content": "What is the weather in São Paulo?"}],
tools=[{
"type": "function",
"function": {
"name": "get_weather",
"parameters": {
"type": "object",
"properties": {"city": {"type": "string"}},
"required": ["city"],
},
},
}],
)
print(resp.choices[0].message.tool_calls[0].function.arguments)
Sending an image
Hipshooter is the build that reads images. Send them as OpenAI image_url content parts:
resp = client.chat.completions.create(
model="glm-5.3-flash-outlaw",
messages=[{"role": "user", "content": [
{"type": "text", "text": "What does this screenshot show?"},
{"type": "image_url", "image_url": {"url": "https://example.com/screen.png"}},
]}],
)
Slingshooter and GLM 5.3 Lite Outlaw are text only, so route anything with a picture in it to the Flash build.
Anthropic clients and Claude Code
Anthropic clients, Claude Code among them, use https://wildwestapi.com with the same key and the same model ids. The Claude Code guide has the full setup. Prompts that repeat, as an agent's do, are billed at the cached price.
FAQ
Is there a GLM 5.3 API without refusals?
Yes. Wild West serves three uncensored builds through OpenAI- and Anthropic-compatible endpoints: glm-5.3-outlaw, glm-5.3-lite-outlaw and glm-5.3-flash-outlaw.
Can I use GLM 5.3 in Claude Code?
Yes. Point Claude Code at the Anthropic-compatible endpoint and set the model to glm-5.3-outlaw or glm-5.3-flash-outlaw. Both call tools, so they can edit files and run commands.
Which GLM 5.3 build takes images?
Hipshooter. The full and Lite builds are text only.
Do I need a separate key for each build?
No. One key works for every model on the line and for both API formats.