メインコンテンツへスキップ
更新日: 2026-06-23
NextChat (formerly ChatGPT Next Web) is a good fit when you want a lightweight, fast, easy-to-deploy chat frontend. When connecting it to Crazyrouter, the recommended approach is to stay on NextChat’s default OpenAI-compatible route and point the service URL at the Crazyrouter root domain.

Overview

Using NextChat’s OpenAI settings, you can route requests through Crazyrouter:
  • Recommended protocol: OpenAI-compatible API
  • Recommended route: the default NextChat OpenAI flow
  • Base URL: https://api.crazyrouter.com
  • Auth method: sk-... token
  • Recommended first validation model: gpt-5.5
NextChat’s official README documents BASE_URL as the OpenAI API request base URL and uses root-domain style examples. The local http://127.0.0.1:4000/api/status response also exposes a root-style server_address. So for Crazyrouter, the safest first-pass setup is https://api.crazyrouter.com; only switch to a more specific path if your customized build explicitly requires it.

Best For

  • users who want a lightweight chat frontend quickly
  • personal or small-team web chat with Crazyrouter
  • admins who want to ship default model and upstream settings through env vars
  • users who want the simplest possible OpenAI-compatible first setup

Protocol Used

Recommended protocol: OpenAI-compatible API When connecting Crazyrouter in NextChat, start with:
Do not start with:
  • https://api.crazyrouter.com/v1/chat/completions
  • https://api.crazyrouter.com/v1/models
If an older or customized NextChat build requires a more specific API host setting, adjust to that version after you validate the baseline setup with the root domain.
The exact entry point varies by deployment style: hosted usage often exposes a settings panel, while self-hosted usage often pushes the values through environment variables only. Regardless of the UI, keep first-pass validation minimal: API Key + root-domain BASE_URL + one model gpt-5.5.

Prerequisites

Recommended starting 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 dashboard, create a token named nextchat. For the first rollout, allow only baseline models such as gpt-5.5 and claude-opus-4-8.
2

Open NextChat settings

In NextChat, open the Settings panel from the bottom-left icon or settings entry.
3

Enter the endpoint and key

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

Set the first model

In the Model field, manually enter or select gpt-5.5. If your version supports a custom model list, add more models later.
5

Run the first validation prompt

Start a new chat and send Reply only OK. Once it works, add more models gradually.

Self-Hosted Quick Config

A common Docker setup looks like this:
Common environment variables: Recommended order: validate gpt-5.5 first, then expand the list with CUSTOM_MODELS.

Token Setup Best Practices

Verification Checklist

  • API Key is saved correctly
  • Base URL is set to https://api.crazyrouter.com
  • the first model is set to gpt-5.5
  • the first chat request succeeds
  • CUSTOM_MODELS works if you use self-hosted deployment
  • streaming output works normally
  • the request appears in the Crazyrouter logs
  • token quota and model whitelist match your rollout plan

Common Errors and Fixes

Performance and Cost Tips

  • Default to exposing only gpt-5.5 in the first rollout
  • Keep premium models out of the default list until you actually need them
  • On public or semi-public deployments, hide user-supplied key entry whenever possible
  • Separate demo traffic from production traffic with different tokens
  • If usage looks abnormal, check Crazyrouter logs first for long sessions or many users sharing one key

FAQ

Which URL should I use in NextChat?

Start with https://api.crazyrouter.com.

Why does this guide not recommend /v1 first?

Because the official NextChat docs show BASE_URL in a root-domain style, and the local 4000 environment also exposes a root-style server_address. That makes the root domain the safest first-pass setup.

Which model should I test first?

Start with gpt-5.5.

Do I have to configure CUSTOM_MODELS?

No. You can manually enter gpt-5.5 first, validate the connection, and add a model list later.

Why do some self-hosted deployments only let me change env vars, not UI settings?

Because different NextChat deployment modes expose configuration differently. Some self-hosted setups pin upstream routing, keys, and models in environment variables, and the frontend only consumes those values.

Should I hide user-provided keys in self-hosted deployments?

Yes, if you want centralized upstream routing and predictable cost control.
If you want the lightest possible chat frontend with minimal deployment friction, NextChat is a strong fit. If you need richer collaboration or more advanced app-building features, LobeChat or Dify is usually the better next step.