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

11 June 2026

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

Apidog for Enterprise

On-Premises Deploy

SSO & RBAC

SOC 2 Compliant

Explore Apidog Enterprise

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.


Gemini 2.5 Pro is just one model you can wire in this way — our complete guide to using custom API keys in Cursor covers the setup for any provider, without the per-request markup.

Everything above assumes Cursor is already on your machine — if it is not, installing Cursor on Mac, Windows, or Linux takes only a few minutes before you can wire up Gemini.

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

Generate API Tests With GPT-6 Luna: What a Full OpenAPI Spec Actually Costs

Generate API Tests With GPT-6 Luna: What a Full OpenAPI Spec Actually Costs

A full test-generation pass over a 42-endpoint OpenAPI spec costs about $0.29 on GPT-6 Luna at $0.10/$0.50, or under $0.10 with prompt caching. The per-spec arithmetic, the request shape, the latency to budget for, and the two failure modes.

23 September 2026

What Is GPT-6 Sol? Model ID, Pricing, 872K Context, and Benchmarks

What Is GPT-6 Sol? Model ID, Pricing, 872K Context, and Benchmarks

GPT-6 Sol explained: model ID gpt-6-sol, $2/$10 pricing, 872K context, AutomationBench 33.2% at $0.27 per task, DeepSWE 68.8%, and why it is a new model, not the GPT-5.6 Sol tier.

23 September 2026

What Is Claude Opus 5.5?

What Is Claude Opus 5.5?

Claude Opus 5.5 explained: model id claude-opus-5-5, $4/$20 pricing, 1M context, 128k max output, the eight benchmark scores Anthropic published, and 18+ hour tasks.

23 September 2026

Practice API Design-first in Apidog

Discover an easier way to build and use APIs

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