AIDiscount优汇智
Home / Blog

Add a Custom API Provider to Cherry Studio, Chatbox, LobeChat and Open WebUI

How to connect desktop and web chat apps to an OpenAI-compatible API: where to enter the base URL and key, how to add models, and how to fix the usual 404.

2026-11-25 · 2 min read · AIDiscount team

Cherry StudioChatboxLobeChatOpen WebUIChat apps

Chat apps such as Cherry Studio, Chatbox, LobeChat and Open WebUI let you bring your own API key. With an OpenAI-compatible provider you can use many models from different vendors in one app, and pay only for what you use instead of a monthly subscription per vendor.

Every app asks for the same three things:

  • API host or base URL: https://aidiscount.ai/v1 (or https://aidiscount.ai if the app adds /v1 itself)
  • API key: your sk-... key from the API Keys page
  • Model IDs: from the model marketplace, or fetched by the app

Cherry Studio

  1. Open Settings, then Model Provider, and click Add.
  2. Enter a name such as AIDiscount and choose the OpenAI provider type.
  3. Paste your key into API Key.
  4. Set API Host to https://aidiscount.ai. Cherry Studio adds /v1 itself.
  5. Click Manage to fetch the model list, or add model IDs by hand.
  6. Click Check to test the connection.

Chatbox

  1. Open Settings and add a custom provider.
  2. Choose the OpenAI API compatible mode.
  3. Set the API host to https://aidiscount.ai/v1. If the test request fails with 404, remove /v1.
  4. Paste your key and add a model ID.

LobeChat

For the hosted or desktop app, open Settings, then AI Service Provider, and either edit the OpenAI provider or add a custom one. Set the API proxy address to https://aidiscount.ai/v1, paste the key, and fetch or add models.

For a self-hosted Docker deployment, set the environment variables instead:

OPENAI_API_KEY=sk-...
OPENAI_PROXY_URL=https://aidiscount.ai/v1

Open WebUI

  1. Sign in as an admin and open Admin Panel, then Settings, then Connections.
  2. Under OpenAI API, add a connection with the URL https://aidiscount.ai/v1 and your key.
  3. Save. Open WebUI calls /v1/models and lists the models your key can use.

For Docker, you can set the connection at start-up:

docker run -d -p 3000:8080 \
  -e OPENAI_API_BASE_URL=https://aidiscount.ai/v1 \
  -e OPENAI_API_KEY=sk-... \
  -v open-webui:/app/backend/data \
  --name open-webui ghcr.io/open-webui/open-webui:main

The usual problem: 404

A 404 almost always means the /v1 part is wrong. Some apps expect the address with /v1 and some add it themselves. If one form fails, try the other:

  • https://aidiscount.ai/v1
  • https://aidiscount.ai

Other errors are covered in How to fix common AI API errors.

Keep your key safe

Desktop apps store the key on your computer. A shared, self-hosted web app stores it on the server, and everyone using that instance spends from the same balance. If you think a key has leaked, delete it on the API Keys page. It stops working immediately. Then create a new one.

Try it with AIDiscount. One API key works with OpenAI- and Anthropic-compatible tools. Pay as you go, no monthly fee.
Create a free accountRead the API docs

Related guides

Languages

English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Español · Français · Deutsch · Português · Русский