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(orhttps://aidiscount.aiif the app adds/v1itself) - API key: your
sk-...key from the API Keys page - Model IDs: from the model marketplace, or fetched by the app
Cherry Studio
- Open Settings, then Model Provider, and click Add.
- Enter a name such as AIDiscount and choose the OpenAI provider type.
- Paste your key into API Key.
- Set API Host to
https://aidiscount.ai. Cherry Studio adds/v1itself. - Click Manage to fetch the model list, or add model IDs by hand.
- Click Check to test the connection.
Chatbox
- Open Settings and add a custom provider.
- Choose the OpenAI API compatible mode.
- Set the API host to
https://aidiscount.ai/v1. If the test request fails with 404, remove/v1. - 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
- Sign in as an admin and open Admin Panel, then Settings, then Connections.
- Under OpenAI API, add a connection with the URL
https://aidiscount.ai/v1and your key. - Save. Open WebUI calls
/v1/modelsand 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/v1https://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.
Create a free accountRead the API docs