Notice: Kling 4.0 is here: text-to-video and image-to-video are 20% off for a limited time. Try it now
HiAPI
Tutorials
On this page

Claude Desktop

Fill in HiAPI under the third-party inference settings in developer mode to use Claude models in the Claude desktop app through HiAPI.

Developer mode in the Claude desktop app has a third-party inference setting (Configure third-party inference). Fill in the HiAPI address and key to use Claude models through HiAPI. The steps below use claude-opus-5-5 as the example; this tutorial was verified on Windows 11 with Claude Desktop 4.29.0. Your client version needs to include this settings entry, and you need a HiAPI API key ready.

1. Prepare the client

Open the Claude desktop app and stay on the sign-in page while you finish the configuration below.

If you are already signed in to a Claude account, sign out first, then fully quit and reopen the client and confirm it shows the sign-in page. Do not sign in before configuring third-party inference.

2. Enable developer mode

Click Help → Troubleshooting → Enable developer mode. On Windows, Help is in the menu at the top left of the window; on Mac, it is in the menu bar at the top of the screen.

Enable developer mode

After enabling it, a Developer menu appears in the menu bar. If it does not appear, restart the client and check again.

The third-party inference settings are in the Developer menu: enable developer mode first, then open Configure third-party inference.

Developer menu

3. Configure third-party inference

Open Developer → Configure third-party inference, choose Connection on the left, and fill in the table below:

FieldValue
ConnectionGateway
Credential kindStatic API key
Gateway base URLhttps://api.hiapi.ai (without /v1; the client appends the path itself)
Gateway API keyyour HiAPI API key
Gateway auth schemeLeave empty to use the client’s default Authorization: Bearer
Artifact preview iframe originLeave empty

If the Connection page has a Model list field, add the model you want to use, for example claude-opus-5-5; if it doesn’t, run the connection test directly.

Connection settings page

Save and apply the configuration

  1. Click Test connection and wait until the client shows the connection test passed.
  2. Click Apply Changes to apply the configuration.
  3. Fully quit the Claude desktop app, then reopen it.

The connection test only checks the gateway configuration. After applying, still confirm with an actual chat that the model can be called.

4. Verify

Once the configuration takes effect, the client opens the chat interface. Choose the configured model, for example claude-opus-5-5, and send “Hello, introduce yourself in one sentence.” A normal reply means the connection works.

Verify with a chat

You can also check Request logs in the HiAPI console to confirm the request goes through HiAPI. If the sign-in page is still showing or there is no reply, work through the troubleshooting section below.

To connect external tools or data sources, use Connectors (MCP); see the Claude Desktop section of the MCP setup guide.

5. Troubleshooting

Only issues specific to Claude Desktop are listed here. For common errors such as 401, 404 and 429, see Common errors.

ErrorCauseFix
Connection test failedWrong Gateway base URL, an invalid HiAPI API key, or a network problemConfirm the Gateway base URL is https://api.hiapi.ai without /v1; check the key and the network
Still shows the sign-in page after restartingThe third-party inference configuration was not applied, or the client still keeps the original sign-in stateConfirm you signed out of the original account and clicked Apply Changes, then fully quit and reopen the client
No Developer menu in the menu barDeveloper mode is not enabled, or this version does not have the featureCheck developer mode under Help → Troubleshooting, and confirm your client version supports third-party inference
404 / model not availableThe model name is wrong, or the Gateway base URL has an extra pathCheck the model name in the text model list; the Gateway base URL should be https://api.hiapi.ai