# MiniMax M2

`minimax/minimax-m2` · MiniMax · text

MiniMax M2 reasons through changes to code and can call tools to inspect a repository or read test results.

[Model page](https://sociaro.com/models/minimax/minimax-m2) · [JSON](https://sociaro.com/models/minimax/minimax-m2.json) · [Model pricing](https://sociaro.com/pricing?model=minimax%2Fminimax-m2) · [Documentation](https://docs.sociaro.com/models/minimax-minimax-m2/)

## Use cases

- Trace a failing test to the function that caused it
- Draft a patch from an issue and the surrounding code

## Technical details

- API model ID — minimax/minimax-m2
- Provider — MiniMax
- Modality — Text
- Input — Chat messages
- Output — Text
- Endpoint — POST /v1/chat/completions

## Request parameters

- `messages` (object[], required) — The conversation, in OpenAI's format.
  - OpenAI chat messages (system, user, assistant, tool)
- `max_completion_tokens` (integer, optional, default `the model's`) — Thinking tokens count toward it: too small a cap ends with finish_reason: length and an empty answer.
  - 1 up to the model's output limit
- `max_tokens` (integer, optional) — The older name for the same cap; MiniMax marks it deprecated.
  - as above
- `stream` (boolean, optional, default `false`) — Server-sent events, as in OpenAI's API.
  - true · false
- `stream_options` (object, optional) — Adds a final chunk with token usage.
  - {"include_usage": true}
- `temperature` (number, optional, default `1`) — MiniMax documents it as having no effect on M3 (fixed at 1).
  - (0, 1]
- `top_p` (number, optional, default `0.95`) — MiniMax documents it as having no effect on M3 (fixed at 0.95).
  - (0, 1]
- `tools` (object[], optional) — Function calling, in OpenAI's format.
  - OpenAI function tools
- `thinking` (object, optional, default `on`) — These models always reason before answering; reasoning cannot be turned off.
  - {"type": "adaptive"}
- `reasoning_split` (boolean, optional, default `the vendor's`) — true returns the reasoning in reasoning_content; false leaves it inside the answer between think tags.
  - true · false

## Pricing

Rates in USD. Catalogue timestamp 2026-11-21T02:23:44Z.

- USD 0.36 per 1M input tokens · active
- USD 1.44 per 1M output tokens · active
- USD 0.036 per 1M cached input tokens · active
- USD 0.45 per 1M cache-write tokens · active
