Cursor is trying to use openrouter when Using Google API

Could someone from Cursor team please check this:

It might be a quick backend fix.

I’ve verified that my Google API key works by using the Curl command from Google AI studio.

When I click “verify” in Cursor settings, it doesn’t return any errors, so I assume it’s verifying correctly.

Trying to use it in Chat gives that openrouter error:
image

I’ve checked 0.39.6, 0.40.1, and 0.40.3, it’s reproducible on all those builds. So it seems like it might be a backend issue.

1 Like

The “Override OpenAI Base URL” setting is also being used for Google models. If you reset it to the default, the error should disappear. However, I agree that it’s somewhat confusing.

image

2 Likes

Hi @Jakob, this problem persists. For example, I’d like to use OpenRouter for the OpenAI models, but not for the Google Gemini models (basically because tokens are for free through the Google API), but it’s over-riding the Google AI API as well. So I can’t run both, Open Router and the Google API. This doesn’t happen with Anthropic, though.

1 Like