Deployment
One-click Vercel deploy
On the NextChat repo, click Deploy with Vercel, then set these environment variables in Vercel:
After deployment, visit the domain Vercel provides.
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.