# Cannot override OpenAI Base URL

**URL:** <https://forum.cursor.com/t/cannot-override-openai-base-url/144198>\
**Category:** Bug Reports\
**Created:** [November 26, 2025, 2:40am UTC](https://forum.cursor.com/t/cannot-override-openai-base-url/144198 "2025-11-26T02:40:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![squeaky\_possum](https://avatars.discourse-cdn.com/v4/letter/s/8edcca/32.png) [@squeaky\_possum](https://forum.cursor.com/u/squeaky_possum)\
**Post date:** [November 26, 2025, 2:40am UTC](https://forum.cursor.com/t/cannot-override-openai-base-url/144198/1 "2025-11-26T02:40:09Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

When I activate the “Override OpenAI Base URL” toggle and put in my URL, that I have already tested directly with curl and confirmed it works, it always just says "Invalid Model: The model does not work with your current plan or api key. I have the 20 USD per month subscription, and I ensured my API key was correct. Why doesn’t this feature work?

### Steps to Reproduce

Use any non-standard OpenAI Base URL with the toggle on.

### Expected Behavior

It is supposed to make an API call to the URL, but it doesn’t.

### Operating System

Linux

### Current Cursor Version (Menu → About Cursor → Copy)

cursor\_2.1.32\_amd64.deb

(sorry i couldnt find where the “Menu → About Cursor” button was)

### Does this stop you from using Cursor

Yes - Cursor is unusable

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [November 26, 2025, 4:15am UTC](https://forum.cursor.com/t/cannot-override-openai-base-url/144198/2 "2025-11-26T04:15:58Z")

</div>

Hey, thanks for the report. The “Override OpenAI Base URL” feature currently has some known limitations with certain providers. To help troubleshoot your specific issue, please share:

- A screenshot of your model settings (Cursor Settings \> Models) showing the base URL override, model name, and which models are enabled or disabled
- Which endpoint you’re using (for example, OpenRouter or another OpenAI-compatible API)
- Which feature triggers the error: Chat or Inline Edit (Ctrl+K)

Important notes:

- If you’re using OpenRouter, keep in mind that Cursor doesn’t officially support it yet and sends malformed requests

Once you share your configuration, I can help figure out whether this is a setup issue or something that needs to be passed to the team.

---

<div class="post-metadata">

**Author:** ![Hamza\_Muthanna](https://avatars.discourse-cdn.com/v4/letter/h/ee7513/32.png) [@Hamza\_Muthanna](https://forum.cursor.com/u/Hamza_Muthanna)\
**Post date:** [December 13, 2025, 11:36pm UTC](https://forum.cursor.com/t/cannot-override-openai-base-url/144198/3 "2025-12-13T23:36:05Z")

</div>

Hey I had a issue with this too I was trying to use my glm coding plan glm 4.6 the override url is **`https://api.z.ai/api/coding/paas/v4`**.

 ![IMG_5992](https://us1.discourse-cdn.com/cursor1/original/3X/3/1/311124d8eb612bafeb11544414f75e40081681e2.jpeg)

Followed the documentations and it still doesn’t work

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [January 4, 2026, 11:36pm UTC](https://forum.cursor.com/t/cannot-override-openai-base-url/144198/4 "2026-01-04T23:36:16Z")

</div>

Closed on January 4, 2026, 11:36pm UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
