Skip to main content

Install Cursor

  1. Download and install Cursor from the Cursor website.
  2. Open Cursor, click the “Settings” button in the top-right corner to enter the settings page.
  3. Click the “Sign in” button to log in to your Cursor account.
cursor-install

Configure MiniMax API

Important: Clear OpenAI Environment Variables Before ConfigurationBefore configuring, ensure you clear the following OpenAI-related environment variables to avoid conflicts with MiniMax API:
  • OPENAI_API_KEY
  • OPENAI_BASE_URL
  1. Click “Models” in the left sidebar to open the model configuration page.
  2. Expand the “API Keys” section and configure the API information:
    • Enable “Override OpenAI Base URL”;
    • Enter the MiniMax base URL (for international users, use https://api.minimax.io/v1; for users in China, use https://api.minimaxi.com/v1)
  3. Paste the API key obtained from the MiniMax Developer Platform (For users in China, visit MiniMax Developer Platform) into the OpenAI API Key field.
  4. Click the button on the right side of the “OpenAI API Key” field.
cursor-configuration
  1. Click the “Enable OpenAI API Key” button in the pop-up window to complete verification.
cursor-verify
  1. In the Models section, click the “View All Models” button, and then click the “Add Custom Model” button.
  1. Enter the model name “MiniMax-M2.1”, then click the “Add” button.
  1. Enable the newly added “MiniMax-M2.1” model.
  2. Select the “MiniMax-M2.1” model in the chat panel and start using “MiniMax-M2.1” for development.