# 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
- Image generation
- Prompt cache

### Verified specifications

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

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

| Tier | Condition | Input | Output | Cache read |
| --- | --- | ---: | ---: | ---: |
| base | - | $0.304 | $1.216 | $0.06 |

### Discount (discount, x0.8)

| Tier | Condition | Input | Output | Cache read |
| --- | --- | ---: | ---: | ---: |
| base | - | $0.2432 | $0.9728 | $0.048 |

### Relay (relay, x0.3)

| Tier | Condition | Input | Output | Cache read |
| --- | --- | ---: | ---: | ---: |
| base | - | $0.0912 | $0.3648 | $0.018 |

### 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 |
| image-generation | POST | /v1/images/generations |

- 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-alias-1) — MiniMax
- [MiniMax-M2.7](https://www.moleapi.com/en/models/minimax/minimax-m2.7) — MiniMax
- [MiniMax-M2.7-highspeed](https://www.moleapi.com/en/models/minimax/minimax-m2.7-highspeed) — MiniMax
- [gpt-5.4-nano](https://www.moleapi.com/en/models/openai/gpt-5.4-nano) — OpenAI
- [gpt-5-mini](https://www.moleapi.com/en/models/openai/gpt-5-mini) — OpenAI
- [gpt-5-nano](https://www.moleapi.com/en/models/openai/gpt-5-nano) — 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, image-generation.

### 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.
