# minimax/minimax-m3

Source: https://docs.sociaro.com/models/minimax-minimax-m3/

MiniMax M3.

Flagship reasoning/coding model, 1M-token context.

A prompt over 512k bills the WHOLE request at the vendor's long-context tier.

|  |  |
| --- | --- |
| Slug | `minimax/minimax-m3` |
| Kind | chat |
| Vendor | minimax |
| Endpoint | `POST /v1/chat/completions` |

[View pricing and billing conditions](https://docs.sociaro.com/models/minimax-minimax-m3/#pricing)

## Example request

cURL

```bash
curl https://api.sociaro.com/v1/chat/completions \
  -H "Authorization: Bearer $SOCIARO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
        "model": "minimax/minimax-m3",
        "messages": [{"role": "user", "content": "hello"}]
      }'
```

Python

```python
# Requires Python 3 and requests (pip install requests).
import os
import requests

payload = {'model': 'minimax/minimax-m3',
 'messages': [{'role': 'user', 'content': 'hello'}]}

response = requests.post(
    'https://api.sociaro.com/v1/chat/completions',
    headers={
        'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
        'Content-Type': 'application/json',
    },
    json=payload,
    timeout=120,
)
response.raise_for_status()
print(response.text)
```

JavaScript

```javascript
// Run as an .mjs file with Node.js 22 or later.

const payload = {
  "model": "minimax/minimax-m3",
  "messages": [
    {
      "role": "user",
      "content": "hello"
    }
  ]
};

const response = await fetch("https://api.sociaro.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());
```

## Parameters

| Field | Type | Required | Default | Values | What it does |
| --- | --- | --- | --- | --- | --- |
| `messages` | object[] | yes | — | OpenAI chat messages (system, user, assistant, tool) | The conversation, in OpenAI's format. |
| `max_completion_tokens` | integer | no | the model's | 1 up to the model's output limit | Thinking tokens count toward it: too small a cap ends with `finish_reason: length` and an empty answer. |
| `max_tokens` | integer | no | — | as above | The older name for the same cap; MiniMax marks it deprecated. |
| `stream` | boolean | no | false | true · false | Server-sent events, as in OpenAI's API. |
| `stream_options` | object | no | — | {"include_usage": true} | Adds a final chunk with token usage. |
| `temperature` | number | no | 1 | (0, 1] | MiniMax documents it as having no effect on M3 (fixed at 1). |
| `top_p` | number | no | 0.95 | (0, 1] | MiniMax documents it as having no effect on M3 (fixed at 0.95). |
| `tools` | object[] | no | — | OpenAI function tools | Function calling, in OpenAI's format. |
| `tool_choice` | string | no | auto | none · auto · required | Whether the model may, must, or must not call a tool, as MiniMax documents for M3. |
| `thinking` | object | no | on | {"type": "adaptive"} · {"type": "disabled"} | The model reasons before answering by default; `disabled` turns it off. |
| `reasoning_split` | boolean | no | the vendor's | true · false | true returns the reasoning in `reasoning_content`; false leaves it inside the answer between think tags. |
| `service_tier` | string | no | standard | priority | MiniMax's priority tier, on M3 only, billed at 1.5× the standard rates. |

## Pricing

| Billable unit and options | Rate (USD) |
| --- | --- |
| per 1M input tokens | $0.36 |
| per 1M input tokens prompts over 512,000 tokens | $0.72 |
| per 1M input tokens priority (service_tier: priority) | $0.54 |
| per 1M output tokens | $1.44 |
| per 1M output tokens prompts over 512,000 tokens | $2.88 |
| per 1M output tokens priority (service_tier: priority) | $2.16 |
| per 1M cached input tokens | $0.072 |
| per 1M cached input tokens prompts over 512,000 tokens | $0.144 |
| per 1M cached input tokens priority (service_tier: priority) | $0.108 |
| per 1M cache-write tokens free | $0.0 |
| per 1M cache-write tokens priority (service_tier: priority) free | $0.0 |

- A prompt over 512,000 tokens bills the whole request at the long-context rates.

[View this model in the pricing catalogue](https://sociaro.com/pricing?model=minimax%2Fminimax-m3). Your [billing logs](https://docs.sociaro.com/billing/index.md) show the actual charge for each request.
