Cannot override OpenAI Base URL

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

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.

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.

Followed the documentations and it still doesn’t work

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