Thanks for the info. The error Model name is not valid: GLM-4.7 means Cursor is validating the model name on its side before sending the request, and it rejects unknown names. Looks like this was changed in the latest Cursor version.
Similar reports: Fresh bugs with custom model
Since curl works, the issue isn’t with z.ai. It’s that Cursor won’t allow the custom model name. For now, this is a Cursor limitation.
You can try:
- As an alternative, try
GLM-4.5-airorglm-4-0520. Different names might pass validation.
Also, open DevTools (Help > Toggle Developer Tools) and check the Network and Console tabs while sending the request. There may be more details on what exactly is being blocked.