Getting "We're having trouble connecting to the model provider" continuously

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I am using the “Ask” mode a lot, recently when i attach an image to the prompt i always get the following error:

Request ID: 2c096052-1b4a-4928-be5d-cf76723f46a3
{"error":"ERROR_PROVIDER_ERROR","details":{"title":"Provider Error","detail":"We're having trouble connecting to the model provider. This might be temporary - please try again in a moment.","isRetryable":false,"additionalInfo":{"providerStatusCode":"401"},"buttons":[],"planChoices":[]},"isExpected":true}
Provider Error We're having trouble connecting to the model provider. This might be temporary - please try again in a moment.
NonRetriableError: Provider Error We're having trouble connecting to the model provider. This might be temporary - please try again in a moment.
    at __b (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9085:128196)
    at fGo._executeTurn (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9085:150068)
    at async fGo.executeTurn (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9085:138335)
    at async Sme.runAgentLoop (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9080:17083)
    at async PRa.streamFromAgentBackend (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:19013:24590)
    at async PRa.getAgentStreamResponse (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:19013:49924)
    at async $Ie._submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9063:5198)
    at async $Ie.submitChatMaybeAbortCurrent (vscode-file://vscode-app/c:/Users/USERNAME/AppData/Local/Programs/cursor/resources/app/out/vs/workbench/workbench.desktop.main.js:9058:90558)

Steps to Reproduce

  • Open new chat tab (Ask or Agent mode).
  • Write the prompt and attach an image or a file
  • The prompt fails with the error mentioned.

Operating System

Windows 10/11

Version Information

Version: 3.27.22 (user setup)
VS Code Extension API: 1.128.0
Commit: b1aa50cb6db84fd3e8c808259cb172ea73425c10
Date: 2026-10-27T00:33:02.045Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 42.11.16
Chromium: 148.0.7778.280
Node.js: 24.19.0
V8: 14.8.178.38-electron.0
xterm.js: 6.1.0-beta.291
OS: Windows_NT x64 10.0.26100

For AI issues: which model did you use?

Tried many models, Same problem.

For AI issues: add Request ID with privacy disabled

2c096052-1b4a-4928-be5d-cf76723f46a3
44145059-0644-47a8-9af9-693dfa21fd9c

Additional Information

  • I don’t have any custom OpenAI activated.
  • I disabled all the MCP servers.
  • I tried it on different computer (macOS) with similar results.
  • I tried to provide my own Open AI API and key and similar error happened.
  • I tried to provide my own Google API key and similar error happened.
  • Tried to use the models themselves directly from the providers, they work.

Does this stop you from using Cursor

No - Cursor works, but with this issue

3 posts were merged into an existing topic: Provider Error: “We’re having trouble connecting to the model provider.”