Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - Documented by Cursor

Use Gemini in Cursor

Cursor supports bringing your own Google API key for Gemini chat models through Cursor Settings > Models.

Last verified 4 steps2 official sources

Steps

  1. Step 1.

    Open Cursor Settings > Models.

  2. Step 2.

    Find the provider you want (OpenAI, Anthropic, Google, Azure, or AWS Bedrock). Choose Google.

  3. Step 3.

    Paste your API key into the text field.

  4. Step 4.

    Click Save. Cursor now uses your key for that provider's models. They appear in the model picker.

Caveats

  • Cursor: "Google: Gemini models available through the Google AI API." Which Gemini ids appear in the picker is controlled by Cursor; the ids above come from Google's models page and were not checked in the picker.
  • "Custom API keys only work with chat models. Tab completion continues using Cursor's built-in models."
  • On Teams and Enterprise plans the Cursor Token Rate of $0.25 per million tokens still applies to own-key requests. Cursor's Zero Data Retention policy does not apply when you use your own API keys.
  • Cursor: "all requests are routed through Cursor's servers for final prompt building."

FAQ

How do I use Gemini in Cursor?

Cursor supports bringing your own Google API key for Gemini chat models through Cursor Settings > Models.

Which Gemini model ids work in Cursor?

The official docs read for this guide list gemini-4-argon, gemini-3.8-flash, gemini-3.6-flash, gemini-3.1-pro-preview and gemini-2.5-pro.

Is this an official Gemini and Cursor setup?

Cursor documents this setup in its own docs. It was last checked against 2 official pages on October 17, 2026.

Sources

Last verified against 2 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.