> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chatbox

> Configure AIHubMix's OpenAI-compatible API in Chatbox, then add and use AIHubMix models.

Chatbox is an open-source desktop AI client. Configure AIHubMix through its OpenAI provider to use models supported by AIHubMix.

Download: [Chatbox GitHub Releases](https://github.com/Bin-Huang/chatbox/releases)

## Before you start

* Install and open Chatbox. This guide uses Chatbox `1.21.1`.
* Create an API key in the [AIHubMix Console](https://aihubmix.com/token). It usually starts with `sk-***`.
* Copy the model ID you want to use from the AIHubMix model list, for example `gpt-5.6-terra`.

## Configure AIHubMix in the interface

### 1. Open Model Provider settings

Click **Settings** in the lower-left corner of Chatbox, then select **Model Provider**.

<img src="https://mintcdn.com/aihubmix/4vCwf-twrNlb3cHo/public/cn/ChatBox-new-01.png?fit=max&auto=format&n=4vCwf-twrNlb3cHo&q=85&s=103ec7880cf3b8fdd26c68a26ecc3398" alt="Open Chatbox settings" width="1920" height="1030" data-path="public/cn/ChatBox-new-01.png" />

Choose **OpenAI** in the middle column.

### 2. Enter the API Key and API Host

Enter the API key created in the AIHubMix Console. Set **API Host** to the full Chat Completions URL:

```text theme={null}
https://aihubmix.com/v1/chat/completions
```

If the primary address is temporarily unavailable, use:

```text theme={null}
https://api.inferera.com/v1/chat/completions
```

Click **Check** to test connectivity.

<img src="https://mintcdn.com/aihubmix/4vCwf-twrNlb3cHo/public/cn/ChatBox-new-02.png?fit=max&auto=format&n=4vCwf-twrNlb3cHo&q=85&s=7ea59ce97398e9bcd9b4d405b62447de" alt="Enter the API Key and API Host" width="1920" height="1030" data-path="public/cn/ChatBox-new-02.png" />

### 3. Add a model

Click **New** in the **Model** section. Existing models are listed here, and the gear icon opens their settings.

<img src="https://mintcdn.com/aihubmix/4vCwf-twrNlb3cHo/public/cn/ChatBox-new-03.png?fit=max&auto=format&n=4vCwf-twrNlb3cHo&q=85&s=72aadb7ad1d44a481b47d47dcf7b5d80" alt="Manage the model list" width="1920" height="1030" data-path="public/cn/ChatBox-new-03.png" />

In the dialog, enter the following:

* **Model ID**: an AIHubMix model ID, such as `gpt-5.6-terra`.
* **Nickname**: a recognizable label, such as `gpt-5.6-terra-aihubmix`.
* **Model Type**: select **Chat**.
* **Capabilities**: enable **Vision**, **Tool use**, and **Reasoning** only when the model supports them.
* **Context Window** and **Max Output Tokens**: leave blank to use the default values unless you need custom limits.

Click **Test Model**, then click **Save** after the test succeeds.

<img src="https://mintcdn.com/aihubmix/4vCwf-twrNlb3cHo/public/cn/ChatBox-new-04.png?fit=max&auto=format&n=4vCwf-twrNlb3cHo&q=85&s=a26bd535586739ba3368bff1d52dc31c" alt="Enter and test model details" width="1920" height="1030" data-path="public/cn/ChatBox-new-04.png" />

### 4. Select the model and chat

Return to the main page and click the model name in the lower-right corner of the input box. Search for and select the nickname you added.

<img src="https://mintcdn.com/aihubmix/4vCwf-twrNlb3cHo/public/cn/ChatBox-new-05.png?fit=max&auto=format&n=4vCwf-twrNlb3cHo&q=85&s=b52e99b7621d3a3e3f453c72f4c6609c" alt="Select the AIHubMix model" width="1920" height="1030" data-path="public/cn/ChatBox-new-05.png" />

Send a short message. A successful reply confirms that the configuration works.

<img src="https://mintcdn.com/aihubmix/4vCwf-twrNlb3cHo/public/cn/ChatBox-new-06.png?fit=max&auto=format&n=4vCwf-twrNlb3cHo&q=85&s=b6710e42ae880ab8f06e85971cd7f2aa" alt="Verify an AIHubMix response" width="1920" height="1030" data-path="public/cn/ChatBox-new-06.png" />

## Import a model configuration

Chatbox `1.15.1` and later supports importing JSON model-provider configurations. To add a preset model in one step, copy the following OpenAI-compatible configuration and import it in Chatbox:

```json theme={null}
{
  "id": "aihubmix",
  "name": "AIHubMix",
  "type": "openai",
  "iconUrl": "https://assets.aihubmix.com/docs/favicon.svg",
  "urls": {
    "website": "https://aihubmix.com/",
    "getApiKey": "https://aihubmix.com/token",
    "docs": "https://docs.aihubmix.com/",
    "models": "https://aihubmix.com/models"
  },
  "settings": {
    "apiHost": "https://aihubmix.com/",
    "apiPath": "/v1/chat/completions",
    "models": [
      {
        "modelId": "gpt-5.6-terra",
        "nickname": "gpt-5.6-terra-aihubmix",
        "type": "chat",
        "capabilities": ["vision", "reasoning", "tool_use"],
        "contextWindow": 1050000,
        "maxOutput": 128000
      }
    ]
  }
}
```

After importing, enter your own API key in Chatbox. To add more models, use the interface configuration above so each model's capabilities can be selected individually.

## FAQ

**What should I enter for API Host?**

Chatbox's OpenAI provider requires the full URL `https://aihubmix.com/v1/chat/completions`, not only the domain or `/v1`.

**What should I check when the model test fails?**

Confirm that the API key is complete, API Host is the full Chat Completions URL, and Model ID matches the AIHubMix model list. If needed, use `https://api.inferera.com/v1/chat/completions`.

**Why is the model missing after import?**

Reopen the model picker and search for the model nickname. If it is still missing, add the model through the interface.

Last updated: 2026-07-15
