DEV Community

Cover image for Are you still spending $200 a month on an OpenAI Pro subscription? Open WebUI is a must-have tool for researchers!
TurnV X
TurnV X

Posted on

Are you still spending $200 a month on an OpenAI Pro subscription? Open WebUI is a must-have tool for researchers!

Don't buy shared accounts anymore. This article teaches you how to use Open WebUI to access OpenAI's most advanced models like o1-pro, o3-mini, and sora at a very low cost. This includes, but is not limited to, gpt4o, claude-3-5-sonnet-20241022, gemini-exp-1206, deepseek-r1, and other music, art, and video generation models.

Open WebUI is a user-friendly WebUI for LLMs, supporting runtime environments like Ollama and OpenAI-compatible APIs. The interface and usage are very similar to OpenAI's.

Image description

Here is the table of contents for this article:
1. Deploying Open WebUI
2. Adding request URLs and models to Open WebUI
3. Enhancing Open WebUI with AI drawing capabilities

Let's start the tutorial:

1.Deploying Open WebUI

1.1 Using Windows as an example, hold down Win + R on your computer, type "cmd" in the run box that appears, and press Enter to open the terminal.

Image description

1.2 Type the following in the terminal:

pip install open-webui

Image description

If you haven't added your Python path to your system's PATH variable, you should add D:\install\python\Scripts (your Python path) to the system's PATH environment variable. (You can refer to other tutorials for guidance.)

1.3 After the installation is complete, enter the following in the terminal: (It will download some packages, so please be patient while it completes.)

open-webui serve

Image description

1.4 Go to the website below and register an account. (The registration details aren't strict and won't be uploaded to the official server; it's just for local verification.)

http://localhost:8080

2.Add request URL and model for Open WebUI.

2.1 Next, we'll start configuring the model. Follow the sequence in the diagram to enter the settings page.

Image description

2.2 Click on External Connections and add a connection. In the URL field, enter:

https://api.cursorai.art/v1

After registering an account in the CURSOR API, copy an API key and paste it into the Key field.

In the Model ID field, enter models like gpt-4o-2024-11-20, o3-mini-all, claude-3-5-sonnet-20241022, gemini-2.0-pro-exp-02-05, etc. (Don't forget to click the '+' on the right.)

Image description

2.3 Additional: after registering an account in the CURSOR API, go to the **API Tokens* section and copy an API key. In the Model Pricing section, click on the model name to copy it.(You can change the language settings to your native language.)

Image description

Image description

2.4 Select a model where the arrow points, and you can start the conversation! (If it doesn't connect initially, try switching models and retrying a few times, including refreshing the page and restarting the service.)

Image description

3 Add AI Drawing Functionality to Open WebUI

3.1 Go to the settings page and click on Admin Settings.

Image description

3.2 Click on "Images" and turn on the button for image generation on the right side. Use the same URL as before, paste the API key, select the default model as DALL-E 3, set the resolution to 1024x1024, and click "Save" at the bottom right.

https://api.cursorai.art/v1

Image description

3.3 When starting a conversation, select image generation to use the AI drawing feature.

Image description

Image description

That's the end of the article. If you found it helpful, please don't hesitate to give it a like. Wishing you prosperity!

Top comments (0)