Connect NextChat (ChatGPT-Next-Web) to byesu API
Connect NextChat (desktop client, web app, Vercel, or Docker deployment) to byesu to access Claude, GPT, Gemini, DeepSeek, and Grok models with one pay-as-you-go API key.
Quick configuration
- UI Custom Endpoint (OpenAI):
https://byesu.com/v1(orhttps://byesu.comif the input placeholder omits/v1) - UI Custom Endpoint (Anthropic):
https://byesu.com - Docker / Vercel
BASE_URL:https://byesu.com(backend proxy appends/v1automatically) - API Key: your byesu token (
sk-..., created in the defaultautogroup) - Custom Models:
claude-opus-5-5,claude-sonnet-5-5,gpt-6.2-sol,deepseek-v4-pro
Method 1: NextChat Desktop / Web UI Setup
- Create an
sk-...token in the byesu Console under the defaultautogroup (see Choosing a Group). - Open NextChat → click Settings (bottom-left gear icon) → enable Custom Endpoint.
- Choose your preferred protocol:
- OpenAI (all models): set Endpoint Address to
https://byesu.com/v1and API Key to yoursk-...token. (Note: inspect the grey placeholder in your NextChat version — if the placeholder readshttps://api.openai.comwithout/v1, enterhttps://byesu.comso NextChat does not double/v1/v1.) - Anthropic (native Claude +
0.1xPrompt Caching): set Anthropic Endpoint tohttps://byesu.comand Anthropic API Key to yoursk-...token (Prompt Caching).
- OpenAI (all models): set Endpoint Address to
- In Custom Models, enter a comma-separated list of active model IDs:text
claude-opus-5-5,claude-sonnet-5-5,gpt-6.2-sol,deepseek-v4-pro
Method 2: Docker & Vercel Environment Variables
When deploying NextChat via Docker or Vercel, set BASE_URL=https://byesu.com without /v1 — NextChat's server-side proxy appends /v1 automatically:
bash
docker run -d --name nextchat -p 3000:3000 \
-e BASE_URL="https://byesu.com" \
-e OPENAI_API_KEY="sk-YOUR_BYESU_TOKEN" \
-e CODE="your-access-password" \
-e CUSTOM_MODELS="-all,+claude-opus-5-5,+claude-sonnet-5-5,+gpt-6.2-sol,+gemini-4-argon,+deepseek-v4-pro" \
yidadaa/chatgpt-next-web- Using
-all,+...inCUSTOM_MODELShides NextChat's built-in legacy model list and displays only the models you specify. - On Vercel, add the exact same
BASE_URL,OPENAI_API_KEY,CODE, andCUSTOM_MODELSvariables under Project Settings → Environment Variables and redeploy. - For
glm-5.3orkimi-k3, create a token in theGlmorKimigroup. Billing is pay-as-you-go per token with live rates displayed in the byesu Console after sign-in.
Troubleshooting & Benchmarks
- 404 Not Found (
/v1/v1/chat/completionsor missing/v1): in Docker/Vercel env vars always useBASE_URL=https://byesu.com; in the UI Custom Endpoint field, match whether the grey placeholder includes/v1. - 401 invalid_api_key: verify
OPENAI_API_KEY(sk-...) and enter yourCODEaccess password in NextChat's login screen if self-hosted (OpenAI 401 fix). - No available channel / 429: check exact model IDs in
CUSTOM_MODELS(no available channel), OpenAI 429, and live production benchmarks.