apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Developer Tools

Claude Code CLI Integration GuideManaging AI Coding Tools with CC Switch

Chat Apps

Cherry Studio Integration GuideChatbox Integration Guide

Docs / Chat Apps

Chat AppsChatboxOpenAI CompatibleChat 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#

  1. Download the latest client from the Chatbox website.
  2. Sign in to the APIMAX console and create a key under API Keys.
  3. 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:

  1. Open Chatbox and go to Settings → Model Providers.
  2. Choose Add Custom Provider or OpenAI API Compatible.
  3. Fill in the following configuration:
SettingValue
Provider nameAPIMAX
API modeOpenAI API compatible
API KeyKey generated in the console
API Host / Base URLhttps://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#

  1. Click refresh or fetch the model list.
  2. Select a model available under your APIMAX account.
  3. If automatic fetching fails, manually enter the full model ID shown in the console.
  4. 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:

text
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:

ParameterRecommendation
Temperature0.7; revert to the default if a reasoning model throws an error
Max Tokens1024 or keep it automatic
Context LengthNo larger than the context limit stated on the model page
StreamEnabled; 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.

Next steps

All docs
Claude Code CLI Integration GuideInstall the Claude Code CLI and complete persistent configuration, temporary configuration, and connectivity verification through APIMAX's Claude-compatible API.Managing AI Coding Tools with CC SwitchImport CC Switch configuration in one click from the console or configure it manually to centrally manage your Claude, Codex, and Gemini coding tools.Cherry Studio Integration GuideAdd APIMAX as a custom OpenAI provider in Cherry Studio, fetch the model list, and verify with a chat.
On this page
OverviewOverviewBefore You StartConfiguration StepsConfigure ModelsVerify the ConnectionParameter RecommendationsTroubleshootingConnection failed / Network error401 UnauthorizedThe model list is empty400 parameter errorInsufficient balance or no available channelSwitching Between Primary and Backup EndpointsSecurity RecommendationsNext steps