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 chat model with Open WebUI + Ollama

Start a private chat website on your own GPU: deploy the Open WebUI + Ollama template, sign in, download another model and call it from your own code.

Last updated November 23, 20264 min read
View as Markdown

You will run a chat website like the popular AI chat apps, but the model runs on a GPU you rent and your conversations stay on your server. The Open WebUI + Ollama (private chat) template installs both open-source projects for you: Open WebUI is the chat page, Ollama runs the models. You need an account with credit. You do not need an SSH key.

1. Start the server

The quickest way is Quick start:

  1. On Overview, select Quick start, then Chat with an AI model.
  2. Check the price under What it costs and the automatic stop, then select Start my server.

Quick start picks this template and the cheapest server in stock that fits. To choose yourself, use Deploy instead:

  1. Open Deploy. Sort by Price, low to high and pick a configuration with at least 8 GB of VRAM; 12 GB or more gives room for bigger models. Select Continue.
  2. Above the template cards, select Language models, then the Open WebUI + Ollama (private chat) card, then Continue.
  3. Name the server, for example private-chat. Keep the disk size: your models and chats are stored on it.
  4. Under Environment variables you see OLLAMA_MODEL, the starter model that downloads at the first start (llama3.2:3b, a small model). Leave WEBUI_ADMIN_PASSWORD empty to get a generated password, or set your own.
  5. Select Continue, check Per hour on the review step and select Start my server.

Some new servers are reviewed by our team before they start; you are not charged until the server runs. See Why was my request reviewed?

2. Wait for the first start

The first start takes longer than later ones, because the chat page and the starter model download. The template's description says about 5 to 10 minutes: the chat page answers first, the starter model follows a little later. While the model downloads, the server page shows Finishing setup with the progress. The server already runs and is billed during that time.

3. Find your sign-in

The platform creates an admin account for this server, so you do not need a terminal.

  1. Open Servers, select your server and open the Connect tab.
  2. Under Sign in with you see the email and the password. Press the eye button to show the password, then copy it.

If you set WEBUI_ADMIN_PASSWORD yourself, the tab does not show it: use the one you chose.

4. Open the chat page

  1. On the Connect tab, select Open app. The chat page opens in a new browser tab.
  2. Sign in with the email and password from step 3.
  3. Pick the model at the top of the page, type a question and press Enter.

The first answer can take a moment while the model loads onto the GPU. Later answers are faster.

5. Download another model

The starter model is small. To try another one, pick a model from the Ollama library that fits in your GPU memory; Which GPU do I need? shows how to estimate it, and the models catalogue has estimates for popular models.

  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, for example qwen2.5:7b.
  3. Wait for the download, then pick the new model at the top of the chat page.

Models are stored in /workspace/ollama and your chats in /workspace/open-webui, both on the server's disk, so they survive a stop. To download a different model at every first start, set OLLAMA_MODEL when you deploy.

6. Call it from your own code

Open WebUI has its own API, which uses a key you create inside Open WebUI (this is not your platform API key):

  1. In Open WebUI, open Settings, then Account, and create an API key. If the option is missing, an admin can turn API keys on in the Admin Panel under Settings.
  2. On the Connect tab, copy the app address. In the examples it is SERVER_ADDRESS.

List the models:

curl http://SERVER_ADDRESS/api/models -H "Authorization: Bearer YOUR_KEY"

Ask a question (use a model name from the list):

curl http://SERVER_ADDRESS/api/chat/completions \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "llama3.2:3b", "messages": [{"role": "user", "content": "Explain a GPU in one sentence."}]}'

The answer is JSON in the OpenAI chat format, with the reply in choices[0].message.content. The details of this API belong to Open WebUI; see its own documentation for more. If you only need an API and no chat page, the vLLM guide or the plain Ollama template in Chat with an open model is simpler.

Keep it private

The page uses plain http, and anyone who knows the address can reach the sign-in page. Keep the password strong, do not share the address, and do not paste secrets into chats.

Your chats are stored on the server's disk, not with us. They are deleted when you destroy the server.

When you are done: stop or delete

  • Stop 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.
  • Destroy ends every charge and deletes the disk with your models and chats. See Start, stop and restart.

Next

Ready to try it?

Create a free account and add credit when you want to start a server. The smallest top-up is $10.

Create a free account

Was this helpful?

Still stuck? Contact us