# Is there an OpenAI-compatible API for abliterated models?

_Updated November 18, 2026. https://openuncensored.com/openai-compatible-uncensored-api_

**Short answer:** Yes. [OpenUncensored](https://openuncensored.com/) is an OpenAI compatible API (`https://api.openuncensored.com/v1`) for 62 uncensored models, 26 of them abliterated (plain abliteration, heretic, derestricted or orthogonalized), plus 21 image models. Point the OpenAI SDK's base URL at it, use a prepaid key, and keep the rest of your code. The same key also works with the OpenAI Responses API and the Anthropic Messages API. The best abliterated model on our tests is [Abliterated Large Flash](https://openuncensored.com/models/abliterated-large-flash) (`abliterated-large-flash`), #6 (64.0).

## What the API speaks

| API | Path | Used by |
|---|---|---|
| OpenAI Chat Completions | `https://api.openuncensored.com/v1/chat/completions` | The OpenAI SDKs, LangChain, LiteLLM, the Vercel AI SDK, Cline, Cursor, OpenCode, most apps |
| OpenAI Responses | `https://api.openuncensored.com/v1/responses` | Codex, the OpenAI Agents SDK |
| Anthropic Messages | `https://api.openuncensored.com/v1/messages` | Claude Code, the Anthropic SDKs |
| Images | `https://api.openuncensored.com/v1/images/generations` | 21 uncensored image models |
| Models | `https://api.openuncensored.com/v1/models` | Every model id, free and without a key |

## Change the base URL

Buy a prepaid key on the [credits page](https://openuncensored.com/credits) with no account (the key is the account), or point your agent at [agents.md](https://openuncensored.com/agents.md) and let it buy one.

python:

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.openuncensored.com/v1", api_key="ou-...")

r = client.chat.completions.create(
    model="abliterated-large-flash",
    messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
```

node:

```js
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.openuncensored.com/v1", apiKey: process.env.OU_API_KEY });

const r = await client.chat.completions.create({
  model: "abliterated-large-flash",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(r.choices[0].message.content);
```

curl:

```bash
curl https://api.openuncensored.com/v1/chat/completions \
  -H "Authorization: Bearer $OU_API_KEY" -H "Content-Type: application/json" \
  -d '{"model": "abliterated-large-flash", "messages": [{"role": "user", "content": "Hello"}]}'
```

## Abliterated models on the API

| Model | Model id | Method | Rank (score) | Answers | Speed | $ / 1M in · out |
|---|---|---|---|---|---|---|
| [Abliterated Large Flash](https://openuncensored.com/models/abliterated-large-flash) | `abliterated-large-flash` | Abliterated | #6 (64.0) | 92% | 184 tok/s | $1.00 · $2.00 |
| [Apex Flash 1 Abliterated](https://openuncensored.com/models/glm-5.3-flash-apex-abliterated) | `glm-5.3-flash-apex-abliterated` | Abliterated | #8 (63.2) | 86% | 10 tok/s | $0.15 · $0.50 |
| [MiMo V2.6 Flash Abliterated](https://openuncensored.com/models/mimo-v2.6-flash-abliterated) | `mimo-v2.6-flash-abliterated` | Abliterated | #10 (62.6) | 83% | 99 tok/s | $0.50 · $1.50 |
| [Abliterated Large v2](https://openuncensored.com/models/abliterated-large-v2) | `abliterated-large-v2` | Abliterated | #11 (62.0) | 94% | 281 tok/s | $3.00 · $5.00 |
| [Kimi K3.1 Pro Uncensored](https://openuncensored.com/models/kimi-k3.1-pro-uncensored) | `kimi-k3.1-pro-uncensored` | Abliterated | #14 (59.7) | 97% | 59 tok/s | $2.50 · $5.00 |
| [Gemma 4 31B Gembrain Uncensored Heretic](https://openuncensored.com/models/gemma-4-31b-gembrain-uncensored-heretic) | `gemma-4-31b-gembrain-uncensored-heretic` | Heretic (automated abliteration) | #15 (58.5) | 89% | 14 tok/s | $0.31 · $0.31 |
| [Qwen3.5 27B Claude 4.6 Opus Reasoning Distilled Derestricted](https://openuncensored.com/models/qwen3.5-27b-claude-4.6-opus-reasoning-distilled-derestricted) | `qwen3.5-27b-claude-4.6-opus-reasoning-distilled-derestricted` | Derestricted | #16 (57.8) | 100% | 28 tok/s | $0.31 · $0.31 |
| [Inkling 2 Small Uncensored](https://openuncensored.com/models/inkling-2-small-uncensored) | `inkling-2-small-uncensored` | Orthogonalized | #17 (57.7) | 94% | 395 tok/s | $0.60 · $2.40 |
| [Qwen3.5 27B Queen Derestricted](https://openuncensored.com/models/qwen3.5-27b-queen-derestricted) | `qwen3.5-27b-queen-derestricted` | Derestricted | #18 (57.3) | 100% | 28 tok/s | $0.31 · $0.31 |
| [Qwen3.5 27B BlueStar v3 Derestricted](https://openuncensored.com/models/qwen3.5-27b-bluestar-v3-derestricted) | `qwen3.5-27b-bluestar-v3-derestricted` | Derestricted | #19 (56.4) | 100% | 24 tok/s | $0.31 · $0.31 |
| [Qwen3.5 27B Blossom V6.4 Derestricted](https://openuncensored.com/models/qwen3.5-27b-blossom-v6.4-derestricted) | `qwen3.5-27b-blossom-v6.4-derestricted` | Derestricted | #20 (56.3) | 100% | 21 tok/s | $0.31 · $0.31 |
| [GLM 4.7 Flash Heretic](https://openuncensored.com/models/olafangensan-glm-4.7-flash-heretic) | `olafangensan-glm-4.7-flash-heretic` | Heretic (automated abliteration) | #23 (52.7) | 100% | 80 tok/s | $0.07 · $0.40 |
| [GLM 4.6 Derestricted v5](https://openuncensored.com/models/glm-4.6-derestricted-v5) | `glm-4.6-derestricted-v5` | Derestricted | #24 (50.2) | 100% | 31 tok/s | $0.40 · $1.50 |
| [Qwen3.5 27B Claude 4.6 Opus Reasoning Distilled Derestricted Lite](https://openuncensored.com/models/qwen3.5-27b-claude-4.6-opus-reasoning-distilled-derestricted-lite) | `qwen3.5-27b-claude-4.6-opus-reasoning-distilled-derestricted-lite` | Derestricted | #25 (49.8) | 89% | 26 tok/s | $0.31 · $0.31 |
| [Qwen 2.5 32B Abliterated](https://openuncensored.com/models/qwen2.5-32b-instruct-abliterated) | `qwen2.5-32b-instruct-abliterated` | Abliterated | #28 (44.6) | 100% | 19 tok/s | $0.70 · $0.70 |
| [Llama 3.3 70B Instruct abliterated](https://openuncensored.com/models/llama-3.3-70b-instruct-abliterated) | `llama-3.3-70b-instruct-abliterated` | Abliterated | #29 (41.7) | 100% | 19 tok/s | $0.70 · $0.70 |
| [DeepSeek R1 Llama 70B Abliterated](https://openuncensored.com/models/deepseek-r1-distill-llama-70b-abliterated) | `deepseek-r1-distill-llama-70b-abliterated` | Abliterated | #30 (40.4) | 100% | 18 tok/s | $0.70 · $0.70 |
| [DeepSeek R1 Qwen Abliterated](https://openuncensored.com/models/deepseek-r1-distill-qwen-32b-abliterated) | `deepseek-r1-distill-qwen-32b-abliterated` | Abliterated | #31 (40.0) | 100% | 20 tok/s | $1.40 · $1.40 |
| [Neural Daredevil 8B abliterated](https://openuncensored.com/models/neuraldaredevil-8b-abliterated) | `neuraldaredevil-8b-abliterated` | Abliterated | #32 (35.8) | 100% | 32 tok/s | $0.44 · $0.44 |
| [Llama 3 70B abliterated](https://openuncensored.com/models/meta-llama-3-70b-instruct-abliterated-v3.5) | `meta-llama-3-70b-instruct-abliterated-v3.5` | Abliterated | #33 (34.4) | 100% | 17 tok/s | $0.70 · $0.70 |
| [DeepSeek V4.1 Flash Heretic](https://openuncensored.com/models/deepseek-v4.1-flash-1017-heretic) | `deepseek-v4.1-flash-1017-heretic` | Heretic (automated abliteration) | not ranked (72.7) | 94% | 53 tok/s | $0.20 · $0.79 |
| [Abliterated Model](https://openuncensored.com/models/abliterated-model) | `abliterated-model` | Abliterated | not ranked (68.4) | 100% | 114 tok/s | $1.00 · $3.00 |
| [Gemma 4 26B A4B Chimera X Heretic](https://openuncensored.com/models/gemma-4-26b-a4b-it-chimeraxheretic) | `gemma-4-26b-a4b-it-chimeraxheretic` | Heretic (automated abliteration) | not ranked (61.9) | 100% | 43 tok/s | $0.12 · $0.38 |
| [Gemma 4 31B SDFT Heretic RP](https://openuncensored.com/models/gemma-4-31b-sdft-heretic-rp) | `gemma-4-31b-sdft-heretic-rp` | Heretic (automated abliteration) | not ranked (61.3) | 100% | 10 tok/s | $0.31 · $0.31 |
| [DeepSeek V4 Pro Qwen3.5 9B Uncensored Heretic](https://openuncensored.com/models/deepseek-v4-pro-qwen3.5-9b-uncensored-heretic) | `deepseek-v4-pro-qwen3.5-9b-uncensored-heretic` | Heretic (automated abliteration) | not scored yet | – | 1 tok/s | $0.28 · $0.28 |
| [DeepSeek V4.1 Flash Heretic Thinking](https://openuncensored.com/models/deepseek-v4.1-flash-1017-heretic-thinking) | `deepseek-v4.1-flash-1017-heretic-thinking` | Heretic (automated abliteration), reasoning | not scored yet | – | 106 tok/s | $0.20 · $0.79 |

_Abliteration removes the refusal direction from a model's weights; heretic searches the edit automatically. Uncensored fine-tunes are on the [models page](https://openuncensored.com/models), 62 text models in all._

## What else carries over

- **Streaming** in the OpenAI server-sent events format, with a usage chunk at the end.
- **Tool calls** through the standard `tools` field, so agent frameworks work unchanged.
- **Fallback across 8 hosts:** a failed request moves to the next host serving the model. Pick cheapest, fastest or default routing with `"routing": {"strategy": ...}` ([docs](https://openuncensored.com/docs#routing)).
- **Cached prompt pricing:** tokens a host serves from its cache are billed at its cached rate.
- **Prepaid keys:** when the credit runs out requests stop with `402` instead of running up a bill.

## FAQ

### Is there an OpenAI-compatible API for abliterated models?

Yes. [OpenUncensored](https://openuncensored.com/) is an OpenAI compatible API (`https://api.openuncensored.com/v1`) for 62 uncensored models, 26 of them abliterated (plain abliteration, heretic, derestricted or orthogonalized), plus 21 image models. Point the OpenAI SDK's base URL at it, use a prepaid key, and keep the rest of your code. The same key also works with the OpenAI Responses API and the Anthropic Messages API. The best abliterated model on our tests is [Abliterated Large Flash](https://openuncensored.com/models/abliterated-large-flash) (`abliterated-large-flash`), #6 (64.0).

### Which abliterated model is best?

Abliterated Large Flash (`abliterated-large-flash`) ranks highest of the abliterated models, #6 (64.0). Across every uncensored model, fine-tunes and abliterations included, the leader is DeepSeek V4.1 Flash 1017 Uncensored; see the [leaderboard](https://openuncensored.com/uncensored-llm-leaderboard).

### Does it work with LangChain, LiteLLM and the Vercel AI SDK?

Yes. Anything that takes an OpenAI base URL works: set it to `https://api.openuncensored.com/v1` and the API key to your OpenUncensored key.

### Do streaming and tool calls work?

Yes. Streaming is server-sent events in the OpenAI format, and tool calls use the standard `tools` field. Errors come back in the OpenAI error shape.

### Can I list the models without a key?

Yes: `curl https://api.openuncensored.com/v1/models` returns every model id, free.

### Do I need an account?

No. Buy a prepaid key on the [credits page](https://openuncensored.com/credits) and use it as the API key. The key is the account, and it cannot spend more than you loaded.

More: [best uncensored LLM API](https://openuncensored.com/best-uncensored-llm-api), [cheapest](https://openuncensored.com/cheapest-uncensored-llm-api), [leaderboard](https://openuncensored.com/uncensored-llm-leaderboard).
