MiniMax M2.1 Lightning

Model details

MiniMax M2.1 Lightning

Model
minimax/minimax-m2.1-lightning
Provider
vercel-ai-gateway
API
anthropic-messages
Base URL
https://ai-gateway.vercel.sh
Input
text
Reasoning
Yes
Context window
204,800
Max tokens
131,072
Cost / million input
$0.3
Cost / million output
$2.4
Cost / million cache read
$0.03
Cost / million cache write
$0.375
Model config JSON
{
  "providers": {
    "vercel-ai-gateway": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "minimax/minimax-m2.1-lightning",
          "name": "MiniMax M2.1 Lightning",
          "reasoning": true,
          "input": [
            "text"
          ],
          "contextWindow": 204800,
          "maxTokens": 131072,
          "cost": {
            "input": 0.3,
            "output": 2.4,
            "cacheRead": 0.03,
            "cacheWrite": 0.375
          }
        }
      ],
      "api": "anthropic-messages",
      "baseUrl": "https://ai-gateway.vercel.sh"
    }
  }
}