Using orchats in ChatBox

ChatBox is an open-source AI client that supports Windows, macOS, Linux, iOS, Android, and Web. It supports custom providers of the “OpenAI API” type, so it can connect directly to orchats. This article describes the configuration process.

Application Process

To connect orchats in ChatBox, first go to the orchats Console and obtain your API Token for later use.

Get an orchats API Key

If you have not yet logged in or registered, you will be automatically redirected to the login page to register and log in. After registering and logging in, you will be automatically returned to the current page.

When you apply for the first time, you will receive free credits to try orchats's model services for free.

Download ChatBox

Go to the ChatBox official website to download it for your platform, or use the installation-free Web version directly:

  • Desktop: Windows .exe, macOS .dmg (separate versions for Intel / Apple Silicon), Linux AppImage
  • Mobile: App Store, Google Play, direct Android download link on the official website

Configure orchats

Launch ChatBox, go to Settings → Model → Add Custom Provider, set API Mode to OpenAI API Compatible, and then enter:

Field Value Description
API Key Your orchats Token Token copied from the console
API Host https://api.orchats.repoingest.com Enter only the root domain, without /openai or /v1
API Path /v1/chat/completions ChatBox defaults to /chat/completions; manually change it to this

ChatBox orchats Provider configuration screen

ChatBox's request path is {API Host} + {API Path}, so only the root domain is needed for Host:

API Host Final Request Result
https://api.orchats.repoingest.com https://api.orchats.repoingest.com/v1/chat/completions Correct
https://api.orchats.repoingest.com/openai https://api.orchats.repoingest.com/openai/v1/chat/completions 404 (no /v1 under /openai)
https://api.orchats.repoingest.com/openai/v1 https://api.orchats.repoingest.com/openai/v1/v1/chat/completions 404

ChatBox does not automatically call /v1/models. You need to manually enter model IDs (one per line) in the “Custom Model” input box at the bottom of the model settings page. After saving, you can select them from the model dropdown in the conversation interface. Capability switches, context window, and output limit must be set according to the selected model's current contract; do not copy values from other models.

Select a Model

The model catalog is continuously updated. Prefer the model list automatically loaded by the client; when you need to enter one manually, first request GET https://api.orchats.repoingest.com/v1/models to obtain the current model IDs, then choose according to the context, image, and tool-calling capabilities supported by the client.

Verify the Connection

If you are unsure whether the problem is with ChatBox or the network, you can first use curl to verify the endpoint directly (replace {token} with your Token):

curl -X POST 'https://api.orchats.repoingest.com/v1/chat/completions' \
  -H 'Authorization: Bearer {token}' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "MODEL_ID",
    "messages": [{"role": "user", "content": "ping"}]
  }'

An OpenAI-compatible chat.completion object in the response indicates that both the Token and endpoint are ready; if HTTP 403 used_up is returned, the Token is valid but the balance is insufficient, and you can click the “Recharge” button.

Frequently Asked Questions

404 Not Found

The API Host usually has an extra /openai or /v1. Enter only https://api.orchats.repoingest.com for Host, and leave the path as the default /v1/chat/completions.

401 / token_mismatched

Please confirm that the Token pasted into “API Key” is your orchats Token (without the Bearer prefix or extra spaces), and that the associated application has sufficient balance.

ChatBox does not automatically fetch the model list. You must manually enter model IDs in the “Custom Model” box and save.

Generating Images in ChatBox

orchats's image generation uses a separate Images API (/openai/images/generations), which has a different path from the chat endpoint, so ChatBox's image feature cannot connect to it directly. If you need to generate images, please refer to the Image Generation API documentation to call it using curl / SDK.

Learn More