How to Add Gemini 2.5 Pro to Cursor IDE for Free (Step-by-Step)

Learn how to integrate Google Gemini 2.5 Pro with Cursor IDE for free. This step-by-step guide covers API key setup, model configuration, and boosting your API development workflow with Apidog.

Ashley Goolam

Ashley Goolam

1 February 2026

How to Add Gemini 2.5 Pro to Cursor IDE for Free (Step-by-Step)

Unlocking advanced AI coding features in your IDE can dramatically accelerate API development, debugging, and code review. Google’s Gemini 2.5 Pro is among the most powerful AI models available for developers, now accessible directly in Cursor IDE—without any subscription fees. This guide walks API professionals and backend engineers through configuring Gemini 2.5 Pro in Cursor, plus how to streamline your workflow by pairing it with Apidog for end-to-end API design and testing.

Why Use Gemini 2.5 Pro in Cursor?

Gemini 2.5 Pro delivers enhanced reasoning, code generation, and contextual understanding for developers. Integrated with Cursor IDE, it provides:

Unlike earlier models, Gemini 2.5 Pro maintains coherence through long coding sessions, making it ideal for complex, multi-file projects.

Enhance Your API Workflow with Apidog

While Gemini 2.5 Pro boosts your coding efficiency, robust API management is equally crucial. Apidog seamlessly integrates into the modern development stack, allowing you to:

Image

Apidog complements Cursor’s AI assistance, reducing context switching and making your end-to-end API lifecycle more efficient.

button

Step-by-Step: Add Gemini 2.5 Pro to Cursor IDE

1. Open Cursor Settings

macOS:

Windows/Linux:

Settings will open in a new editor tab, keeping your workspace intact.

2. Navigate to Model or Extensions Settings

Image

This section manages your AI integrations.

3. Use the Correct Gemini Model Identifier

Image

Gemini 2.5 Pro Experimental’s identifier for Cursor is:

gemini-2.5-pro-exp-03-25

Type it exactly, including hyphens and numbers. If you see connection errors, double-check the identifier on Google AI Studio.

4. Get a Google API Key

To enable Cursor’s access to Gemini 2.5 Pro, generate an API key:

  1. Visit Google AI Studio (or ai.google.dev)
  2. Sign in with your Google account.
  3. Click Get API key (top-left or in the side menu).
  4. Select Create API key (and “Create in new project” if prompted).
  5. Complete any verification steps.
  6. Copy the generated API key and store it securely.

Image

Security tip:
Never share or commit your API key. Revoke and regenerate it immediately if compromised. Google’s free tier covers most individual usage, but monitor your quota to avoid charges.

5. Add a Custom Model in Cursor

Image

Return to Cursor’s settings:

Image

6. Enter Gemini 2.5 Pro Model Name

In the custom model setup:

7. Override the OpenAI Base URL

Cursor often defaults to OpenAI APIs. To use Gemini, redirect requests:

Include the trailing slash. If your Cursor version supports a "Google" provider, select it instead.

8. Enter Your Google API Key

9. Save and Apply Settings

Your new Gemini 2.5 Pro model is now ready for use.

10. Test Gemini 2.5 Pro in Cursor

If responses are accurate and detailed, your integration is successful.

button

Alternative: Using OpenRouter to Connect Gemini 2.5 Pro

If you run into issues with Google’s direct API, OpenRouter offers an alternative route to access Gemini 2.5 Pro and other language models.

1. Set Up OpenRouter

Image

2. Configure Cursor with OpenRouter

Advantages of OpenRouter:

Note: OpenRouter acts as a middleman, so expect minor latency and possible service interruptions if they occur.


Conclusion

By following these steps, you can add Gemini 2.5 Pro’s advanced AI coding features to your Cursor IDE—at no extra cost. This setup is ideal for API developers and engineers who want to:

Regularly review API usage and check for updates in Cursor and Gemini documentation, as integration steps may evolve.

button

Explore more

Claude Code Weekly Limits Just Jumped 50% Through July 13: What Pro, Max, and Team Users Should Do With the Extra Quota

Claude Code Weekly Limits Just Jumped 50% Through July 13: What Pro, Max, and Team Users Should Do With the Extra Quota

Anthropic raised Claude Code weekly limits 50% through July 13, 2026. What changed for Pro, Max, Team, and Enterprise, plus how to use the extra quota.

14 May 2026

OpenAI Daybreak vs Claude Mythos: How They Compare

OpenAI Daybreak vs Claude Mythos: How They Compare

OpenAI Daybreak and Anthropic's Claude Mythos both target cybersecurity, but they take opposite approaches. Side-by-side comparison of capability, access, partners, and workflow.

12 May 2026

How to Track OpenAI API spend per feature: a cost-attribution playbook

How to Track OpenAI API spend per feature: a cost-attribution playbook

OpenAI's dashboard shows total spend, not where it came from. Tag every request, attribute cost per feature and customer, set caps, alert on runaway spend.

12 May 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs