# Cursor > Use Claude models inside Cursor through the OpenAI-compatible endpoint, without an Anthropic account. _Source: https://aiprimetech.io/docs/guides/cursor/ · Home > Docs > Integration guides_ Cursor talks the OpenAI Chat Completions format, so it connects through `/v1/chat/completions` — which means the **`/v1` suffix on the base URL is required**. ## Setup 1. Open **Settings → Models** (or **Cursor Settings → Models** depending on version). 2. Find the OpenAI API section and paste your `sk-` key. 3. Enable **Override OpenAI Base URL** and set it to `https://aiprimetech.io/v1`. 4. Add a custom model name — use an exact id such as `claude-sonnet-4-6`. 5. Click **Verify** / **Save**. Cursor makes a test call; a green result means it is working. - **Base URL:** `https://aiprimetech.io/v1` - **API key:** your `sk-` key - **Model ids:** `claude-sonnet-4-6`, `claude-opus-4-8`, `gpt-5.5`, `gemini-3-pro` - **Endpoint used:** `/v1/chat/completions` > Omitting `/v1` is the number-one Cursor setup failure — verification fails with a 404 because Cursor appends only `/chat/completions` to whatever base you give it. See [Base URLs](/docs/getting-started/base-urls/). ## What works and what does not | Feature | Status | |---|---| | Chat with a custom model | Works | | Inline edit (Ctrl/Cmd+K) | Works | | Composer / agent mode | Works with models that support tool use | | Cursor Tab (autocomplete) | Uses Cursor's own in-house model and is unaffected by this setting | Cursor Tab is not routed through any custom base URL — that is a Cursor product decision, not a gateway limitation. ## If verification fails - `404` — the `/v1` suffix is missing from the base URL. - `401` — the key is wrong or has a stray space. Re-copy it from the dashboard. - Model not found — the custom model name must be an exact id from [Models](/docs/getting-started/models/), not a display name like "Claude Sonnet". - Verified but replies are empty — see [Troubleshooting](/docs/guides/troubleshooting/). - [Chat Completions](https://aiprimetech.io/docs/api-reference/chat-completions/) — The endpoint Cursor uses - [Base URLs](https://aiprimetech.io/docs/getting-started/base-urls/) — The /v1 rule - [Cline](https://aiprimetech.io/docs/guides/cline/) — The Anthropic-format alternative --- _ClaudeAPIKey.dev is an independently operated, Anthropic-compatible API gateway. Not affiliated with Anthropic._