Skip to main content

Getting Started

1

Subscribe to Token Plan

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

Get API Key

Visit API Keys > Create Token Plan Key to get your API Key
Important Notes:
  • This API Key is exclusive to Token Plan. It is not interchangeable with pay-as-you-go API Keys.
  • This API Key is only valid during the active period of your Token Plan subscription.
  • Please protect your API Key. We recommend exporting it as an environment variable or saving it to a config file.
3

Test API Call (Optional)

Quickly test MiniMax M2.7 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.7",
    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.7 model capabilities

Claude Code

Cursor

Trae

OpenCode

Kilo Code

Cline

Roo Code

Grok CLI

Codex CLI

Droid

MCP Integration

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

MCP Guide

Learn how to configure and use Token Plan MCP

Best Practices

Quickly view MiniMax M2.7 usage tips and practical examples

M2.7 Usage Tips

Master efficient usage methods and tips for M2.7 model

Mini Agent

Build Agents with M2.7