How to use Gemini 2.5 Pro in Cursor with my subscription?

Hi,

I have Gemini 2.5 Pro subscription, I wonder if I can use it in cursor? If I generate an API key, can I use it in cursor?

Thanks in advance.

Yes, you might be able to use it - however, I’ve not tried it yet.

Go to Cursor settings → Models tab → Click “API Keys” on the right pane when you scroll down.

thank you, cursor should not charge me right?

Their document doesn’t say that they charge for BYOK - API Keys | Cursor Docs

Tab completions might still use cursor’s api, only your chat mode will be able to use your gemini api key.