EN ▾
Get API key

Unfiltered AI Models in Open WebUI via API

To use unfiltered ai models open webui can talk to, add an OpenAI-compatible connection that points at our base URL, paste your key and pick the model called uncensored. It takes about two minutes.

Updated

Isometric illustration of a chat window connected by a glowing cable to a remote cloud model endpoint

No card needed. After sign-up, claim $0.50 of free test credit with one click (once per person).

Get API key

What you need before you start

Open WebUI is a self-hosted chat interface that can connect to Ollama and to any server that speaks the OpenAI API format. Our API speaks that format, so the connection is a settings change, not a custom integration. You need three things:

  • A running Open WebUI install, with admin access.
  • An API key from the key page. Sign-up is with Google or with email and password, and new users can claim $0.50 of trial credit there with one click, no card needed.
  • The base URL https://api.unfilteredaimodels.top/v1 and the model ID uncensored.

Test the key outside Open WebUI first. It saves guesswork if something fails later:

curl https://api.unfilteredaimodels.top/v1/models \
  -H "Authorization: Bearer YOUR_API_KEY"

You should get a JSON list that includes uncensored. If you get an authorization error here, fix the key before touching any interface.

Add the connection in the admin panel

Menu names shift a little between Open WebUI versions, but the path is the same in recent ones.

  1. Sign in as an admin and open Admin Settings, then Connections.
  2. In the OpenAI API section, add a new connection with the plus button.
  3. Enter https://api.unfilteredaimodels.top/v1 as the URL. Keep the /v1 at the end and leave off any trailing path such as /chat/completions.
  4. Paste your key into the key field. Check that no space or line break came along with it.
  5. Save, then use the verify button next to the connection if your version has one.

Open WebUI then asks the server for its model list through GET /v1/models. Open a new chat and open the model selector. You should see uncensored. Select it and send a short message to confirm the round trip.

If you want only this model offered to users, you can add a model filter in the connection settings so other entries do not clutter the dropdown. The API exposes one model anyway, so there is little to filter.

Or configure it with Docker environment variables

If you start Open WebUI from Docker, you can set the connection at launch. Open WebUI reads OPENAI_API_BASE_URL and OPENAI_API_KEY:

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

Then browse to http://localhost:3000, create the first account (which becomes the admin) and start chatting.

A caveat that catches people: Open WebUI stores connection settings in its database after the first run. Changing the environment variables later may not override what is already saved. If you change keys, edit the connection in the admin panel instead of editing the container command.

With Docker Compose the same two variables go under environment: for the service. Keep the key out of version control by loading it from an env file.

Set up a character or writing assistant

A connected model is only a blank slate. The useful part is the system prompt. Open WebUI lets you save a model preset with a system prompt, so you can create entries such as a fiction editor or a roleplay narrator that sit on top of uncensored.

A starting system prompt for adult fiction

{
  "role": "system",
  "content": "You are the narrator of an interactive story for adult readers. Stay in the setting. Write in third person, past tense, around 150 words per reply. Never write sexual content involving minors."
}

Paste only the content text into the system prompt box. The JSON above shows the structure the API receives.

Sampling settings

In the chat controls you can change the temperature, top_p and the penalties. They are passed through to the model. A good starting point for fiction is a temperature near 0.8. For analysis or summaries, lower it to 0.3. Use a fixed seed only when you want repeatable output for testing.

Keep the model's scope in mind. It is tuned to answer without content refusals for lawful adult use, and sexual content involving minors is blocked. It does not make up for a weak prompt, so give it a clear setting and style.

Know what it costs inside Open WebUI

Open WebUI sends the whole conversation with each message, so input tokens climb as a chat gets longer. Prices are $0.15 per 1M input tokens and $0.50 per 1M output tokens.

A worked case: a 30-turn chat that ends up sending 60,000 input tokens in total and receiving 9,000 output tokens costs 60,000 x $0.15 / 1M = $0.009 plus 9,000 x $0.50 / 1M = $0.0045. That is $0.0135, about a cent and a half.

Open WebUI can also issue extra background requests, for example to name a chat or suggest follow-ups, and those use tokens like any other call. If you want a cleaner bill, look in the admin settings for the task model options and turn off the features you do not use. The pricing page has top-up amounts and bonuses, and failed or refused requests are not charged.

Keep the key safe and the install tidy

Your API key is a password for your balance. Anyone who has it can spend your credit, so treat it with care.

  • Do not share the admin login. Anyone with access to the Connections page can read the stored key. Give other people normal user accounts instead.
  • Keep the key out of screenshots and shared compose files. If it leaks, create a new one on the key page and replace it in Open WebUI right away.
  • Watch the balance. Each API response carries an X-Balance-USD header. A quick curl to the chat endpoint shows it in the output when you add the -i flag, which is handy for a cron job that warns you at a low balance.
  • Back up the data volume. The open-webui volume holds your accounts, chats and saved presets. Copy it before you pull a new image.

When you update, pull the new image, remove the old container and start it again with the same volume. Your connection settings and chats stay in the volume. After an update, open a chat once and confirm that uncensored still appears in the model list.

Finally, remember that chats stored in Open WebUI live on your own server, while each message you send is also processed by the API to produce a reply. Prompts are not used for training, but you should still avoid pasting secrets you would not want a remote service to see.

Limits, concurrency and multi-user setups

A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent and 60 per minute. Open WebUI is multi-user, so every person on your server shares one key and one pool of slots.

A streamed reply holds its concurrency slot until the last token arrives. With a trial key and two people chatting at once, a third message may hit the ceiling and return HTTP 429 with the error code concurrency. Exceeding the per-minute cap returns rate_limited. Temporary overload also gives 429, with a Retry-After: 5 header, so waiting five seconds and retrying is the right response.

For a household or a small team this is usually plenty. For a public instance, give every group its own deployment or put a rate limit in front of Open WebUI. The production checklist lists what else to plan for.

Fixing common errors

SymptomLikely causeFix
No models in the dropdownURL missing /v1, or bad keyRe-enter the URL exactly, then rerun the curl test
401 or authorization errorKey pasted with a space, or an old keyCopy the key again from the key page
Connection refused from DockerContainer cannot reach the internet or DNS failsCheck the container network and proxy settings
Intermittent 429Too many parallel chats for your keySlow down, retry after 5 seconds, or use a full key
Replies cut shortA low max tokens value in the chat controlsRaise it or clear the field; it is optional

If a call fails inside Open WebUI, the response header X-Request-Id identifies the request. Include it when you write to support, and the team can find the exact call.

The quickstart shows the same endpoint from Python and Node, which is a quick way to separate a key problem from an interface problem.

Questions and answers

Does Open WebUI need a plugin for this API?

No. Open WebUI supports OpenAI-compatible connections natively. Enter the base URL and key in the Connections settings.

What model name do I select?

Select uncensored. It is the only model ID the API exposes.

Can I run it with Docker?

Yes. Pass OPENAI_API_BASE_URL and OPENAI_API_KEY as environment variables when you start the container, or add the connection afterwards in the admin panel.

Can the same key serve several users?

Yes, but they share the limits: 8 concurrent requests and 300 per minute on a full key.

Your key is one form away

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

Get API key