Skip to main content

MiniMax Provider

Access MiniMax M2 series models with 1M context window through API key authentication. Ideal for long-context tasks requiring extended document analysis.

Overview

The MiniMax provider enables Claude Code to use MiniMax’s M2 series models via the Anthropic-compatible API. Requires an API key from the MiniMax platform. Provider Type: API Preset (not OAuth) Command: ccs api create <name> --preset mm Supported Models:
  • MiniMax-M2.5 (latest, 1M context)
  • MiniMax-M2.5-lightning (fast variant, 1M context)
  • MiniMax-M2.1 (1M context)
  • MiniMax-M2.1-lightning (faster, 1M context)
  • MiniMax-M2 (legacy)

Setup

Step 1: Get API Key

  1. Visit platform.minimax.io
  2. Create an account or sign in
  3. Navigate to API Keys section
  4. Generate a new API key

Step 2: Create Profile

# Create MiniMax profile using preset
ccs api create mm --preset mm

# Enter your API key when prompted

Step 3: Use Profile

# Run with MiniMax
ccs mm "analyze this 500-page document"

# Interactive session
ccs mm

Commands

Basic Usage

# Start session with MiniMax
ccs mm

# Run with prompt
ccs mm "your task here"

Profile Management

# List all API profiles
ccs api list

# Remove MiniMax profile
ccs api remove mm

Configuration

Profile stored at: ~/.ccs/mm.settings.json
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "your-api-key",
    "ANTHROPIC_MODEL": "MiniMax-M2.1"
  }
}

Available Models

ModelContextSpeedBest For
MiniMax-M2.51M tokensStandardLatest capabilities, deep analysis
MiniMax-M2.5-lightning1M tokensFastQuick responses, latest generation
MiniMax-M2.11M tokensStandardLong documents, stable
MiniMax-M2.1-lightning1M tokensFastQuick responses, large context
MiniMax-M2200K tokensStandardLegacy, general use
Model aliases are normalized automatically — minimax-m2.5, MiniMax-M2.5, and minimax-M2.5 all resolve to the same model. CCS handles case and format differences transparently.

Pricing

Pay-as-you-go pricing via MiniMax platform. Refer to MiniMax Pricing for current rates.

Troubleshooting

Invalid API Key

# Verify your API key
curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://api.minimax.io/anthropic/v1/models

Rate Limiting

MiniMax applies rate limits based on your account tier. Upgrade your account at platform.minimax.io if you encounter 429 errors.

Next Steps

API Profiles

Learn about custom API profiles

Dashboard Config

Configure via web interface