OpenAI, Gemini, and Anthropic protocols. For HaiToken, the OpenAI path is usually the most stable and broadly compatible choice; if you explicitly want the Claude / Anthropic ecosystem, you can also use the Anthropic path.
What you need
- A HaiToken API key
- HaiToken OpenAI-compatible address:
https://api.haitoken.ai/v1 - HaiToken Claude / Anthropic-compatible address:
https://api.haitoken.ai - At least one available model ID, such as
gpt-5.4
DeepChat is configured entirely through the GUI, so the steps are essentially the same on Windows, macOS, and Linux. If menu placement or dialog layout differs slightly on your system, follow the actual UI — the API key, API address, and model ID values remain the same.
Setup Steps
Choose the protocol first
In DeepChat, the two common choices are:OpenAI/OpenAI Completions: recommended first, broader compatibility, and the main flow in this guideAnthropic/Claude: also common, useful when you explicitly want the Claude / Messages ecosystem
OpenAI.
Step 1: Open Settings
In the DeepChat main interface, click the... button at the bottom of the left sidebar to expand the menu, then select Settings.
Step 2: Go to Provider Settings
On the Settings Overview page, find the Providers card and click it to open the provider settings page.Step 3: Add a Custom Provider
At the bottom of the provider list, click the + Add Custom Provider button.Step 4: Fill in HaiToken Configuration
In the dialog that appears, enter the following:
After filling in the fields, make sure the Enable Provider toggle at the bottom is turned on, then click Confirm to save.
If you choose the
Anthropic / Claude path, do not enter https://api.haitoken.ai/v1. This path should use the Anthropic-style gateway prefix https://api.haitoken.ai, and the client should call /v1/messages through that gateway.Step 5: Refresh and Enable Models
After saving, switch to the Models tab in the provider detail page and click Refresh Models to fetch the available HaiToken model list. Once loaded, click Enable All or selectively enable specific models.Step 6: Return to Chat and Test
Go back to the chat view, select the newly configured HaiToken model from the model picker at the bottom, and send a simple message (such ashello) to verify connectivity.
Notes
If you need to configure advanced parameters such as temperature, max output length, or system prompt, keep the defaults for your first test and verify connectivity first.
FAQ
Next
- See Get API Key
- See OpenAI format API
- See List models