Skip to main content
LobeChat and NextChat (formerly ChatGPT-Next-Web) are popular open-source web chat apps, and both support a custom OpenAI endpoint. DreamTo connects using the OpenAI Chat Completions format.

Configure in the UI

  1. Open Settings → AI Service Provider → OpenAI (called “Language Model” in older versions).
  2. Set API Key to your DreamTo API key (sk-xxxx).
  3. Set API Proxy Address to https://api.dreamto.ai/v1.
  4. In the model list, click Fetch models or add a model ID manually (e.g. deepseek-v4.1-flash-1017), then click Check to test connectivity.

Environment variables for self-hosting

OPENAI_PROXY_URL must include /v1.
If you put a server-side API key into a publicly deployed chat app, anyone who can reach the page will spend your credits. Set an access password for the site (such as NextChat’s CODE or LobeChat’s access control), or have users enter their own key in the UI.

FAQ

Make sure the key is correct. When self-hosting, check that the container’s environment variables have taken effect (restart after changing them).
LobeChat’s proxy address includes /v1; NextChat’s endpoint does not. Don’t mix them up.