Cursor AI Model Integration
Learn how to configure Cursor AI with different AI models. This guide explains how to set up Google Gemini and Azure OpenAI integrations.
Google AI
Cursor AI supports integration with Google's powerful Gemini models
- Use Gemini-1.5-flash-500k model
- Set up your own Google API key
- Pay directly through Google Cloud
Azure OpenAI
Connect your Azure OpenAI service with Cursor AI
- Use Azure's enterprise AI models
- Configure your Azure API credentials
- Manage costs through Azure platform
How to Configure Your API Key
Configuration Path:
Cursor Settings → Models → API Key
- Obtain your API key from Google Cloud Console or Azure Portal
- Open Cursor Settings by clicking on the gear icon or using the keyboard shortcut
- Navigate to Models section in the settings menu
- Find the API Key input field for your chosen model
- Enter your API key and click the "Verify" button
- Once validated, your custom API key will be enabled for use
Cursor AI API configuration interface showing where to input your API keys
Understanding API Security
Important information about how Cursor AI handles API keys:
According to Cursor AI's documentation, API keys are not stored - they're only used for immediate request authentication
Requests are processed through Cursor AI's backend for optimal prompt construction
You maintain control over your API usage and associated costs with your chosen provider