# Set a Custom OpenAI Base URL in Cursor

In Cursor, enable Override OpenAI Base URL and enter `https://api.promptavenue.com/v1` with your PromptAvenue API key. Add an Uncensored model by its exact ID and select it in a new Ask chat. Ask what `[1, 2, 3].map(n => n * 2)` returns and check for `[2, 4, 6]`.

[Model pricing](https://promptavenue.com/pricing) · [Run the API quickstart](https://promptavenue.com/docs/quickstart)

## What you need

- Cursor desktop with **Override OpenAI Base URL** and the option to add custom models.
- A [PromptAvenue account](https://api.promptavenue.com/sign-up?utm_source=docs&utm_medium=guide&utm_campaign=cursor) with API balance.

## 1. Create a PromptAvenue API key

In the PromptAvenue dashboard, open the API keys page and select **Create API key**. Copy the full key when it appears.

## 2. Override the OpenAI base URL and add a custom model

1. Open **Cursor Settings → Models → API Keys**.
2. Enable **OpenAI API Key** and paste your PromptAvenue key into the field.
3. Enable **Override OpenAI Base URL** and enter `https://api.promptavenue.com/v1`.
4. In **Models**, click **+ Add model** and enter `deepseek-v4.1-flash-uncensored`. Add `glm-5.3-flash-uncensored` as a second entry if you want to test GLM.

## 3. Verify the first chat reply

Save the API key settings before opening a new chat. Open a fresh chat in a sample workspace, choose the custom DeepSeek model explicitly, and send this prompt in **Ask** mode.

> What does `[1, 2, 3].map(n => n * 2)` return in JavaScript? Answer in one sentence.

Expect a reply containing `[2, 4, 6]`. If you test GLM, select it explicitly and repeat the prompt in a fresh chat.

Cursor's bring-your-own-key behavior can vary by version and mode. Run this check in Ask with the custom model selected. Tab uses Cursor's built-in models.

## Common errors when the Cursor base URL override fails

| Symptom | What to check |
| --- | --- |
| Cursor rejects the API key | Check both the key and the override URL. The key must come from PromptAvenue. |
| The model is missing from the picker | Check the exact API model ID in **Models**, then reopen the chat model picker. |
| curl works but Cursor rejects the request | Compare the request settings with the [API quickstart](/docs/quickstart). Cursor's request format can vary by mode. Report the app version, selected mode, and redacted error to support. |
| The selected model changes | Choose the custom entry explicitly for the verification chat. |
| Balance or rate-limit error | Check the dashboard balance if the error mentions funds. For rate limits, wait before retrying. |
