Skip to main content

Getting Started

1

Subscribe to Coding Plan

Visit the Coding Plan Subscription page, choose the plan (Starter, Plus, Max) that best suits your needs , and complete the subscription process. Coding Plan
2

Get API Key

Once your subscription is successful, navigate to the Account > Coding Plan page. Here you can view your active Coding Plan and get your Coding Plan API Key for use in coding tools.
Important Notes:
  • This API Key is exclusive to the Coding Plan and is not interchangeable with the API Keys for pay-as-you-go text models.
  • This API Key is only valid during the active period of your Coding Plan subscription.
  • Please protect your API Key to prevent any loss of your resources.
apikey
3

Test API Call (Optional)

Quickly test MiniMax M2.1 via Compatible Anthropic API1. Install Anthropic SDK
pip install anthropic
2. Configure Environment Variables
export ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
export ANTHROPIC_API_KEY=${YOUR_API_KEY}
3. Call API
Python
import anthropic

client = anthropic.Anthropic()

message = client.messages.create(
    model="MiniMax-M2.1",
    max_tokens=1000,
    system="You are a helpful assistant.",
    messages=[
        {
            "role": "user",
            "content": [
                {
                    "type": "text",
                    "text": "Hi, how are you?"
                }
            ]
        }
    ]
)

for block in message.content:
    if block.type == "thinking":
        print(f"Thinking:\n{block.thinking}\n")
    elif block.type == "text":
        print(f"Text:\n{block.text}\n")
4

Integrate with AI Coding Tools

Choose your preferred AI coding tool from the options below to experience the latest MiniMax M2.1 model capabilities

MCP Integration

Quickly integrate Coding Plan MCP for Image Understanding and Web Search capabilities

MCP Guide

Learn how to configure and use Coding Plan MCP

Best Practices

Quickly view MiniMax M2.1 usage tips and practical examples