---
title: "LibreChat custom endpoint for uncensored models"
canonical: https://unrestrictable.ai/guides/librechat
generated: 2026-11-16T02:57:38.103Z
source: https://unrestrictable.ai/guides/librechat
base_url: https://api.unrestrictable.ai/v1
---

# Uncensored models in LibreChat

One entry under endpoints.custom in librechat.yaml: name, key from .env, /v1 base URL, a models.default list, a small titleModel. Then mount, cost, fixes.

Steps checked November 6, 2026 · prices as of November 16, 2026

Any API that speaks the OpenAI chat format can become a custom endpoint in LibreChat, declared in `librechat.yaml` with four things: a name, a key, a base URL and the models to offer. Add one such entry and the uncensored builds appear in LibreChat’s endpoint selector beside the others, paid per token. The ids below also drop into [Open WebUI](https://unrestrictable.ai/guides/open-webui) and [OpenCode](https://unrestrictable.ai/guides/opencode).

## What you need

A running LibreChat (the Docker setup is assumed below), a key from the [console](https://app.unrestrictable.ai/console), and write access to the project root. LibreChat loads `librechat.yaml` from there, and each custom endpoint is a single list item under `endpoints.custom`. The key itself belongs in `.env`; the YAML points at it by variable name, which is the form LibreChat’s docs recommend for `apiKey`. With Docker, the YAML reaches the container through a bind mount declared in `docker-compose.override.yml`, and a restart picks it up.

## First reply

1. Create a key in the [console](https://app.unrestrictable.ai/console) and add it to `.env`, the file that sits beside `docker-compose.yml`:

```
# .env
UNRESTRICTABLE_API_KEY=sk-unr-live-…
```

1. Declare the endpoint in `librechat.yaml`. Treat the ids under `models.default` as a first pick; every id on the [models page](https://unrestrictable.ai/models) is written the same way:

```
# librechat.yaml
version: 1.3.18
cache: true
endpoints:
  custom:
    - name: 'Unrestrictable'
      apiKey: '${UNRESTRICTABLE_API_KEY}'
      baseURL: 'https://api.unrestrictable.ai/v1'
      models:
        default:
          - 'glm-5.3-uncensored'
          - 'deepseek-v4-pro-uncensored'
          - 'deepseek-v4.1-flash-abliterated'
          - 'glm-5.3-abliterated'
          - 'glm-5.3-flash-uncensored'
        fetch: false
      titleConvo: true
      titleModel: 'glm-5.3-flash-uncensored'
      modelDisplayLabel: 'Unrestrictable'
```

1. Make sure the override file still mounts the YAML, then restart:

```
# docker-compose.override.yml
services:
  api:
    volumes:
      - type: bind
        source: ./librechat.yaml
        target: /app/librechat.yaml
```

Run `docker compose down && docker compose up -d` and the file is read again. Your endpoint shows in the selector under its `name`, offering the models from `models.default`.

To try the same models before touching any YAML, the [browser chat](https://unrestrictable.ai/chat) runs the same catalog with three free turns a day and no account.

## Each field, explained

- name: Unrestrictable what the endpoint selector shows; must be present and unique
- apiKey: ${UNRESTRICTABLE_API_KEY} pulls the sk-unr- key out of .env; user_provided instead asks every user for their own
- baseURL: https://api.unrestrictable.ai/v1 keep the /v1; LibreChat adds /chat/completions on its own, so leave directEndpoint out
- models.default: the ids above what the model picker offers while fetch is false; required
- models.fetch: false set to true, it would fill the picker with every model the key can reach
- titleConvo, titleModel: glm-5.3-flash-uncensored turns on automatic chat titles and names the small model that writes them
- modelDisplayLabel: Unrestrictable the text next to the AI icon in a chat; defaults to "AI"

## Which model

On every turn LibreChat resends the entire conversation in the OpenAI format, and all the builds on the models page accept it. The first cost column prices one turn of 2,000 tokens in and 500 out; the second prices one title request. Both use the catalog prices of 2026-11-16.

| Model | One turn | One title |
| --- | --- | --- |
| [GLM-5.3 Uncensored](https://unrestrictable.ai/models/glm-5.3-uncensored) | $0.00099 | $0.0003 |
| [DeepSeek V4 Pro Uncensored](https://unrestrictable.ai/models/deepseek-v4-pro-uncensored) | $0.0029 | $0.001 |
| [DeepSeek V4.1 Flash Abliterated](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) | $0.0025 | $0.00088 |
| [GLM-5.3 Abliterated](https://unrestrictable.ai/models/glm-5.3-abliterated) | $0.0065 | $0.0023 |
| [GLM-5.3 Flash Uncensored](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) | $0.00039 | $0.00011 |

GLM-5.3 Uncensored answers a first message for $0.00099. Because `titleConvo` is on, every new chat also sends one title request, around 1,000 tokens in and 20 out: $0.0003 on GLM-5.3 Uncensored, against $0.00011 on GLM-5.3 Flash Uncensored. That gap is why the example names a separate titleModel.

| Model | Build | Input $/M | Output $/M |
| --- | --- | --- | --- |
| [GLM-5.3 Uncensored](https://unrestrictable.ai/models/glm-5.3-uncensored) glm-5.3-uncensored | Uncensored | $0.282 | $0.846 |
| [DeepSeek V4 Pro Uncensored](https://unrestrictable.ai/models/deepseek-v4-pro-uncensored) deepseek-v4-pro-uncensored | Uncensored | $0.97 | $1.94 |
| [DeepSeek V4.1 Flash Abliterated](https://unrestrictable.ai/models/deepseek-v4.1-flash-abliterated) deepseek-v4.1-flash-abliterated | Abliterated | $0.8488 | $1.6975 |
| [GLM-5.3 Abliterated](https://unrestrictable.ai/models/glm-5.3-abliterated) glm-5.3-abliterated | Abliterated | $2.1825 | $4.365 |
| [GLM-5.3 Flash Uncensored](https://unrestrictable.ai/models/glm-5.3-flash-uncensored) glm-5.3-flash-uncensored | Uncensored | $0.1053 | $0.3685 |

Prices per million tokens, read from the live catalog on 2026-11-16.

## Prove it works

On the host that runs LibreChat, ask the API for the models the key can reach. Each id in `models.default` must appear:

```bash
curl https://api.unrestrictable.ai/v1/models -H "Authorization: Bearer sk-unr-live-…"
```

Then send a single streamed request, as LibreChat would. With `-i` the headers print, and `x-uplink-request-id` is the id to quote to support.

```bash
curl -i https://api.unrestrictable.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-unr-live-…" \
  -H "Content-Type: application/json" \
  -d '{"model": "glm-5.3-uncensored", "messages": [{"role": "user", "content": "Reply with the single word ok."}], "stream": true}'
```

When both commands succeed and LibreChat still fails, the fault is in the YAML or the mount. Read the container log right after `docker compose up`.

## When it fails

- No endpoint in the selector: either the file was never mounted or the YAML failed to parse. The container log after `docker compose up` points at the line.
- `401 invalid_api_key`: a wrong or revoked key, or the variable named in `apiKey` is not the one spelled in `.env`.
- `402 insufficient_balance`: not enough balance for this request; top up in the console. `402 monthly_limit_reached`: the key has reached the monthly spending cap you gave it.
- `404 model_not_found`: one of the ids in `models.default` does not exist on the models page, or a display name was written in place of an id.
- `429 rate_limited`: the key’s rate limit was hit. All users of a single endpoint share that key and that limit. `retry-after` in the response says how long to wait.
- The picker lists every model the key can reach: `fetch` is true. Make it `false` and curate the list in `models.default`.

## Sources

The field names, the environment-variable form of apiKey, the baseURL convention and the mount come from LibreChat’s documentation, read 2026-11-06: [Custom Endpoint Object Structure](https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/custom_endpoint) and [Custom Endpoints quick start](https://www.librechat.ai/docs/quick_start/custom_endpoints). Every price on this page is rendered from the live catalog.

## Questions

### Which file holds a LibreChat custom endpoint, and where?

librechat.yaml in the project root. The endpoint is one list item under endpoints.custom carrying name, apiKey, baseURL and models. Under Docker, docker-compose.override.yml mounts that file into the container, and a restart loads it.

### Should the baseURL end in /v1?

It should: https://api.unrestrictable.ai/v1. LibreChat adds /chat/completions after it, exactly as its own OpenAI-compatible examples do with a /v1 base. directEndpoint exists for a URL that already is the full completions path.

### Can users of my LibreChat each pay with their own key?

They can. Put user_provided in apiKey and each user types a key into the endpoint's settings, drawing on their own balance. With the env-var reference, everyone on the instance chats on the single key you configured.

### Which of these models accept the OpenAI format?

All of them. One key covers the whole models page, and each build there takes an OpenAI-format call to /v1/chat/completions, so models.default accepts any id from that page, spelled the same way. See the models page.

### How much does running LibreChat on this API cost?

LibreChat is free software, so the only cost is tokens, at the live prices in the table, drawn from a prepaid balance with no subscription required. Pointing titleModel at a small build keeps the title requests cheap.

Every model above is on the [uncensored model list](https://unrestrictable.ai/models) with its live price per million tokens. [Per-token pricing](https://unrestrictable.ai/pricing) sets the whole catalog side by side, and the [family directory](https://unrestrictable.ai/uncensored) groups the builds by base model.

[Get a key](https://app.unrestrictable.ai/console) Prepaid from $10, no subscription.

## New models and price changes, once a month.

New uncensored builds with their prices, price moves, and what the daily model check found.
