EN ▾

Open WebUI on Windows with a Hosted Uncensored API

The usual ollama + open webui windows setup needs a GPU, a model download and a lot of disk space. If you only want the chat interface, you can run Open WebUI on Windows and connect it to a hosted OpenAI-compatible API, which skips the local model completely.

Updated

Desktop chat window linked to a cloud server while a graphics card sits idle, showing Open WebUI using a hosted API

Key points

  • Open WebUI can talk to any OpenAI-compatible endpoint, so Ollama is optional.
  • Install it with Docker Desktop or with pip, then add https://api.ollamauncensored.com/v1 and your key under Connections.
  • The model ID is uncensored, and the context window is 100,000 tokens.
  • Keep Ollama too if you want local models next to the hosted one; both can be listed in the same picker.

What you are building

Open WebUI is a browser-based chat front end. It started as an interface for Ollama, and it also supports OpenAI-style connections. That second option is what we use here. Instead of pulling a model onto your PC, you give Open WebUI an endpoint and a key, and it sends chats to the hosted model.

The result is a familiar chat window running on your own Windows machine, with your history stored locally, while the generation happens on the provider's side. You need no GPU, and the PC only has to run the web app. Cost is pay as you go: $0.15 per 1M input tokens and $0.50 per 1M output tokens, from prepaid credit. The Ollama API explainer compares this path with running your own server.

One honest limit before you start. The hosted API is text only. Open WebUI can show image and file upload buttons, but the model behind this endpoint will not read images, and it does not offer embeddings. Plain chat, streaming, tool calling and JSON mode work.

Step 1: get a key

Sign up with Google or with email and password, then open the API key page. New users can claim $0.50 of trial credit there with one click. It needs no card, it is one per person, and it lasts 7 days. The API key guide shows the exact place. Copy the key and keep it somewhere safe, as you will paste it in a few minutes.

The trial key has limits of 2 concurrent requests and 60 per minute, which is plenty for one person chatting. A funded account uses a full key with 8 concurrent requests and 300 per minute.

Step 2: install Open WebUI on Windows

There are two common routes. Pick one.

Option A: Docker Desktop

Install Docker Desktop for Windows, start it, and wait until it reports that the engine is running. It uses WSL 2, which Windows may ask you to enable. Then open PowerShell and run the command below. It starts Open WebUI on port 3000 and stores data in a named volume, so your chats survive restarts.

docker run -d -p 3000:8080 `
  -e OPENAI_API_BASE_URL=https://api.ollamauncensored.com/v1 `
  -e OPENAI_API_KEY=YOUR_KEY `
  -e ENABLE_OLLAMA_API=false `
  -v open-webui:/app/backend/data `
  --name open-webui --restart always `
  ghcr.io/open-webui/open-webui:main
# model ID to select later: uncensored

The backticks are PowerShell line continuations. In classic Command Prompt, put the whole command on one line. The two -e variables pre-fill the connection, and ENABLE_OLLAMA_API=false hides the local Ollama option. Drop that last variable if you plan to use Ollama as well. Open http://localhost:3000 and create the first local account; the first one becomes the administrator.

Option B: pip

If you prefer not to use Docker, Open WebUI can be installed as a Python package. Check its documentation for the Python version it currently needs, create a virtual environment, then install and start it:

pip install open-webui
open-webui serve
# then add https://api.ollamauncensored.com/v1 and model "uncensored" under Connections

By default it listens on port 8080, so browse to http://localhost:8080. With this route you add the connection in the settings screen, as described next.

Step 3: add the connection in the UI

If you did not pass the environment variables, or you want to check them, add the endpoint by hand.

  1. Sign in as the administrator and open Admin Settings, then Connections.
  2. In the OpenAI API section, add a connection.
  3. Enter https://api.ollamauncensored.com/v1 as the URL and paste your key.
  4. Save. Open WebUI will ask the endpoint for its model list through GET /v1/models.
  5. Start a new chat and choose uncensored in the model picker.

Menu labels shift between Open WebUI releases, so if you do not see these exact names, look for the settings area that lists connections or OpenAI-compatible APIs. If the model list stays empty, you can usually add the model ID manually in that same connection. Type uncensored in lowercase.

