# MiniMax: MiniMax-M2

- Model ID: `MiniMax-M2`
- Provider: MiniMax
- Web version: https://www.moleapi.com/en/models/minimax/minimax-m2
- Content status: catalog

## Model introduction

MiniMax model by MiniMax for general chat, writing, coding assistance, and tool-assisted workflows.

## Model capabilities

- OpenAI compatible
- Responses API
- Anthropic compatible
- Gemini compatible
- Prompt cache

### Verified specifications

- Catalog status: Currently available on MoleAPI
- Compatible protocols: openai, openai-response, anthropic, gemini
- Available billing groups: Standard, Discount, Relay

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $0.304 / 1M tokens
- Output: $1.216 / 1M tokens
- Cache read: $0.06 / 1M tokens

### Discount (discount, x0.8)

- Input: $0.2432 / 1M tokens
- Output: $0.9728 / 1M tokens
- Cache read: $0.048 / 1M tokens

### Relay (relay, x0.3)

- Input: $0.0912 / 1M tokens
- Output: $0.3648 / 1M tokens
- Cache read: $0.018 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| openai | POST | /v1/chat/completions |
| openai-response | POST | /v1/responses |
| anthropic | POST | /v1/messages |
| gemini | POST | /v1beta/models/{model}:generateContent |

- Live pricing source: https://home.moleapi.com/api/pricing

## About MiniMax-M2

MiniMax model by MiniMax for general chat, writing, coding assistance, and tool-assisted workflows.

### Sources

- [MoleAPI console pricing catalog](https://home.moleapi.com/api/pricing) — MoleAPI

## Code examples

### cURL

```bash
curl https://api.moleapi.com/v1/responses \
  -H "Authorization: Bearer $MOLEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"MiniMax-M2","input":"Explain this problem step by step."}'
```

### Python

```python
from openai import OpenAI

client = OpenAI(base_url="https://api.moleapi.com/v1", api_key="YOUR_MOLEAPI_API_KEY")
response = client.responses.create(model="MiniMax-M2", input="Explain this problem step by step.")
print(response.output_text)
```

### TypeScript

```typescript
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.moleapi.com/v1", apiKey: process.env.MOLEAPI_API_KEY });
const response = await client.responses.create({ model: "MiniMax-M2", input: "Explain this problem step by step." });
console.log(response.output_text);
```

## More related models

- [minimax-m3](https://www.moleapi.com/en/models/minimax/minimax-m3) — MiniMax
- [minimaxai/minimax-m3](https://www.moleapi.com/en/models/minimax/minimaxai-minimax-m3) — MiniMax
- [MiniMax-M3](https://www.moleapi.com/en/models/minimax/minimax-m3-alias-1) — MiniMax
- [gpt-5.6-luna](https://www.moleapi.com/en/models/openai/gpt-5.6-luna) — OpenAI
- [gpt-5.6-sol](https://www.moleapi.com/en/models/openai/gpt-5.6-sol) — OpenAI
- [gpt-5.6-terra](https://www.moleapi.com/en/models/openai/gpt-5.6-terra) — OpenAI

## Frequently asked questions

### How is MiniMax-M2 priced?

Prices are read from the MoleAPI console API and update with model prices, context tiers, and account groups.

### How can I access MiniMax-M2?

The catalog currently lists openai, openai-response, anthropic, gemini.

### How do I switch an existing project to MiniMax-M2?

Keep the MoleAPI API address and key, replace the model parameter, and check protocol-specific parameters.

### Where do the MiniMax-M2 details come from?

Only confirmed availability, pricing, and protocol details from the MoleAPI catalog are included.
