Skip to main content
Content updated: 2026-06-09
NextChat (formerly ChatGPT Next Web) is suitable for quickly building a lightweight, fast-responding, and easy-to-self-host chat frontend. When connecting with Crazyrouter, it is recommended to continue using its default OpenAI-compatible route, setting the service address to Crazyrouter’s root domain.

Overview

Using NextChat’s OpenAI configuration options, you can send requests to Crazyrouter:
  • Recommended protocol: OpenAI-compatible API
  • Recommended integration method: NextChat’s default OpenAI approach
  • Base URL: https://api.crazyrouter.com
  • Authentication method: sk-... token
  • Recommended initial model for verification: gpt-5.5
The NextChat official README defines BASE_URL as the OpenAI API request base URL, with the example also being the root domain type; meanwhile, the local http://127.0.0.1:4000/api/status exposes server_address as the root address. Therefore, when connecting Crazyrouter, we prioritize filling in https://api.crazyrouter.com for initial verification; if your custom version clearly requires a more specific path, adjust accordingly following your version’s instructions.

Who is it suitable for

  • Those who want to quickly deploy a lightweight chat frontend
  • Those who want to use Crazyrouter for personal or small team web chat
  • Those who want to distribute default models and upstream with environment variables
  • Those who want to get the OpenAI-compatible route running with the minimum configuration

Usage Protocol

Recommended protocol: OpenAI-compatible API When integrating Crazyrouter with NextChat, fill in first:
Do not fill in:
  • https://api.crazyrouter.com/v1/chat/completions
  • https://api.crazyrouter.com/v1/models
If your particular NextChat historical version requires manually specifying a more concrete API host, adjust it as instructed in that version; for the first connection, use the root domain for baseline verification.
In different NextChat deployment forms, entry positions may differ: for online use, it’s usually filled in the settings page; for self-hosted, it’s more common to distribute it directly via environment variables. Regardless of UI changes, always stick to the minimal configuration on the first round: API Key + root domain BASE_URL + single model gpt-5.5.

Prerequisites

Recommended initial whitelist:
  • gpt-5.5
  • claude-opus-4-8
  • gemini-3.1-pro

5-Minute Quick Start

1

Create a dedicated NextChat token

In the Crazyrouter backend, create a new token; suggested name is nextchat. Initially only whitelist baseline models like gpt-5.5 and claude-opus-4-8.
2

Open NextChat settings

Enter NextChat, click the Settings icon in the lower left or the Settings entry.
3

Enter API address and Key

In the OpenAI-related settings, fill in:
  • API Key: your sk-...
  • API address / Base URL: https://api.crazyrouter.com
4

Specify model

In Model, manually enter or choose gpt-5.5 first. If the current version supports custom model lists, add other models you need.
5

Complete first verification

Create a new conversation, send Reply only OK. After you receive a normal response, add more models step by step.

Fast Configuration for Self-Hosting

Common Docker setup as follows:
Common environment variable explanations: Recommended order: Run with gpt-5.5 first, then extend the model list using CUSTOM_MODELS.

Token Best Practices

Verification Checklist

  • API Key has been saved correctly
  • Base URL is set to https://api.crazyrouter.com
  • First model is set to gpt-5.5
  • First conversation request returned successfully
  • If self-hosted, CUSTOM_MODELS is effective
  • Streaming output is normal
  • Corresponding requests visible in Crazyrouter backend logs
  • Token quota and model whitelist meet expectations

Common Errors & Fixes

Performance & Cost Recommendations

  • By default, only enable gpt-5.5
  • Remove high-cost models from default list and add as needed
  • If deployed publicly or semi-publicly, try to hide user custom key entry
  • Separate billing for demo and production sites to avoid test traffic affecting production quota
  • If you experience abnormal consumption, first check Crazyrouter logs to determine if it’s caused by long conversations or multi-user sharing

FAQ

Which address should NextChat fill in?

Prioritize https://api.crazyrouter.com. Because the NextChat official documentation example for BASE_URL is root domain style; combined with the local 4000 environment’s return value of server_address, using the root domain for first verification is more stable. Start with gpt-5.5.

Do I have to configure CUSTOM_MODELS?

It’s not required. You can manually enter gpt-5.5 to verify, and after confirming availability, add more models to the list.

Why can some deployments only change environment variables and not settings on the page?

Because different NextChat deployment methods expose settings entry differently. Some self-hosted instances fix upstream, models, and keys in environment variables, with the frontend only for use, not editing.

Should user custom key entry be hidden during self-hosting?

If you want unified upstream control and cost management, it’s recommended to hide.
If you want the lowest deployment cost for a lightweight chat frontend, NextChat is very suitable; if you need more team collaboration and advanced features, LobeChat or Dify are often more suitable for further expansion.