Open WebUI
Open WebUI can connect to OpenAI-compatible APIs. You can configure DDTokens as an external OpenAI service.
Configure Environment Variables
When running Open WebUI with Docker, configure the OpenAI-compatible address:
bash
docker run -d \
-p 3000:8080 \
-e OPENAI_API_KEY="$DDDT_API_KEY" \
-e OPENAI_API_BASE_URL="https://apiddt.com/v1" \
ghcr.io/open-webui/open-webui:mainIf your Open WebUI version uses different variable names, follow that version's official documentation.
Configure in the Interface
You can also add an OpenAI-compatible connection in the administrator settings:
| Setting | Value |
|---|---|
| API Base URL | https://apiddt.com/v1 |
| API Key | Your DDTokens API key |
| Models | Models available in the dashboard |
Verify
Open Open WebUI, select a DDTokens model, and send a test message. After it succeeds, check the DDTokens dashboard log to confirm that the request was recorded.
Production Recommendations
- Create a separate API key for Open WebUI.
- Set quota and rate limits for that key.
- Review logs regularly for unexpected usage.