Before blaming the interface, you can test the key outside it. From PowerShell:

curl.exe https://api.ollamauncensored.com/v1/chat/completions -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" -d "{"model":"uncensored","messages":[{"role":"user","content":"Hello"}],"max_tokens":30}"

Use curl.exe rather than curl in PowerShell, because plain curl is an alias for a different command in some versions.

Settings that matter

Open the chat controls to adjust parameters per conversation. Temperature, top_p, stop sequences, seed and the frequency and presence penalties are passed through to the model. A system prompt in the chat or in a model preset is the place to set persona and tone, since this model follows instructions rather than refusing by default.

Mind the context. The window is 100,000 tokens, prompt plus reply, and Open WebUI resends the conversation each turn. Long chats get more expensive per turn. A 30,000-token history with a 400-token reply costs 30,000 / 1,000,000 x $0.15 + 400 / 1,000,000 x $0.50 = $0.0045 + $0.0002 = $0.0047. A hundred such turns come to $0.47, so the trial credit covers an evening of heavy use.

Streaming is on by default and works over server-sent events, with usage reported at the end. A streamed reply holds one of your concurrency slots until it finishes, so on a trial key do not start a third chat while two replies are still running.

Two housekeeping habits help. First, keep the key out of screenshots and shared compose files; if you paste a command into a forum for help, replace it with a placeholder. Second, give each conversation a clear system prompt rather than relying on one huge default. A short prompt of 200 tokens costs 200 / 1,000,000 x $0.15 = $0.00003 per turn, while a 3,000-token prompt costs $0.00045 per turn. Neither is expensive, but the smaller one leaves more room in the window for the actual conversation.

Keeping Ollama alongside

You do not have to choose. If you already have Ollama installed on Windows with a few models, leave ENABLE_OLLAMA_API unset and Open WebUI will list both sets of models in the same picker. Local models are good for private notes and offline use. The hosted model is better when you need the large context window or have no GPU to spare.

When Open WebUI runs in Docker and Ollama runs on the host, the container cannot reach Ollama at localhost. Use host.docker.internal as the host name in the Ollama URL instead. That detail applies only to local models; the hosted API is reached over the internet and needs no such trick.

Fixing common problems

ProblemCauseFix
Model list is emptyWrong URL, or the key was not savedCheck the URL ends in /v1 and re-enter the key
401 errorInvalid key or extra spacePaste the key again with no spaces
429 concurrencyToo many replies running at onceWait for the current reply to end
429 rate_limitedOver 60 (trial) or 300 (full) requests per minuteSlow down, retry in a few seconds
429 with Retry-After: 5Temporary overloadRetry after five seconds
Container exits at startDocker engine not running or WSL 2 missingStart Docker Desktop and check its status

Failed requests are not charged, so retries are free. When you are ready to continue past the trial, top up any whole amount from $20 to $500 on the pricing page. Bonuses of 5%, 10% and 15% apply from $50, $100 and $200, and credit never expires. The docs cover the API itself if you later want to call it from your own scripts.

FAQs for Developers

  • Is this the official Ollama API? No, we are an independent service. We use the same API standard but run our own uncensored model on our servers.
  • Can I use this with the OpenAI SDK? Yes, it is fully OpenAI-compatible. Just change the base URL and API key.
  • What happens if I get an error? Errors are free. You are only charged for successful token generations.
  • Is my data used for training? No. Prompts sent through our API are not used to train our model.

Questions and answers

Do I need Ollama installed to use Open WebUI?

No. Open WebUI can connect to any OpenAI-compatible endpoint. Ollama is only needed if you also want local models.

What should I enter as the URL and model?

Use https://api.ollamauncensored.com/v1 as the URL, your key as the API key, and uncensored as the model ID.

Will it work with images or documents in Open WebUI?

Chat works fully. The hosted model is text only, so it cannot read images, and the API has no embeddings endpoint.

Is anything sent to the provider besides my chat?

Open WebUI sends the messages for each request, including earlier turns and your system prompt. Prompts 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.