Skip to main content

Documentation Index

Fetch the complete documentation index at: https://platform.minimax.io/docs/llms.txt

Use this file to discover all available pages before exploring further.

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
Note: Custom models require a Cursor Pro subscription or above.Without Cursor Pro, configuration will result in the following error:The model MiniMax-M2.7 does not work with your current plan or api key
Known issue: “Override OpenAI Base URL” is a global settingOnce enabled, the override applies to all API keys you’ve configured in Cursor — including Anthropic / GPT keys for Cursor’s built-in models. This is acknowledged by Cursor staff: when you set a base URL, all your API keys see it (forum thread).If your Cursor-native Claude / GPT models stop working after enabling Override, turn it off when you’re not using MiniMax. Cursor currently does not support per-model base URLs (open feature request).
  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.7”, then click the “Add” button.
Use the exact model name MiniMax-M2.7 (capital M’s, lowercase i, hyphen) — match the spelling shown in MiniMax docs.
  1. Enable the newly added “MiniMax-M2.7” model.
  2. Select the “MiniMax-M2.7” model in the chat panel and start using “MiniMax-M2.7” for development.
Cursor Tab autocomplete is not powered by your custom MiniMax key. Tab is a Cursor Pro feature that always uses Cursor’s own model. Custom models only work in Chat / Composer / Edit modes.