AI Model Not Found Model name is not valid: "block"

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

AI Model Not Found
Model name is not valid: “block”

Steps to Reproduce

when i use agent in cursor

Expected Behavior

it should working but not

Screenshots / Screen Recordings

screenshot_226.png

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.4.7 (user setup)
VSCode Version: 1.105.1
Commit: ca0f9bf806f235ea014a22712cbcbf5e88ca77e0
Date: 2026-01-20T20:52:38.077Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.22631

For AI issues: which model did you use?

Auto

For AI issues: add Request ID with privacy disabled

bed7e288-a7c3-4c1e-8ed2-5c0daac87e4f

Does this stop you from using Cursor

No - Cursor works, but with this issue

2 Likes

Hey, thanks for the report.

First question: is this your custom model? Did you manually add a model named “block” via Settings > Models > Add Model?

If yes, please check that model’s settings (API endpoint, key). Auto mode might be trying to use it, but the config could be wrong.

If no and you didn’t add any custom models, then it’s a bug and we’ll need to dig deeper. In that case, please try:

  • Switch from Auto to a specific model (Sonnet 4.5 or GPT 5). Does it work?
  • Restart Cursor. Does the issue still happen?
  • Send a screenshot of Settings > Models. What models do you see there?

Waiting for your details about the custom model.

Thanks you for the answer!
but i just uninstall and install cursor
and its working good now. Thanks you!

i uninstall and reinstall cursor but got same problem . it alwasy say model name iis not valid. this is defautl setting model

1 Like

I’m having an issue with the ‘Auto’ model. When I try to use it, I get an error saying: ‘AI Model Not Found. Model name is not valid: “block”’, and I can’t do anything. Interestingly, the ‘Grok Code’ model works perfectly fine. It’s only the ‘Auto’ model that isn’t working.

4 Likes

correct. the automode not work. by the way guys which model should i use for coding if auto mode not avai

1 Like

I am getting this issue as well. I have no custom models. I have been getting a lot of errors lately about the service not being available, and it only will work again if I restart Cursor, but this may be unrelated. I cannot switch to a different model, because I hit my limit and I’m not at the end of my month yet. Only “auto” is available.

My “Models” page looks identical to Nguyen Quan’s above.

1 Like

seems like an issue with “Auto” mode, selecting a model works

1 Like

I’m having the same issue. I’m using pro plan and cannot use Auto mode.

I am also experiencing this issue as of now when I updated.

1 Like

this happaning when in “Auto” model

1 Like

I uninstalled and then re-installed Cursor, and now this is the message that I am getting as a popup. I am simply trying to use the “Auto” mode.

For what it’s worth, when I opened Cursor after reinstalling, it connected to my WSL instance as expected, but it told me that my old chat was corrupted and could be read, but I could not send any additional messages and I had to open a new chat.

Again, I have a Pro Plan, and am trying to use “Auto”, but I cannot switch to another model because I have already used this month’s quota.

1 Like

Everyone(maybe) is experiencing the same issue.

Seems to be happening after updating to 2.4.7 and only to existing agent session. So if you create a New Agent then you can use automode again.

I got the same issue 10 mins ago when using auto mode. And closed the auto mode, selected a model, then it works. finally switched back to auto mode, it also works. I don’t know what happeded.

Maybe they(team cursor) fixed it.

No, it’s definitely not resolved. I switched to a different model, but got the “you can’t do that unless you give us more money” thing, and I had to press the button to go back to “auto”. I tried this about 10 times. About the 3rd time of switching back and forth it actually submitted the request to “auto”, but that was the only time. I’m quite frustrated because I pay for this service for my personal projects, and I only have a few hours a day that I can work on it, and right now, Cursor is useless for it’s advertised purpose.

I have got the same issue. NOT FIXED YET.

same issue