Deployment
One-click Vercel deploy
On the NextChat repo, click Deploy with Vercel, then set these environment variables in Vercel:| Variable | Value |
|---|---|
OPENAI_API_KEY | sk-XXXXXXXXXXXXXXXX |
BASE_URL | https://openp.ai |
CUSTOM_MODELS | +gpt-5.5,+gpt-5.4-mini,+claude-opus-4-8,+gemini-3.1-pro-preview,+gemini-3.1-flash-lite |
HIDE_USER_API_KEY | 1 (optional, prevents frontend users from changing the key) |
Docker
Configure in the web UI (no restart needed)
After opening NextChat:- Gear icon at the bottom-left → open settings.
- Endpoint / Base URL:
https://openp.ai - API Key:
sk-XXXXXXXXXXXXXXXX - Custom models:
+gpt-5.5,+claude-opus-4-8,+gemini-3.1-pro-preview - Click Check availability → save once it passes.
Vision chat
NextChat has a built-in image upload button. When you choose a vision model likegpt-5.5 / claude-opus-4-8 / gemini-3.1-pro-preview,
you can drag an image directly into the input box, and OpenPAI passes it through as that model’s vision input.
Notes
BASE_URLshould not include/v1— NextChat completes the path automatically.- In
CUSTOM_MODELS, the+prefix adds a model and-hides one. - For a shared multi-user deployment, set an access
CODE/ password to prevent key leakage.