Open WebUI Gemini API Setup With an Uncensored LLM
Open WebUI can talk to any OpenAI-compatible endpoint, so connecting it to this uncensored model takes a base URL, a key and a couple of minutes. Here are the exact settings, a test call, and fixes for the problems people hit first.

On this page
- The short answer: what to enter in Open WebUI
- Gemini API versus this endpoint
- Install Open WebUI with the connection preconfigured
- Add the connection in the admin panel
- Test the key outside Open WebUI first
- Settings that matter for everyday chat
- Fixing common Open WebUI connection problems
- What a day of chatting costs
- More guides
Key points
- Open WebUI needs only a base URL and an API key; no Gemini connector is involved.
- Use https://api.geminiuncensored.cc/v1 as the URL and pick the model named
uncensored. - Background chat tasks can use up concurrency slots, so watch for 429 errors on a trial key.
- A typical day of chatting costs a few cents at $0.15 and $0.50 per 1M tokens.
The short answer: what to enter in Open WebUI
Open WebUI has a built-in connection type for OpenAI-style servers. That is all you need here. You add the base URL, paste your key, save, and the model list fills itself from the server. Nothing in this setup is specific to Gemini, and nothing is sent to Google.
These are the values to use:
| Field | Value |
|---|---|
| URL / base URL | https://api.geminiuncensored.cc/v1 |
| API key | The key from your account page, sent as a Bearer token |
| Model ID | uncensored |
| Endpoints used | GET /v1/models and POST /v1/chat/completions |
If you do not have a key yet, the API key page walks through sign-up. New accounts can claim $0.50 of trial credit with one click, which is plenty for testing a front end.
Gemini API versus this endpoint
People who search for an open webui gemini api guide often want one of two things. Some want to use Google's own Gemini models inside Open WebUI. Others want a Gemini-style assistant without the content refusals. This page serves the second group.
This service is not the official Gemini API and does not run Gemini models. It is a hosted API for one open-weight model that is tuned to answer without content refusals for lawful adult use, and an independent provider runs it. If you need Google's models, set up Google's API with Google's documentation, and check their current pricing and terms.
The reason both can live in the same Open WebUI window is that the app lets you add several connections. You can keep one entry for another provider and a second entry for this endpoint, then switch models from the dropdown at the top of a chat.
Install Open WebUI with the connection preconfigured
If Open WebUI is not running yet, Docker is the quickest route. The command below starts it on port 3000, keeps your chats in a named volume, and sets the endpoint through environment variables so the connection exists on first launch.
docker run -d -p 3000:8080 \
-v open-webui:/app/backend/data \
-e OPENAI_API_BASE_URL=https://api.geminiuncensored.cc/v1 \
-e OPENAI_API_KEY=YOUR_API_KEY \
--name open-webui \
ghcr.io/open-webui/open-webui:main
Open http://localhost:3000, create the local admin account, and start a new chat. The model dropdown should list uncensored. The admin account you create there is local to your Open WebUI install and has nothing to do with your API account.
One caveat: Open WebUI may store connection settings in its database after the first run. If you change the environment variables later and nothing happens, change the connection in the admin panel instead, as described next.
Add the connection in the admin panel
If Open WebUI is already installed, or you prefer clicking to environment variables, use the settings screens. Menu names shift a little between versions, but the path is the same.
- Sign in as an admin and open the Admin Panel, then Settings, then Connections.
- Under the OpenAI API section, click the plus button to add a connection.
- Enter
https://api.geminiuncensored.cc/v1as the URL and paste your key into the key field. - Press the verify button next to the URL. A green confirmation means the server answered the model list request.
- Save, start a new chat, and choose
uncensoredfrom the model selector.
Leave the URL ending in /v1 and do not add /chat/completions. The app appends the paths it needs. If you see an error that mentions a missing route, a doubled path is the usual cause.
Test the key outside Open WebUI first
When something fails, it helps to know whether the problem is the key, the network or the app. Two curl calls settle that in seconds. The first lists models, which is the same call Open WebUI makes when you verify the connection.
curl https://api.geminiuncensored.cc/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
The second sends one short chat message, with streaming off so the reply arrives as a single JSON document.
curl https://api.geminiuncensored.cc/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Say hello in five words."}],
"max_tokens": 30
}'
Both calls working means the service side is fine and any remaining trouble is inside Open WebUI. The response headers also include X-Balance-USD, which shows your remaining credit, and X-Request-Id, which is handy if you ever need to point at one specific request. The quickstart in the docs has the same calls in Python and Node.
Settings that matter for everyday chat
Open WebUI exposes sampling controls per chat and per model. A few are worth a look, because the defaults are tuned for generic assistants.
System prompt
This is where you set the persona or house rules. The model is tuned to follow instructions without refusing lawful requests, so a clear system prompt does more work here than it would on a heavily filtered model. Write what you want in plain sentences and test it with two or three typical questions.
Temperature and top_p
Both are passed through to the model. For factual or coding questions try a temperature around 0.3 to 0.5. For fiction and brainstorming, 0.8 to 1.0 gives more variety. Change one setting at a time so you can tell which one caused a change.
Context length and max tokens
The context window is 100,000 tokens, counting the prompt and the reply together. A long chat resends the whole history on every turn, so very long conversations cost more per message and eventually reach the limit. Setting max_tokens is optional; without it the reply can use whatever room is left in the window. If you want shorter answers, cap it in the advanced parameters.
Fixing common Open WebUI connection problems
The model list is empty
Check that the URL ends in /v1, that there is no trailing space after the key, and that the verify button turns green. Then run the first curl call above from the same machine. If curl works and Open WebUI does not, restart the container so it reloads its settings.
401 or an authentication error
The key is wrong, was copied with extra characters, or was pasted into the wrong connection entry. Delete the connection, add it again, and paste the key fresh. Keys go in as Authorization: Bearer, which Open WebUI does for you.
429 errors in the middle of a chat
The API returns 429 with the code concurrency when too many requests run at once, and rate_limited when you pass the per-minute cap. A trial key allows 2 concurrent requests and 60 per minute. A full key allows 8 concurrent and 300 per minute. A streamed reply holds its slot until the stream ends, so two long answers streaming at once can fill a trial key. Open WebUI can also fire background requests, such as generating a chat title, next to your main message. Look in the admin interface settings for a task model option and point those jobs at the same model, or switch the automatic title and tag features off if you hit the limit often.
On temporary overload the API also returns 429 with a Retry-After: 5 header. Waiting five seconds and sending the message again is the right fix.
Replies stop or the stream hangs
Streaming uses server-sent events. A reverse proxy in front of Open WebUI that buffers responses will make replies appear all at once or stall. Turn proxy buffering off for the Open WebUI route if you serve it on your own domain.
What a day of chatting costs
Billing is per token from prepaid credit, at $0.15 per 1M input tokens and $0.50 per 1M output tokens. There is no subscription, and failed or refused requests are not charged. The pricing page lists the top-up amounts and bonuses.
Take a heavy day: 30 messages, where each request carries about 6,000 tokens of history plus your new text, and each answer is about 400 tokens.
- Input: 30 x 6,000 = 180,000 tokens, which is 0.18 of a million, so 0.18 x $0.15 = $0.027.
- Output: 30 x 400 = 12,000 tokens, so 0.012 x $0.50 = $0.006.
- Total: $0.033, or about three and a third cents.
Even a month of days like that stays under a dollar and a half. Prompts are not used for training, and Open WebUI keeps your chat history in your own Docker volume. Credit does not expire, so a minimum top-up of $20 in USDT on TRC20 or USDC on Base lasts a long time at this rate.
More guides
Questions and answers
Does this give me Google's Gemini models in Open WebUI?
No. It is not the Gemini API and does not serve Gemini models. It is a separate OpenAI-compatible endpoint for one open-weight uncensored model, model ID uncensored.
Which URL goes in the Open WebUI connection field?
Use https://api.geminiuncensored.cc/v1 and leave off /chat/completions. Open WebUI adds the paths it needs and reads the model list from /v1/models.
Why do I get 429 errors with only one chat open?
Background tasks such as title generation can run next to your message. A trial key allows only 2 concurrent requests, so they can collide. A full key allows 8.
How do I pay for credit?
Top-ups are made in crypto, USDT on TRC20 or USDC on Base, in whole amounts from $20 to $500. New users can try the service first with $0.50 of trial credit.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.