Cannot Use Own Google API Key

I generated a new API key from https://aistudio.google.com, but I ran into an issue.

I got an error message saying that Gemini 1.0 doesn’t exist on Google AI Studio anymore—it only supports Gemini 1.5 and above.

Root causes

Gemini 1.0 was removed from google. However cursor harcoded model name during verification


Bumped Topic Unable to add Google API Key - #12 by eugene-jeong

1 Like

@danperks

That model doesn’t seem to be available anymore:

I know it, how to resolve this in my cursor?

@danperks

You can remove the model that doesnt exist anymore inside your cursor settings

have you tried that? or just informing without trying

in my end I don’t see any gemini 1.0 model

1 Like

Your error message was that claimed its there…

I dont have that model anymore.

If you dont have it that error shouldnt show.

Is that error at all from Cursor tools or from some 3rd party extension?

I think you don’t understand the context, you can take a look on my first post picture

I did but it doesnt look like any part that Cursor provides or am i mistaken?

The other detail provided was that gemini-1.0-pro is not found for the API key so something must be using that model.

And as Dan explained its not available anymore.

you can open cursor setting, model, set own gemini api key, then verify

1 Like

so maybe this is a bug

He posted the link where you can verify it.

I checked that link and there is no mention of 1.0 anymore apart of historical entries.

you try first,
if you resolve it, kindly inform me

Perhaps then Dan will try?

nothing can we do, this is harcoded from cursor

we can’t switch model when verifying api key

I’m going to answer based on your original message. If you’re using your API key from Google and trying to use a model on Google AI Studio that is no longer there, that’s not a Cursor issue. They can’t request that Google add it back; if Google removed access to the model, then it’s gone. You may find it on another provider, but the Cursor dev team won’t be able to help with that.

cursor should not use legacy model. or let user decide model when verify

Cursor doesn’t have Gemini 1.0 in their lineup.

Is there an X on the far right of the model?

i’m tired explain to who doesn’t know the context. just try by your self to use own gemini api key and verify