# Cursor is trying to use openrouter when Using Google API

**URL:** <https://forum.cursor.com/t/cursor-is-trying-to-use-openrouter-when-using-google-api/13668>\
**Category:** Bug Reports\
**Created:** [August 30, 2024, 12:16am UTC](https://forum.cursor.com/t/cursor-is-trying-to-use-openrouter-when-using-google-api/13668 "2024-08-30T00:16:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fun\_strange](https://avatars.discourse-cdn.com/v4/letter/f/8c91f0/32.png) [@fun\_strange](https://forum.cursor.com/u/fun_strange)\
**Post date:** [August 30, 2024, 12:16am UTC](https://forum.cursor.com/t/cursor-is-trying-to-use-openrouter-when-using-google-api/13668/1 "2024-08-30T00:16:43Z")

</div>

Could someone from Cursor team please check this:

> [@Please support the latest Gemini 1.5 Experimental 0827 ASAP](https://forum.cursor.com/t/please-support-the-latest-gemini-1-5-experimental-0827-asap/13400/13):
>
> When I tried to add the Gemini model and use it in the chat (both normal and long), I got this error: [image] I added gemini-1.5-pro-exp-0827 and gemini-1.5-pro-exp-0827-500k to models in Cursor and enabled Google API key. Does anyone know what the problem could be? Edit: i’ve just double checked and my API key definitely works outside Cursor. Could someone from Cursor team please check this? As we want to use this Google API so badly. Also “verify” doesn’t return any errors when I’m usin…

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](https://us1.discourse-cdn.com/cursor1/original/2X/e/e0675702262e353c86822fd608bd76be525804fa.png)

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.

---

<div class="post-metadata">

**Author:** ![Jakob](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/jakob/32/93_2.png) [@Jakob](https://forum.cursor.com/u/Jakob)\
**Post date:** [August 30, 2024, 12:32am UTC](https://forum.cursor.com/t/cursor-is-trying-to-use-openrouter-when-using-google-api/13668/2 "2024-08-30T00:32:58Z")

</div>

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](https://us1.discourse-cdn.com/cursor1/original/2X/3/370168b47c05b3e306927dac1a6f8cafae58c951.png)

---

<div class="post-metadata">

**Author:** ![geduardo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/geduardo/32/9471_2.png) [@geduardo](https://forum.cursor.com/u/geduardo)\
**Post date:** [October 23, 2024, 1:08pm UTC](https://forum.cursor.com/t/cursor-is-trying-to-use-openrouter-when-using-google-api/13668/3 "2024-10-23T13:08:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![achris7](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/achris7/32/14229_2.png) [@achris7](https://forum.cursor.com/u/achris7)\
**Post date:** [December 2, 2024, 4:16pm UTC](https://forum.cursor.com/t/cursor-is-trying-to-use-openrouter-when-using-google-api/13668/4 "2024-12-02T16:16:58Z")

</div>

hello @Jakob also just opened a thread about this separately because this doesn’t work. how to utilize gemini instead of openai??
