Updated
Open WebUI Base URL: Connect an OpenAI-Compatible API
In Open WebUI you add an OpenAI connection, paste the API base URL and your key, and the models appear in the chat selector. The steps below use our endpoint, and cover the Docker variable route and the problems people hit most.

Key points
- The base URL for our API is https://api.unrestrictedsearch.com/v1 and the model it lists is uncensored.
- Add it under Admin Settings, Connections, or pass OPENAI_API_BASE_URL and OPENAI_API_KEY to the container.
- An empty model list almost always means the URL lacks /v1 or the key is wrong.
- Background tasks such as title generation use extra requests, so mind the concurrency limit.
Quick steps
Here is the shortest path to set the open webui base url for an OpenAI-compatible server. Menu names can shift a little between Open WebUI releases, but the idea stays the same.
- Sign in to Open WebUI as an admin.
- Open the admin settings and go to Connections.
- In the OpenAI API section, add a new connection with the plus button.
- For the URL enter
https://api.unrestrictedsearch.com/v1. - For the key paste your API key, then use the verify button if your version shows one.
- Save, start a new chat, and pick
uncensoredfrom the model dropdown.
Do not append /chat/completions to the URL. Open WebUI adds the path itself, and it fetches the model list from GET /v1/models using the same base. If you still need a key, the key page covers sign-up with Google or email and the $0.50 trial credit.
Test the endpoint before you blame the UI
Two curl calls tell you whether the problem is the API settings or Open WebUI. Run them from the machine that hosts Open WebUI if you can, since that is the network that matters.
curl https://api.unrestrictedsearch.com/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
curl https://api.unrestrictedsearch.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "uncensored", "messages": [{"role": "user", "content": "Say hello."}]}'
The first should return a list that includes uncensored. The second should return a short assistant message. If both work, the key and URL are fine and any remaining trouble is in how Open WebUI is configured. If the first call fails with 401, fix the key. If it returns 404, check the URL path.
Setting it with Docker environment variables
If you run Open WebUI in Docker, you can pre-load the connection when the container starts. The relevant variables are OPENAI_API_BASE_URL and OPENAI_API_KEY.
docker run -d -p 3000:8080 \
-e OPENAI_API_BASE_URL="https://api.unrestrictedsearch.com/v1" \
-e OPENAI_API_KEY="YOUR_API_KEY" \
-v open-webui:/app/backend/data \
--name open-webui --restart always \
ghcr.io/open-webui/open-webui:main
With Docker Compose the same thing looks like this:
services:
open-webui:
image: ghcr.io/open-webui/open-webui:main
ports:
- "3000:8080"
environment:
- OPENAI_API_BASE_URL=https://api.unrestrictedsearch.com/v1
- OPENAI_API_KEY=YOUR_API_KEY
volumes:
- open-webui:/app/backend/data
volumes:
open-webui:
One behaviour confuses people. Open WebUI stores many settings in its own database after the first start. After that, changing the environment variable may not change anything, because the saved value from the admin panel takes priority. If you edit the variables and see no effect, change the connection in the admin settings instead, or reset the stored configuration.
Because our API is a remote service, the container only needs outbound HTTPS access. There is no need to publish extra ports or map localhost. The common Docker problem with local model servers, where the container cannot reach a host process, does not apply here.
Choosing the model and setting a system prompt
Our endpoint exposes one model, so the dropdown shows a single entry, uncensored. It is an open-weight model run by an independent provider, tuned to answer without content refusals for lawful adult use. It is not the official API of any model vendor.
Open WebUI lets you create a custom model preset on top of it. This is the place to put a system prompt, a default temperature and sampling values, so you do not retype them for every chat. The API passes through temperature, top_p, stop, seed and the frequency and presence penalties.
- For roleplay and fiction, a temperature of 0.8 to 1.0 with a system prompt that describes the character and the writing style usually works well.
- For factual or extraction tasks, drop the temperature to 0.2 or lower.
- For long stories, remember the context window is 100,000 tokens, shared by the prompt and the reply.
If you share one install with other people, create one preset per use, for example a writing helper and a code helper, each with its own system prompt. Everyone still draws on the same API key, so the limits below count all users together. Keep the key in the connection settings, where regular users cannot read it, instead of pasting it into prompts or notes.
The hard rule applies in every preset: no sexual content involving minors. That line is not adjustable. For the background on what unrestricted means here, the cost and trade-off analysis is a good companion read.
Background tasks and the concurrency limit
Open WebUI does more than send your message. After a reply it can make extra model calls to generate a chat title, suggest follow-up questions or create tags. By default these background tasks may use the model you are chatting with, so a single message can trigger several requests close together.
Streaming makes it more visible. A streamed reply holds its concurrency slot until the stream ends, and the API limits are:
- Full key: 8 concurrent requests, 300 requests per minute.
- Trial key: 2 concurrent requests, 60 requests per minute.
On a trial key, two simultaneous requests are the ceiling. Send a message while a title is being generated and you can see an error in the UI. The API replies with HTTP 429 and the error code concurrency. The code rate_limited means too many per minute, and a temporary overload gives 429 with Retry-After: 5.
Fixes, from simplest to most effective:
- Wait a few seconds and resend. The limit clears as requests finish.
- In the interface settings of the admin panel, turn off title and tag generation if you do not need them.
- Fund the key. A full key has four times the concurrency of a trial key.
- If several people share one Open WebUI install and one API key, remember that all of them draw from the same 8 slots.
What this costs when you chat
Pricing is per token, from prepaid credit: $0.15 per 1M input tokens and $0.50 per 1M output tokens. Open WebUI sends the whole conversation each turn, so input tokens grow as a chat gets longer.
A worked example: a long roleplay session reaches 30 turns, and the last request carries 20,000 input tokens and returns 600 output tokens. Input: 20,000 x $0.15 / 1,000,000 = $0.003. Output: 600 x $0.50 / 1,000,000 = $0.0003. That final turn costs $0.0033.
Now a heavy user who sends 200 requests a day at an average of 8,000 input and 500 output tokens. Per request: $0.0012 for input plus $0.00025 for output, which is $0.00145. Times 200 gives $0.29 a day, about $8.70 over 30 days. A $20 top-up, the minimum, would last that user roughly 68 days. Credit never expires, and failed or refused requests are not charged. Top-ups from $50 carry a bonus of +5%, rising to +10% from $100 and +15% from $200. All amounts and payment options are listed on the pricing page.
Troubleshooting checklist
| What you see | What to check |
|---|---|
| No models in the dropdown | URL must end in /v1. Re-run the models curl above. Reload the page after saving. |
| Verify button fails | Typo in the key, or a space copied with it. Paste it again. |
| Error mentioning 401 | Wrong or revoked key. |
| Replies stop mid-way | Check whether a max_tokens value is set in the preset, and the credit balance in X-Balance-USD. |
| Error 429 right after a message | Concurrency from background tasks. See the section above. |
| Image or voice features do nothing | The API is text only. Image generation, audio and embeddings are not offered. |
Open WebUI's document search and knowledge features rely on embeddings, which this API does not provide, so configure a separate embedding source for those. Plain chat works without one. The API documentation lists every parameter that can appear in a request.
More guides
Questions and answers
What base URL do I enter in Open WebUI?
Enter https://api.unrestrictedsearch.com/v1 with the API key in the key field. The model that appears is uncensored.
Should the URL end with /v1 or /chat/completions?
End it with /v1. Open WebUI appends the chat completions path itself.
Why does my model list stay empty?
Usually the URL has no /v1 or the key is wrong. Test GET /v1/models with curl first, then check the saved connection.
Does it keep my chats private?
Open WebUI stores chats on your own server. Prompts sent to the API are not used for training.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.