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)

  1. Open Chatbox, go to Settings → Model Provider in the bottom-left corner, scroll to the bottom, and click + Add to create a Custom Provider.
  2. Set Name (e.g. ZhenAPI - Claude or ZhenAPI - DeepSeek) and set API Mode to OpenAI API Compatible.
  3. Configure API Host and API Path (check the preview URL below the input so /v1 is not duplicated):
    • When API Path is already set to /v1/chat/completions: enter https://api.zhenapi.ai as API Host;
    • In older versions without a separate API Path field: enter https://api.zhenapi.ai/v1 so the final endpoint resolves to https://api.zhenapi.ai/v1/chat/completions.
API Host (when API Path is /v1/chat/completions)
1https://api.zhenapi.ai
  1. Paste your ZhenAPI sk-... key into API Key.
  2. 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)

  1. In Settings → Model Provider, select the built-in Claude provider.
  2. Paste a key bound to Claude Max (External) or Claude Official.
  3. Set API Host to https://api.zhenapi.ai (without /v1) and select or add a supported Claude model such as claude-opus-5-5 or claude-sonnet-4-6.

Troubleshooting

SymptomCauseFix
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 ForbiddenKey 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 vendorEach 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.