Cursor
Cursor should use the OpenAI-compatible path with a custom API key and custom base URL.
Required values
- Provider
OpenAI-compatible- API Key
sk-YOUR_API_KEY- Base URL
https://api.xah.io/v1- Model
gpt-5.4- Route
chat/completions- Plan requirement
- Requires a Cursor plan that supports custom API endpoints.
Recommended steps
- 1Open Cursor Settings and go to AI / Models / API Keys.
- 2Enable the custom OpenAI key or custom provider option for your build.
- 3Paste the API key and base URL shown below.
- 4Choose the suggested model or another currently active model.
Ready-to-copy block
Provider: OpenAI-compatible
API Key: sk-YOUR_API_KEY
Base URL: https://api.xah.io/v1
Model: gpt-5.4
Route: chat/completions
Recommended models
gpt-5.4claude-opus-4.6claude-opus-4.7claude-opus-4.8claude-opus-5.5claude-sonnet-4.6
Notes
- Cursor uses the OpenAI-compatible flow, so the base URL must include `/v1`.
- If a model fails inside Cursor, switch to another active OpenAI-compatible model.
- After saving, send a short prompt to confirm `chat/completions` works.