Chatbox

How to fix a wrong Chatbox API host

The API host is the root Chatbox uses to call AI Code With. Chatbox concatenates that host with /v1 and the API path, so you must enter https://api.aicodewith.ai without /v1. Keep the default path /chat/completions. Cherry Studio and Zed still need /v1 — do not paste those pages’ URLs here.

Start with these checks

The API host includes /v1, the default path was changed, or another relay domain was used. Chatbox inserts /v1 between the host and path.

  • Sending a message fails, times out, or reports a wrong endpoint path, 404, or connection refused.
  • The host was entered as https://api.aicodewith.ai/v1, so the path became /v1/v1/chat/completions
  • Open Settings → Model Providers and confirm you are using the custom provider you added
404ECONNREFUSEDtimeout

01

Confirm you are using the custom provider

The correct path is Settings → Model Providers → Add custom provider, API mode OpenAI API compatible, then change only the API host. If chat still uses built-in OpenAI, traffic goes to official OpenAI.

If the chat page is still on a built-in provider, switch to the custom provider you added, then confirm the host is https://api.aicodewith.ai.

02

Enter the root host without /v1 and keep the default path

The only correct host is https://api.aicodewith.ai. Common mistakes: including /v1, changing the path to /v1/chat/completions, a trailing slash, or an old domain from another tutorial.

Chatbox treats the host as the root, inserts /v1, then appends the API path. https://api.aicodewith.ai/v1 becomes /v1/v1/chat/completions and usually 404s.

  1. 1Open Settings → Model Providers and confirm you are using the custom provider you added
  2. 2Set the API host to https://api.aicodewith.ai (no /v1)

03

Save and verify with a real request

Save settings, pick a model on the chat page, and send a message. On timeout or DNS errors, check that the machine can reach api.aicodewith.ai.

Success means a normal model reply and a matching AI Code With usage-record entry by time. A reply with no usage record means the request never hit AI Code With.

  1. 1Set the API host to https://api.aicodewith.ai (no /v1)
  2. 2Keep the path /chat/completions; the preview should be https://api.aicodewith.ai/v1/chat/completions

Do not paste other relay domains from third-party tutorials into Chatbox. This page only uses https://api.aicodewith.ai.

If it is still not fixed

Sources

Reconfigure

Return to the integration center and continue the setup steps.

Return to the related setup step