Where does the bug appear (feature/product)?
Somewhere else…
Describe the Bug
Where does the bug appear?
Model Provider Integration → OpenAI API Override
Describe the Bug
When using Cursor’s “Override OpenAI Base URL (when using key)” option and pointing it to OpenRouter (e.g. Model Not Found | OpenRouter), Cursor sends malformed requests to the provider.
The request reaches OpenRouter, but Cursor omits a required prompt or messages field, resulting in:
Provider was unable to process your request
Input required: specify “prompt” or “messages”
This occurs even though:
The OpenAI key works normally when tested directly at OpenRouter’s Playground
The same models work outside of Cursor
Disabling the Base URL override fixes the issue immediately
This indicates Cursor’s wrapper is not constructing a valid OpenAI-compatible request when the Base URL override is used.
Steps to Reproduce
Steps to Reproduce
Go to Settings → Models → OpenAI
Add an OpenAI key
Turn ON “Override OpenAI Base URL (when using key)”
Set Base URL to:
Select any OpenRouter model in the chat sidebar
Send any message (e.g. “hello”)
Expected Behavior
Expected Behavior
Cursor should send a standard OpenAI-compatible chat-completion request containing:
{
“model”: “”,
“messages”: [ { “role”: “user”, “content”: “hello” } ]
}
Actual Behavior
Cursor sends an incomplete payload without prompt or messages, causing OpenRouter to return a 400 error:
Input required: specify “prompt” or “messages”
Additional Notes
This is a known issue: routing OpenAI requests through a custom base URL works in other tools but fails in Cursor.
Disabling Override Base URL fixes the problem instantly but also negates a huge justification and table stakes feature for a “multi-agent IDE.”
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.0.75 (Universal)
VSCode Version: 1.99.3
Commit: 9e7a27b76730ca7fe4aecaeafc58bac1e2c82120
Date: 2025-11-12T17:34:21.472Z (1 day ago)
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0
For AI issues: which model did you use?
GPT-5.1 Fast
Does this stop you from using Cursor
Yes - Cursor is unusable