Next Chat
How to fix a wrong Next Chat API host
The API host is the address Next Chat uses to call AI Code With. This page requires https://api.aicodewith.ai/v1. Chatbox still omits /v1 — do not paste that page’s host here.
Start with these checks
The API host is missing /v1, appends a path, or uses another relay domain. This page requires https://api.aicodewith.ai/v1.
- 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, missing /v1
- Open Settings, confirm Custom Endpoint is enabled, and the provider is still OpenAI
404ECONNREFUSEDtimeout01
Confirm Custom Endpoint is enabled
The correct path is Settings → enable Custom Endpoint, keep the OpenAI provider, then change only the API host. With Custom Endpoint off, traffic still goes to official OpenAI.
If the switch is off, traffic still goes to official OpenAI. Turn it on, save, then confirm the host is https://api.aicodewith.ai/v1.
02
Enter the host with /v1
The only correct value is https://api.aicodewith.ai/v1. Common mistakes: omitting /v1, using /v1/chat/completions, a trailing slash, or an old domain from another tutorial.
This page follows the screenshot: https://api.aicodewith.ai/v1. Do not paste Chatbox’s host without /v1.
- 1Open Settings, confirm Custom Endpoint is enabled, and the provider is still OpenAI
- 2Set the API host to https://api.aicodewith.ai/v1 (include /v1; add no further path)
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.
- 1Set the API host to https://api.aicodewith.ai/v1 (include /v1; add no further path)
- 2Do not paste Chatbox’s host without /v1
Do not paste other relay domains from third-party tutorials (for example yibuapi.com) into Next Chat. This page only uses https://api.aicodewith.ai/v1.
If it is still not fixed
Sources
Reconfigure
Return to the integration center and continue the setup steps.
Return to the related setup step