An OpenAI-compatible uncensored API.
Point any OpenAI SDK at https://api.uncensoredllm.ai/v1, swap in a key and a model id such as glm-5.3-uncensored, and your existing Chat Completions code runs on uncensored and abliterated models. The same key also answers the Responses API, legacy Completions, the Anthropic Messages format at https://api.uncensoredllm.ai, and Gemini’s generateContent.
Endpoints, and how many chat models serve each
| Endpoint | Format | Chat models serving it |
|---|---|---|
/v1/chat/completions | OpenAI Chat Completions | 302 |
/v1/responses | OpenAI Responses | 293 |
/v1/completions | OpenAI legacy Completions | 293 |
/v1/messages | Anthropic Messages | 302 |
/v1beta/models/{model}:generateContent | Google Gemini | 293 |
Request options, by how many models publish them
| Option | Models listing it |
|---|---|
tools | 108 |
tool_choice | 29 |
response_format | 54 |
structured_outputs | 21 |
reasoning | 113 |
seed | 1 |
logprobs | 1 |
The whole migration diff
- client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])+ client = OpenAI(base_url="https://api.uncensoredllm.ai/v1",+ api_key=os.environ["UNCENSOREDLLM_API_KEY"])- model="gpt-4o-mini"+ model="glm-5.3-uncensored"What behaves differently from OpenAI
- Model ids come from this catalog. Pick one from the models page rather than reusing an OpenAI model name.
- A failed request is free. A request that errors before the model answers isn’t billed.
- Running out of balance returns HTTP 402 with code
insufficient_balance, and nothing is charged. - Capabilities vary by model, as the tables show. Check the catalog instead of assuming every option works everywhere.
Compatibility: questions
Do I need a different SDK?
No. The official OpenAI SDKs for Python and Node work with only the base URL and key changed, and so do LangChain, LiteLLM and the Vercel AI SDK’s OpenAI-compatible provider.
Can I keep using the Anthropic SDK?
Yes. Set its base URL to https://api.uncensoredllm.ai (no /v1) and use the same key. Every chat model in the catalog answers the Messages format.
Does streaming work the same way?
Yes: set stream: true and read server-sent events as you would from OpenAI. The SDK guide has full streaming examples in Python, TypeScript and curl. See the SDK guide.