OpenRouter - Invalid Model The model x-ai/grok-4-fast does not work with your current plan or api key

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Using “Chat” with openrouter x-ai/grok-4-fast rsults in:

Invalid Model
The model x-ai/grok-4-fast does not work with your current plan or api key

Settings:

Reinstallation did not fix it.

Strange thing is that this model works:
x-ai/grok-code-fast-1

I am on the free plan.

Steps to Reproduce

Add custom model = x-ai/grok-4-fast
Override OpenAI Base URL = Model Not Found | OpenRouter

Add openrouter API key.
Use “Chat”

Expected Behavior

Error Message: Invalid Model
The model x-ai/grok-4-fast does not work with your current plan or api key

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.77
VSCode Version: 1.99.3
Commit: ba90f2f88e4911312761abab9492c42442117cf0
Date: 2025-11-13T23:10:43.113Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 23.3.0

For AI issues: which model did you use?

x-ai/grok-4-fast
Chat
openrouter

Additional Information

It used to work in the past like 2 month ago and just stopped working.

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. Cursor doesn’t officially support the OpenRouter provider yet.

When you use “Override OpenAI Base URL” with OpenRouter, Cursor sends malformed requests, which causes errors like the ones you’re seeing.

Important note: API keys only work on Pro plans and above.

Current workarounds:

The team is currently working on proper support for custom OpenAI-compatible endpoints.

Let me know if any of these workarounds helps!

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