Docs / Chat Apps
Chatbox Integration Guide
Configure APIMAX's OpenAI-compatible API in Chatbox, add models, and troubleshoot common connection errors.
Overview#
Chatbox is a cross-platform AI chat client that supports custom OpenAI-compatible APIs. Once APIMAX is configured, you can use the chat models enabled for your account on desktop or mobile and manage conversation history locally.
Before You Start#
- Download the latest client from the Chatbox website.
- Sign in to the APIMAX console and create a key under API Keys.
- Note down the full model IDs you plan to use.
Configuration Steps#
Menu names may differ slightly between versions, but the core fields are the same:
- Open Chatbox and go to Settings → Model Providers.
- Choose Add Custom Provider or OpenAI API Compatible.
- Fill in the following configuration:
| Setting | Value |
|---|---|
| Provider name | APIMAX |
| API mode | OpenAI API compatible |
| API Key | Key generated in the console |
| API Host / Base URL | https://api.apimax.ai/v1 |
| API Path (if shown separately) | /chat/completions |
If your version has no separate API Path field, enter only the Base URL; Chatbox automatically requests /chat/completions.
Configure Models#
- Click refresh or fetch the model list.
- Select a model available under your APIMAX account.
- If automatic fetching fails, manually enter the full model ID shown in the console.
- Save it and set it as the model for the current conversation.
Use a regular text chat model for the first verification. Capabilities such as image understanding, web search, and tool calling depend on the specific model; not all OpenAI-compatible models support the same features.
Verify the Connection#
Create a new conversation and send:
Reply only "Connection successful" and add nothing else.After receiving a reply, check the usage logs in the APIMAX console to confirm that the model, key, and billing records are correct.
Parameter Recommendations#
Use conservative settings for the first connectivity test:
| Parameter | Recommendation |
|---|---|
| Temperature | 0.7; revert to the default if a reasoning model throws an error |
| Max Tokens | 1024 or keep it automatic |
| Context Length | No larger than the context limit stated on the model page |
| Stream | Enabled; temporarily disable it when troubleshooting issues |
Troubleshooting#
Connection failed / Network error#
- Check that the Base URL is
https://api.apimax.ai/v1. - Check the system proxy, firewall, and DNS.
- If the Host already contains
/v1, do not also write the API Path as/v1/chat/completions, or the path will be duplicated.
401 Unauthorized#
- Confirm the API key has no extra spaces.
- Check whether the key is enabled and has not been deleted.
The model list is empty#
- Manually enter the model ID shown on the APIMAX models page.
- Confirm the key has access to that model.
- Update Chatbox; older versions may fail to parse the model list correctly.
400 parameter error#
- Disable advanced parameters such as custom Temperature, Top P, and maximum output, then retry.
- Check whether the current model supports images, files, or tool calling.
- Start a new plain-text conversation to rule out incompatible content in an old conversation's context.
Insufficient balance or no available channel#
- Check the balance and usage in the console.
- Confirm the model is still in the available list.
- Switch to a similar model and verify again.
Switching Between Primary and Backup Endpoints#
Always use the primary endpoint https://api.apimax.ai/v1 under normal circumstances. Only after confirming a network failure on the primary endpoint should you temporarily switch to the backup API address published in the console, keeping the /v1 suffix. Do not switch endpoints frequently within the same conversation, as this makes troubleshooting the logs confusing.
Security Recommendations#
- Create a dedicated key for Chatbox and rotate it regularly.
- Enable the system screen lock and disk encryption to prevent the local client configuration from leaking.
- Before exporting conversations or configuration, check the files for API keys or sensitive conversation content.

