Using Lingxi AI Plaza in NextChat

NextChat (formerly ChatGPT-Next-Web) is an open-source AI client that can be deployed on Vercel, Cloudflare, or Docker. It supports custom OpenAI-compatible endpoints, allowing integration with Lingxi AI Plaza. This article describes the configuration process.

Application Process

To integrate Lingxi AI Plaza in NextChat, first go to the Lingxi AI Plaza Console to obtain your API Token for future use.

Get Lingxi AI Plaza API Key

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

There is a free quota available for first-time applicants, allowing you to experience Lingxi AI Plaza's model services for free.

Download NextChat

You can use the desktop version (download .exe / .dmg / AppImage from the Releases page), the Web online version, or deploy it yourself on Vercel / Cloudflare / Docker (see the advanced section below).

Configure Lingxi AI Plaza

Start NextChat and go to Settings → Model Services:

Field Value Description
Model Provider OpenAI Use OpenAI compatible protocol
OpenAI API Address https://api.acedata.cloud Only fill in the root domain, without /openai, without /v1
API Key Your Lingxi AI Plaza Token Token copied from the console

NextChat will automatically append /v1/chat/completions to the API address, so only the root domain needs to be filled in:

API Address Actual Request Result
https://api.acedata.cloud https://api.acedata.cloud/v1/chat/completions Correct
https://api.acedata.cloud/openai https://api.acedata.cloud/openai/v1/chat/completions 404 (/openai does not have /v1)
https://api.acedata.cloud/openai/v1 https://api.acedata.cloud/openai/v1/v1/chat/completions 404

In the "Custom Model Name" box, fill in the models separated by English commas. NextChat supports special syntax: +ModelName to add, -ModelName to hide, ModelName=DisplayName to customize the display name, -all to hide all first. The cleanest writing is recommended:

-all,+MODEL_ID=Display Name

Select Model

The model directory will continue to be updated. Prefer using the model list automatically loaded by the client; if manual entry is needed, first request GET https://api.acedata.cloud/v1/models to get the current model ID, then choose based on the context, image, and tool invocation capabilities supported by the client.

Verify Integration

If you are unsure whether the issue lies with NextChat or the network, you can first verify the endpoint directly using curl (replace {token} with your Token):

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

If an OpenAI-compatible chat.completion object is returned, it indicates that both the Token and endpoint are ready; if HTTP 403 used_up is returned, it means the Token is valid but the balance is insufficient, and you can recharge at the console.

Advanced: One-Click Deployment to Your Own Domain

NextChat supports deploying your own AI website. For example, using Docker (replace {token} with your Token):

docker run -d \
  --name nextchat \
  -p 3000:3000 \
  -e OPENAI_API_KEY={token} \
  -e BASE_URL=https://api.acedata.cloud \
  -e CODE=your-password \
  -e CUSTOM_MODELS="-all,+MODEL_ID=Display Name" \
  yidadaa/chatgpt-next-web

When deploying on Vercel / Cloudflare, configure the same OPENAI_API_KEY, BASE_URL, CODE, and CUSTOM_MODELS in the project's environment variables. CODE supports multiple access passwords separated by English commas for easier usage statistics. The complete explanation of the above environment variables (default BASE_URL is https://api.openai.com, and the +/-/=/-all/+all syntax for CUSTOM_MODELS) should refer to the NextChat official README.

Frequently Asked Questions

Prompt 404 Not Found

This is usually due to the API address being written as .../openai or .../openai/v1. Change it to https://api.acedata.cloud so that NextChat can append /v1/chat/completions itself.

Check the format of CUSTOM_MODELS, each model must start with +; if -all is used, ensure to add back the required models with +.

Prompt 401 Unauthorized

Please confirm that the API Key pasted is the Lingxi AI Plaza Token (without the Bearer prefix and no extra spaces), and that the balance of the associated application is sufficient.

Learn More