> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ccs.kaitran.ca/llms.txt
> Use this file to discover all available pages before exploring further.

# MiniMax Provider

> Access MiniMax M3 and M2 series models via API key authentication

# MiniMax Provider

Access MiniMax M3 and 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 Anthropic-compatible API models. Requires an API key from the MiniMax platform.

**Provider Type:** API Preset (not OAuth)

**Command:** `ccs api create <name> --preset mm`

**Supported Models:**

* MiniMax-M3 (default, 1M context)
* MiniMax-M2.5 (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](https://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

```bash theme={null}
# Create MiniMax profile using preset
ccs api create mm --preset mm

# Enter your API key when prompted
```

### Step 3: Use Profile

```bash theme={null}
# Run with MiniMax
ccs mm "analyze this 500-page document"

# Interactive session
ccs mm
```

## Commands

### Basic Usage

```bash theme={null}
# Start session with MiniMax
ccs mm

# Run with prompt
ccs mm "your task here"
```

### Profile Management

```bash theme={null}
# List all API profiles
ccs api list

# Remove MiniMax profile
ccs api remove mm
```

## Configuration

Profile stored at: `~/.ccs/mm.settings.json`

```json theme={null}
{
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
    "ANTHROPIC_AUTH_TOKEN": "your-api-key",
    "ANTHROPIC_MODEL": "MiniMax-M3"
  }
}
```

### Available Models

| Model                  | Context     | Speed    | Best For                           |
| ---------------------- | ----------- | -------- | ---------------------------------- |
| MiniMax-M3             | 1M tokens   | Standard | Default, latest generation         |
| MiniMax-M2.5           | 1M tokens   | Standard | Deep analysis                      |
| MiniMax-M2.5-lightning | 1M tokens   | Fast     | Quick responses, latest generation |
| MiniMax-M2.1           | 1M tokens   | Standard | Long documents, stable             |
| MiniMax-M2.1-lightning | 1M tokens   | Fast     | Quick responses, large context     |
| MiniMax-M2             | 200K tokens | Standard | Legacy, general use                |

<Note>
  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.
</Note>

## Pricing

**Pay-as-you-go pricing** via MiniMax platform.

Refer to [MiniMax Pricing](https://platform.minimax.io/docs/guides/pricing-paygo) for current rates.

## Troubleshooting

### Invalid API Key

```bash theme={null}
# 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

<CardGroup cols={2}>
  <Card title="API Profiles" icon="key" href="/providers/concepts/api-profiles">
    Learn about custom API profiles
  </Card>

  <Card title="Dashboard Config" icon="gauge" href="/getting-started/configuration">
    Configure via web interface
  </Card>
</CardGroup>
