LobeChat / NextChat
Prerequisites
- A deployed instance of LobeChat or NextChat
- A Chuizi.AI account with an API key (starts with
ck-)
LobeChat Configuration
- Open LobeChat settings
- Go to Language Model > OpenAI
- Enter the following:
- API Key:
ck-your-key-here - API Proxy URL:
https://api.chuizi.ai/v1
- API Key:
- Enable Fetch Model List to automatically load available models
- Save settings and select a model in the chat interface
NextChat Configuration
- Open NextChat settings
- Find the Custom Endpoint section
- Enter the following:
- Base URL:
https://api.chuizi.ai/v1 - API Key:
ck-your-key-here
- Base URL:
- Enter your desired model in the model list, e.g.,
anthropic/claude-sonnet-4-6 - Save settings
Docker Deployment Configuration
If you self-host via Docker, configure through environment variables:
LobeChat:
terminal
bash
docker run -d \ -e OPENAI_API_KEY=ck-your-key-here \ -e OPENAI_PROXY_URL=https://api.chuizi.ai/v1 \ -p 3210:3210 \ lobehub/lobe-chat
NextChat:
terminal
bash
docker run -d \ -e OPENAI_API_KEY=ck-your-key-here \ -e BASE_URL=https://api.chuizi.ai/v1 \ -p 3000:3000 \ yidadaa/chatgpt-next-web
Verify the Configuration
- Return to the chat interface
- Select a model (e.g.,
anthropic/claude-sonnet-4-6) - Send a test message
- If you receive a normal reply, the configuration is working
Common Issues
Empty Model List
Manually enter model names using the provider/model format. You can view all available models on the Chuizi.AI models page.
Streaming Output Stuttering
Ensure your network connection is stable. Some larger models may have higher time-to-first-token latency, which is normal.
API URL Not Working in Self-Hosted Deployment
Verify the environment variable names are correct: LobeChat uses OPENAI_PROXY_URL, while NextChat uses BASE_URL. Restart the container after changing environment variables.
Next Steps
- Choose a Model — compare models for chat applications
- Streaming Guide — understand streaming behavior
- Pricing — model pricing details