EN ▾
Get API key

Add Uncensored LLMs to Open WebUI as a Custom API

Open WebUI can talk to any OpenAI-compatible endpoint, so connecting an uncensored llms api to it takes one connection entry: a base URL, a key and the model ID. This page shows the exact values and what to do when the model list stays empty.

Updated

Chat dashboard connected by a glowing cable to an API server cube, with message bubbles flowing between them

Key points

  1. Open WebUI needs three values: the base URL ending in /v1, your API key and the model ID uncensored.
  2. You can add the connection in Admin Settings or preset it with two Docker environment variables.
  3. Test the key with curl before blaming Open WebUI; most failures are a missing /v1 or a bad key.
  4. Background tasks such as title generation use extra requests, which matters on a trial key with 2 concurrent requests.

The short version

If you only want the settings, here they are. Open WebUI treats this service as an OpenAI connection, because the API follows the OpenAI chat format. For a setup that matches the search uncensored llms api open webui, you enter these values and nothing else:

Field in Open WebUIValue
API Base URLhttps://api.uncensoredllms.top/v1
API KeyThe key from your API key page
Model IDuncensored

Save the connection, open a new chat, pick uncensored from the model selector and send a message. If a reply streams in, you are done. The rest of this article covers the longer route: where each setting lives, how to preconfigure it for Docker, how to test outside the UI and how to fix the usual errors.

What you need before you start

You need a running Open WebUI instance (local, on a home server or on a VPS) and an account on the API side. Sign-up works with Google or with email and password. After sign-up, the API key page shows your key, and new users can claim $0.50 of trial credit there with one click. The trial needs no card, lasts 7 days and is limited to one per person.

The trial is enough to confirm that the wiring works, but it is a small amount, and the trial key is limited to 2 concurrent requests and 60 requests per minute. A full key gets 8 concurrent requests and 300 requests per minute. That difference becomes relevant in Open WebUI, as explained below. Prices for later top-ups are on the pricing page.

What you are connecting to is a single open-weight text model, tuned to answer without content refusals for lawful adult use. It is run by an independent provider and is not the official API of any model vendor. It generates text only. There is no image generation, no audio and no embeddings, so Open WebUI features that depend on those (such as image generation or a document embedding backend) need another source.

Add the connection in the admin panel

The menu names change a little between Open WebUI releases, but the path has stayed the same for a long time. Log in as an admin and follow these steps.

  1. Open your profile menu and choose Admin Panel, then Settings, then Connections.
  2. Find the OpenAI API section and click the plus button to add a connection.
  3. In the URL field, paste https://api.uncensoredllms.top/v1. Keep the /v1 at the end and do not add a trailing path such as /chat/completions.
  4. Paste your key into the key field.
  5. If the dialog has a model IDs field (an allow-list), you can type uncensored there. Leaving it empty makes Open WebUI call GET /v1/models and list whatever comes back.
  6. Use the verify button next to the fields if your version has one, then save.

When the model list refreshes, uncensored should appear in the selector at the top of a new chat. If you run several connections, for example a local model and this API, Open WebUI shows models from all of them in one list, so you can switch per chat.

Making the model visible to other users

Models from a new connection may be private to admins by default in some versions. If other accounts on your instance cannot see uncensored, open the model in the workspace or admin model list and change its access so the right users or groups can use it. Keep in mind that every chat from your instance is billed to the one key you entered, so share it only with people you trust.

Preset the connection with Docker environment variables

If you rebuild containers often, set the connection through environment variables instead of clicking through the UI. Open WebUI reads OPENAI_API_BASE_URL and OPENAI_API_KEY on startup.

docker run -d -p 3000:8080 \
  -v open-webui:/app/backend/data \
  -e OPENAI_API_BASE_URL=https://api.uncensoredllms.top/v1 \
  -e OPENAI_API_KEY=YOUR_KEY \
  --name open-webui \
  ghcr.io/open-webui/open-webui:main

Replace YOUR_KEY with your own key. For Docker Compose, put the same two variables under environment and keep the key in an .env file that is not committed to git.

One detail catches people out: Open WebUI stores settings in its data volume. After the first launch, values saved through the admin panel can take priority over the variables you pass later, depending on the version and on whether persistent config is enabled. If you change the variables and nothing happens, edit the connection in the panel or reset it there.

Test the key outside Open WebUI

When something fails, split the problem in two: does the API accept your key, and does Open WebUI reach it? A one-line curl answers the first question.

