---
title: "OpenAI-compatible uncensored API: what works"
canonical: https://uncensoredllm.ai/openai-compatible-uncensored-api
generated: 2026-11-23T06:12:15.323Z
source: https://uncensoredllm.ai/openai-compatible-uncensored-api
base_url: https://api.uncensoredllm.ai/v1
---

# 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`.

[Get a key](https://app.uncensoredllm.ai/console)

## 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 |

Counts cover the models available now, as of 2026-11-23. The catalog also lists 8 embedding models, 1 rerank model and 1 transcription model on the same key.

## 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 |

Each model’s own list is in `GET https://api.uncensoredllm.ai/v1/catalog` under `supported_parameters`; an empty list means the option isn’t published for that model.

## 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.

## Read next

- [The SDK setup walkthrough](https://uncensoredllm.ai/guides/sdks)
- [Connect in two minutes](https://uncensoredllm.ai/docs)
- [Tool calling, model by model](https://uncensoredllm.ai/uncensored-tool-calling)
- [JSON and structured outputs](https://uncensoredllm.ai/uncensored-structured-outputs)
- [Every model id and price](https://uncensoredllm.ai/models)
- [Fix a 404 from the base URL](https://uncensoredllm.ai/fix/uncensored-api-base-url-404)
- [Catalog vs the models endpoint](https://uncensoredllm.ai/uncensored-catalog-vs-models-endpoint)
