Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

Run a private AI chat with Open WebUI and Ollama

Start your own ChatGPT-style chat on a rented GPU with Open WebUI and Ollama: pick a GPU for your model, sign in, add models and stop paying when you are done.

Published November 26, 20267 min read

Open WebUI is a chat website that looks and works like the popular AI chat apps. Ollama is the program that downloads and runs open models such as Llama, Qwen, Gemma and Mistral. Together on a rented GPU they give you a private chat: the model runs on a server you control, your conversations are stored on that server's disk, and you pay by the second only while it runs. This guide takes you from nothing to a first answer, then covers the choices that decide quality and cost: which model, which GPU, and when to stop.

What you need

  • An Apidly account with some credit. Sign up here and the template is preselected.
  • A rough idea of the model you want. The model decides how much GPU memory (VRAM) you need.
  • About ten minutes for the first start, because the server downloads the chat page and a starter model.

You do not need an SSH key or a terminal. Everything in this guide happens in the browser.

Step 1: Choose a model, then the GPU memory it needs

The model must fit in GPU memory, with some room left for the conversation. Ollama downloads models in 4-bit form by default, so a quick estimate is about 0.5 GB per billion parameters, plus 20 to 30 percent for the conversation and the program itself. Longer chats and long documents need more.

Model size Example models in the Ollama library GPU memory to look for
3B llama3.2:3b (the starter model) 8 GB
7B to 9B qwen2.5:7b, llama3.1:8b, gemma2:9b 8 to 12 GB
14B qwen2.5:14b 12 to 16 GB
27B to 32B gemma2:27b, qwen2.5:32b 24 GB
70B llama3.1:70b 48 GB

These are estimates, not measurements. How much VRAM do you need? explains the maths, and the models catalogue shows estimates for popular models. If you are unsure, start with a 7B or 8B model on a 12 GB or 16 GB card: it answers everyday questions well, and you can move to a larger model later without losing your chats.

The template runs a fixed Ollama release. Model families published after that release may not download or load on it; if a pull ends with a version error, choose another model.

Step 2: Start the server

The quickest way is Quick start. Open Quick start with this template, or from Overview select Quick start, then Chat with an AI model. It picks the Open WebUI + Ollama (private chat) template and the cheapest server in stock that fits, and shows the price and an automatic stop before you select Start my server.

To choose the GPU yourself, use Deploy:

  1. Open Deploy, sort by Price, low to high and use the GPU memory filter for the memory you estimated in Step 1. For 24 GB, the RTX 4090 and RTX 3090 are common choices; for 70B models, 48 GB cards such as the RTX A6000 or L40S. Each GPU page shows what is in stock and its current price. Prices follow supply, so check live pricing rather than a number in a guide.
  2. Select Language models above the template cards, then the Open WebUI + Ollama (private chat) card. The template page has the full description.
  3. Under Environment variables, OLLAMA_MODEL is the model downloaded at the first start (llama3.2:3b by default). Set it to the model you chose, for example qwen2.5:7b, so it is ready when you sign in. Leave WEBUI_ADMIN_PASSWORD empty to get a generated password.
  4. Keep the suggested disk size. Models and chats are stored on it, and larger models need more room.
  5. On the review step check Per hour and select Start my server.

Step 3: Wait for setup, then sign in

The server is billed from Running, but the chat page and the model are still downloading. The server page shows Finishing setup with the progress; the chat page answers first and the model follows. A large model takes longer to download than the starter one.

  1. Open the server and select the Connect tab.
  2. Under Sign in with you see the admin email (admin@example.com unless you changed WEBUI_ADMIN_EMAIL) and the password. Press the eye button to show it.
  3. Select Open app, sign in, pick the model at the top of the page and ask a question.

The first answer takes a moment while the model loads into GPU memory. Later answers are faster. Sign-up for other people is switched off, so only the admin account can sign in until you create more users in the Admin Panel.

Step 4: Add more models

You can keep several models on the disk and switch between them per chat.

  1. In Open WebUI, open the Admin Panel, then Settings, then Models.
  2. Use the option to pull a model from Ollama and enter its name from the Ollama library, for example llama3.1:8b.
  3. When the download finishes, pick the new model at the top of the chat page.

Ollama loads a model into GPU memory when you use it and unloads it after a few idle minutes, so a larger collection mostly costs disk space. Switching to a model that is not loaded makes the first answer slower. Models live in /workspace/ollama and chats in /workspace/open-webui, so both survive a stop.

Step 5: Use your documents and your own code

Open WebUI can answer questions about files you attach to a chat, which is often the reason to run it privately. The files stay on your server. Larger documents use more of the model's context, so a model with more memory headroom helps.

To call the model from a script, create an API key inside Open WebUI under Settings, Account (an admin may need to switch API keys on in the Admin Panel first). Open WebUI then answers OpenAI-style chat requests at /api/chat/completions on the app address from the Connect tab. Run a chat model with Open WebUI + Ollama has the exact commands. If you only need an API and no chat page, a model server such as vLLM fits better; see Run an open LLM with vLLM.

Step 6: Keep it private and safe

  • The chat page is served over plain http, and anyone who knows the address can reach the sign-in page. Keep the password strong and do not share the address.
  • Your chats live on the server's disk, not with us. Destroy deletes them with the disk. Export chats you want to keep from Open WebUI's settings before you destroy the server.

Step 7: Control the cost

A chat server is idle most of the time you are not typing, and a server left on overnight is the most common waste.

  • Stop when you finish. Stopping ends the compute charge. The disk with your models and chats is kept and still billed. After Start, open the Connect tab again, because the address can change.
  • Add an automatic stop. Under the server's Settings, Automation, stop it after a running time or when the GPU has been idle for a number of minutes. Quick start sets one for you. Details are in Automation.
  • Pick the smallest model that does the job. A smaller model fits a cheaper GPU and answers faster.

How billing by the second works shows what a short session costs, and Control costs covers budgets and low-balance warnings.

Common problems

  • The page does not open right after Running. Setup is still running. Wait for Finishing setup to clear.
  • No model in the list. The starter model is still downloading, or OLLAMA_MODEL names a model that does not exist. Pull one from the Admin Panel (Step 4).
  • Answers are very slow or stop. The model is too large for the GPU memory and part of it runs on the processor. Choose a smaller model or a GPU with more VRAM.
  • The password does not work. If you set WEBUI_ADMIN_PASSWORD yourself, the Connect tab does not show it; use the one you chose.

Next steps

For the same flow in click-by-click form, read Run a chat model with Open WebUI + Ollama. To compare GPUs for chat models, see How to pick a GPU for LLM inference and the private AI chat use case. When you are ready, start your private chat.

Try what this guide shows

Start one of these templates on a rented GPU server. You see the price per hour before you start, and you pay by the second.

  • Language modelsOpens in your browser

    Ollama

    Run open models behind the Ollama API, with an optional model pulled on first start.

    Minimum GPU memory
    8 GB
    Default disk
    100 GB

Try it on a real GPU server

Create a free account and add a balance from $10. Servers are billed by the second, and the review step shows the price per hour before you request one.

Related guides