Client setup
Chatbox Setup Guide
Connect Chatbox on desktop and mobile to ZhenAPI via Custom Provider to access Claude, GPT, Gemini, DeepSeek, Kimi and GLM on pay-per-token billing.
Chatbox is a lightweight AI desktop and mobile client for Windows, macOS, Linux, iOS, Android and Web. By adding ZhenAPI as a Custom Provider, you can access full-strength Claude, GPT, Gemini, DeepSeek, Kimi and GLM models on pure pay-as-you-go token billing.
Channel Group Tip: Because Chatbox sends standard client requests, create your key on the API Keys page under a general-purpose group such as Claude Max (External), Claude Official, Codex Pro (External), DeepSeek or Gemini. Avoid "CC Only" or "Codex Only" CLI-restricted groups, which return
403 in Chatbox.Option 1: Add a Custom Provider (Recommended for All Vendors)
- Open Chatbox, go to Settings → Model Provider in the bottom-left corner, scroll to the bottom, and click + Add to create a Custom Provider.
- Set Name (e.g.
ZhenAPI - ClaudeorZhenAPI - DeepSeek) and set API Mode toOpenAI API Compatible. - Configure API Host and API Path (check the preview URL below the input so
/v1is not duplicated):- When API Path is already set to
/v1/chat/completions: enterhttps://api.zhenapi.aias API Host; - In older versions without a separate API Path field: enter
https://api.zhenapi.ai/v1so the final endpoint resolves tohttps://api.zhenapi.ai/v1/chat/completions.
- When API Path is already set to
1https://api.zhenapi.ai
- Paste your ZhenAPI
sk-...key into API Key. - Click Fetch under Models to pull the exact models supported by your key's group (or add model IDs copied from Pricing), save, and select your model in any chat thread.
Option 2: Built-In Claude Provider (Anthropic Native Protocol)
- In Settings → Model Provider, select the built-in Claude provider.
- Paste a key bound to
Claude Max (External)orClaude Official. - Set API Host to
https://api.zhenapi.ai(without/v1) and select or add a supported Claude model such asclaude-opus-5-5orclaude-sonnet-4-6.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
404 Not Found when sending messages | /v1 was entered in both API Host and API Path, producing /v1/v1/chat/completions. | Check the full URL preview in Chatbox settings and ensure it reads https://api.zhenapi.ai/v1/chat/completions. |
403 Forbidden | Key is bound to a "Claude Code only" or "Codex only" group. | Edit the key on the API Keys page and switch it to an External or Official/General group. |
| Clicking "Fetch" only shows models from one vendor | Each ZhenAPI key binds to one channel group so billing rates stay explicit. | Create separate keys per vendor group and add a dedicated Custom Provider entry in Chatbox for each. See Error Codes for more help. |