Open WebUI → AI24X
Open WebUI is a popular self-hosted chat UI. Add AI24X as an OpenAI-compatible connection—one key for flash/pro and VIP named models, PayPal USD top-up.
1) Prerequisites
Sign up → Console → create an API key → keep a small credit balance. Open WebUI running (Docker or local).
2) Admin UI connection
- Sign in as admin → Settings → Connections (or Admin → Settings → Connections).
- OpenAI / OpenAI-compatible → add or edit connection.
- API Base URL:
https://api.ai24x.com/v1(stop at/v1). - API Key: your AI24X key from Console.
- Save → refresh model list → enable
flash(optionalpro/ultra). - New chat → select flash → send
hello.
3) Docker / env alternative
Some installs prefer environment variables (names vary by Open WebUI version):
OPENAI_API_BASE_URL=https://api.ai24x.com/v1
OPENAI_API_KEY=YOUR_AI24X_API_KEY
If your image uses OPENAI_API_BASES / multi-connection JSON, keep the same base URL ending at /v1 and the same key.
4) Pitfalls
- Base URL with
/chat/completionsappended → 405 (the UI adds the path). - 401 = bad key—rotate in Console and update the connection.
- Model list empty: confirm the connection is enabled and you can reach api.ai24x.com from the host running Open WebUI.
- VIP named models (e.g. vip-kimi) need an active membership and prepaid credits for those ids.