Groq OpenAI Compatibility not working

Describe the Bug

Cannot add groq api endpoint to cursor

Steps to Reproduce

go to settings
add groq endpoint for OpenAI Compatibility
add api key
activate

Expected Behavior

Should accept it and use custom model from Groq

Screenshots / Screen Recordings

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

I have the same exact issue The openai custom api toggle does not toggle - #8 by Tor-Saxberg

I’m experiencing the exact same issue.

I have already entered my API key, set the “Override OpenAI Base URL” to https://api.groq.com/openai/v1, and enabled its toggle. When I then try to enable the main toggle next to the OpenAI API Key field, a dialog appears. After I click “Enable” in the dialog, the “Verify” button shows a loading spinner for a moment, but then nothing happens.

Interestingly, this doesn’t seem to be an issue for everyone, so I’m not sure what the cause is. For example, it appears to be working for this user: https://x.com/terrytjw/status/1952799502777356380

As a troubleshooting step, I tried disabling all other models and exclusively enabling the newly added openai/gpt-oss-120b, but the problem persisted.

Upon checking the Developer Tools, I noticed a POST request to https://api.groq.com/openai/v1/chat/completions is returning a 401 Unauthorized error. I have since verified my API key directly using the methods in the Groq documentation, and the key is valid and working correctly, so the issue does not seem to be with the key itself.

The payload for the failed request is:

{
  "model": "openai/gpt-oss-120b",
  "messages": [
    {
      "role": "system",
      "content": "You are a helpful assistant."
    },
    {
      "role": "user",
      "content": "Test prompt using gpt-3.5-turbo"
    }
  ],
  "temperature": 1,
  "max_tokens": 10,
  "stream": false
}

While we are working on an update that improves this, note:

  • Disable all models that are not available in your custom API
  • If a model available on your API key account is not listed you can add it manually in Cursor Settings > Models.

This should make it possible to verify your own API URL & key.

1 Like

It does not work even with this method

The URL you use is OpenAI compatible API?

Hey, at the moment, Groq isn’t working with Cursor.

it does not work even if you put any other URL and its stuck in that mode and i cannot even add the OpenAI key. Even if you remove the link and all the custom models, it does not activate the OpenAI API Key.

We are aware of this issue, the team is working on a fix.

1 Like

I also can’t enable the OpenAI key. Please check on it :grinning_face_with_smiling_eyes:

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