Error: invalid api key provided

Describe the Bug

any request via the agent side bar results in an error: “unable to reach the model provider”

I tried several different models from various labs, same error.

this has been going on for more than 1h now, the status page doesn’t show any downtimes.

the tab completion model still works
claude code and gemini cli both work in the terminal.

details: {“error”:{“type”:“provider”,“reason”:“provider_error”,“message”:“Provider returned 401”,“retryable”:false,“provider”:{“status”:401,“body”:“{\n "id": "oSbHegF-6z2FuN-e3fbcd53-aws-ue1",\n "error": {\n "message": "Invalid API key provided. You can find your API key at https://api.together.ai/settings/api-keys.\”,\n "type": "invalid_request_error",\n "param": null,\n "code": "invalid_api_key"\n }\n}"}}}

Steps to Reproduce

ask the agent anything

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.29
VSCode Version: 1.105.1
Commit: 4ca9b38c6c97d4243bf0c61e51426667cb964bd0
Date: 2026-01-08T00:34:49.798Z (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 25.1.0

For AI issues: which model did you use?

composer 1, …

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

The error is coming from the together.ai provider, which isn’t officially supported in Cursor.

Check Cursor Settings > Models. It looks like you have a Base URL enabled that redirects requests to together.ai. If so, turn it off and use the default settings.

Also try:

  • Sign out and sign back in (Cursor Settings > Account > Sign Out)
  • Restart Cursor

hi
very strange, I’ve never used together.ai. I though that you guys are using it as a provider.
I’ve not overridden my base url. It cannot be overridden for composer 1 anyways.
but it looks like this issue has resolved itself after 2 hours so we can close this.
Thanks for your quick response.

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