Example of connecting to an inference service from Open WebUI
Connection objective
Connect to an inference service from Open WebUI using a dedicated endpoint to interact with the model via a chatbot.
Prerequisites
-
inference service;
-
Open WebUI Virtual Machine from AI Marketplace with the following configuration:
- without a graphics processing unit (GPU);
- in a private subnet with one public IP address for internet access.
Connection result
Open WebUI is connected to the inference service via a dedicated endpoint, allowing you to interact with the model via a chatbot.
Connection steps
- Create an administrator account in Open WebUI.
- Run Open WebUI.
- Connect the endpoint in Open WebUI.
- Send a test request to the model.
1. Create an administrator account
To work in the Open WebUI web interface, first create an administrator account.
-
In the control panel, from the top menu, click Products and select AI Marketplace.
-
In the Open WebUI Virtual Machine card, click Go to GUI.
-
In the Open WebUI web interface, click Let's get started.
-
Enter a username.
-
Enter an email address.
-
Enter a password.
-
Click Create Administrator Account.
2. Run Open WebUI
-
In the control panel, from the top menu, click Products and select AI Marketplace.
-
In the Open WebUI Virtual Machine card, click Go to GUI.
-
Enter the administrator email address.
-
Enter the administrator password.
-
Click Sign in.
3. Connect the endpoint in Open WebUI
-
In the Open WebUI web interface, click the profile icon and select Admin Panel.
-
Open the Settings tab.
-
Go to the Connections section.
-
Enable the Direct Connections toggle.
-
Click Save.
-
On the Open WebUI web interface home page, click the profile icon and select Settings.
-
Go to the Connections section.
-
In the Manage direct connections row, click .
-
In the URL field, enter the endpoint:
<endpoint>/v1Specify the
<endpoint>, the inference service endpoint. You can copy the endpoint in the control panel: from the top menu, click Products → Inference Services → inference service page → Quick Start tab → in the Endpoint block, click . -
In the Bearer field, enter the API key. You can copy the API key in the control panel: from the top menu, click Products → Inference Services → inference service page → API Keys tab → in the API key row, click , then click .
-
In the Model IDs field, enter the model name and click . You can view the model name in the control panel: in the top menu click Products → Inference Services → inference service page → Service tab → Model.
-
Click Save.
4. Send a test request to the model
-
In the Open WebUI web interface, click Select a model.
-
Select the model you added in step 8 when connecting the endpoint in Open WebUI.
-
On the Open WebUI web interface home page, click the profile icon and select Settings.
-
Go to the General section.
-
In the Advanced parameters block, set the
max_tokensparameter to5 000. -
Click Save.
-
Enter a test request, for example:
Hello! -
Click .
-
Wait for the model response.