curl https://api.uncensoredllms.top/v1/models \
  -H "Authorization: Bearer YOUR_KEY"

A JSON list that contains uncensored means the key and URL are right. Now send a chat request:

curl https://api.uncensoredllms.top/v1/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "uncensored", "messages": [{"role": "user", "content": "Say hello in one sentence."}]}'

The same check in Python with the OpenAI SDK, useful if you want to confirm the streaming path:

from openai import OpenAI

client = OpenAI(base_url="https://api.uncensoredllms.top/v1", api_key="YOUR_KEY")

stream = client.chat.completions.create(
    model="uncensored",
    messages=[{"role": "user", "content": "Say hello in one sentence."}],
    stream=True,
)
for chunk in stream:
    if chunk.choices and chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

If both commands work and Open WebUI still fails, the problem is on the Open WebUI side: the URL typed into the connection, a network rule on the machine that hosts it, or a proxy. The quickstart docs list the same endpoints and headers.

Chat settings worth changing

The model answers without content refusals, so a system prompt is the main control you have over tone and format. In Open WebUI you can set one per chat (the controls icon at the top right) or attach it to a custom model preset in the workspace. A short, specific prompt works better than a long one. Say who the assistant is, what format you want, and what it should do when a request is unclear.

Sampling parameters are passed through, so the usual sliders work: temperature, top_p, stop sequences, seed and the frequency and presence penalties. For fiction and open-ended writing, a temperature around 0.8 to 1.0 gives varied text. For structured output or code, drop it to 0.2 or lower. Setting a seed makes reruns of the same prompt easier to compare while you tune a preset.

The context window is 100,000 tokens, prompt plus completion. Open WebUI resends the whole conversation each turn, so long chats cost more per message as history grows. You do not need to set max_tokens; the completion can use the rest of the window. If you want shorter answers, say so in the system prompt rather than cutting the output off mid-sentence with a low limit.

Common problems and fixes

SymptomLikely causeFix
Model list is emptyURL missing /v1, or a typo in the hostUse the full base URL and run the curl test above
401 or an authentication errorWrong key, extra space, or a key pasted with quotesCopy the key again from the API key page
Chat fails with HTTP 429 and code concurrencyToo many requests at once for your keyWait for streams to finish, or move to a full key (8 at once)
429 with code rate_limitedOver the per-minute request capSlow down automated tools; the cap is 60 per minute on trial, 300 on a full key
429 with a Retry-After: 5 headerTemporary overloadRetry after five seconds
Replies cut off or never startA reverse proxy buffering or timing out streamsTurn off response buffering for the Open WebUI route

The concurrency case deserves a note. A streamed request holds its slot until the stream ends, and Open WebUI can fire extra background requests next to your chat, such as generating a chat title or follow-up suggestions with the same model. On a trial key with only 2 slots, those tasks can collide with your message. Turning off the optional title and tag generation in the interface settings, or choosing a different task model, removes the clash. With a full key you will rarely notice it.

Cost and privacy in a self-hosted UI

Billing is pay as you go from prepaid credit, at $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription, credit does not expire, and failed or refused requests are not charged. A typical Open WebUI exchange of 1,000 input tokens and 500 output tokens costs $0.0004, so the $0.50 trial covers about 1,250 messages of that size. The response headers include X-Balance-USD, so scripts can check the remaining balance; the pricing page has the top-up amounts and bonuses.

Prompts are not used for training. Your chat history stays in your own Open WebUI database, on your own server, which is a practical reason many people use a self-hosted front end. Do not forget to protect that instance with a login, since anyone who can open it can spend your credit. Content rules still apply: the service is for lawful adult use, and sexual content involving minors is never allowed.

Questions and answers

What base URL do I enter in Open WebUI?

Enter https://api.uncensoredllms.top/v1 and keep the /v1 at the end. Open WebUI appends the path for models and chat completions by itself.

Which model ID should I use?

Use uncensored. It is the only model ID on this API, and it is the one that GET /v1/models returns.

Can I use it alongside Ollama models in the same Open WebUI?

Yes. Open WebUI can hold an Ollama connection and one or more OpenAI-compatible connections at once, and it merges their models into one selector.

Does Open WebUI work with the trial key?

Yes, for testing. The trial key allows 2 concurrent requests and 60 requests per minute, so disable background title generation or expect an occasional 429.

Is there a free tier?

There is no free tier. New users can claim a one-time $0.50 trial credit, valid for 7 days, and after that you pay from prepaid credit.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key