Using Ace Data Cloud in LobeChat

LobeChat is an open-source AI client that supports plugins, knowledge bases, and self-hosting, and can be used online or deployed with Docker. It supports custom OpenAI-compatible endpoints, so it can connect to Ace Data Cloud. This article describes the configuration process.

Application Process

To connect Ace Data Cloud to LobeChat, first visit the Ace Data Cloud Console and obtain your API Token for later use.

Get an Ace Data Cloud 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, and you will automatically return to the current page afterward.

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

Configure Ace Data Cloud

In LobeChat, go to Application Settings → Language Model, find and enable the OpenAI card, and enter:

Field Value Description
API Key Your Ace Data Cloud Token Token copied from the console
API Proxy URL https://api.acedata.cloud/v1 Must end with /v1
Client Request Mode Enabled The browser connects directly; the Key does not pass through the LobeChat server

LobeChat OpenAI Provider configuration interface

When using the Chat Completions interface, keep Responses API Specification disabled.

LobeChat does not automatically append /v1 to the Base URL; the request path is directly {API Proxy URL}/chat/completions:

API Proxy URL Actual request Result
https://api.acedata.cloud/v1 https://api.acedata.cloud/v1/chat/completions Correct
https://api.acedata.cloud/openai https://api.acedata.cloud/openai/chat/completions Also works
https://api.acedata.cloud/openai/v1 https://api.acedata.cloud/openai/v1/chat/completions 404 (no /v1 under /openai)
https://api.acedata.cloud https://api.acedata.cloud/chat/completions 404 (missing /v1)

By default, LobeChat calls /v1/models to automatically fetch models. When Ace Data Cloud returns many models, the interface can become very long, so it is recommended to manually enter an allow list in “Model List → Custom Model Names,” separated by English commas. If you need custom display names, you can use =, in the format MODEL_ID=Display Name.

Select a Model

The model catalog is continuously updated. Prefer the model list automatically loaded by the client; when you need to enter a model manually, first request GET https://api.acedata.cloud/v1/models to obtain the current model IDs, then choose based on the client's supported context, image, and tool-calling capabilities.

Verify the Connection

If you are unsure whether the problem is with LobeChat or the network, you can first use curl to verify the endpoint directly (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"}]
  }'

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.

Advanced: Self-Hosting with Docker

If you want to deploy a private instance for your team, you can start it with a single Docker command (replace {token} with your Token):

docker run -d \
  --name lobe-chat \
  -p 3210:3210 \
  -e OPENAI_API_KEY={token} \
  -e OPENAI_PROXY_URL=https://api.acedata.cloud/v1 \
  -e ACCESS_CODE=your-secret-password \
  -e OPENAI_MODEL_LIST="MODEL_ID" \
  lobehub/lobe-chat:latest

Open http://your-server-IP:3210 and enter the ACCESS_CODE to use it; team members do not need to enter their own Keys. For full descriptions of the environment variables used above, including OPENAI_API_KEY, OPENAI_PROXY_URL, and OPENAI_MODEL_LIST, see the LobeChat Model Provider Environment Variables documentation. If you use nginx as a reverse proxy with HTTPS, be sure to add proxy_buffering off;; otherwise, streaming responses will be buffered. For more deployment options, see Getting Started with Self-Hosting LobeChat and Docker Compose Deployment.

Frequently Asked Questions

404 Not Found

The API Proxy URL is usually set to .../openai/v1 or is missing /v1. Change it to https://api.acedata.cloud/v1.

The Model List Is Empty

Turn on the “Client Request Mode” switch; or manually enter a model allow list in “Custom Model Names.”

401 Unauthorized

Please confirm that the API Key field contains your Ace Data Cloud Token (without the Bearer prefix or extra spaces), and that the associated application has sufficient balance.

Learn More