AdaptorsOpenAI SSE Adaptor
Connect Open WebUI
Add any ModelWorks circuit as a model in Open WebUI via the OpenAI SSE adaptor.
Connect Open WebUI to ModelWorks
Open WebUI is a self-hosted AI chat interface with 160K+ GitHub stars. This guide shows you how to add ModelWorks circuits as custom models.
Prerequisites
- Open WebUI installed
- A ModelWorks account — sign up
- A ModelWorks API key — from Settings → Security Tokens
Step 1: Get your adaptor URL
Every circuit with an OpenAI SSE adaptor exposes a URL like:
https://modelworks.ai/api/circuit-adaptors/ca-xxxxxxxxxxxxxxxxx/queryStep 2: Add a connection in Open WebUI
- Open Admin Panel → Settings → Connections
- Click + to add a new OpenAI API connection
- Fill in:
- URL:
https://modelworks.ai/api/circuit-adaptors/ca-xxxxxxxxx/query - API Key:
mw_YOUR_API_KEY
- URL:
- Click Save
Step 3: Select the model
The model name in your dropdown is the circuit's adaptor ID. In a new chat, select the ModelWorks connection and start prompting.
Troubleshooting
| Issue | Fix |
|---|---|
| Connection test fails | Verify the adaptor URL ends with /query. |
| 401 Unauthorized | Generate a new API key from Settings → Security Tokens. |
| 402 Payment Required | Fund your wallet at modelworks.ai/settings/wallet. |
| Model not showing | The circuit must be RUNNING — check its status on the circuit page. |