# MiniMax M2.7 API Pricing

As of October 10, 2026, MiniMax M2.7 costs $0.25 per 1M input tokens and $1.00 per 1M output tokens from DeepInfra, the lowest of 7 providers, with cache reads at $0.05 per 1M tokens. It has a 196,608-token context window and returns up to 204,800 tokens per response.

- Page: https://models.litellm.ai/models/minimax-m2.7
- Lab: MiniMax
- LiteLLM model name: `deepinfra/MiniMaxAI/MiniMax-M2.7`
- Context window: 196,608 tokens
- Max output: 204,800 tokens
- Added to LiteLLM: May 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| DeepInfra | `deepinfra/MiniMaxAI/MiniMax-M2.7` | $0.25 | $1.00 | $0.05 | – | – | 192K |
| AIHubMix | `aihubmix/minimax-m2.7` | $0.2958 | $1.183 | $0.05916 | – | – | 200K |
| Fireworks AI | `fireworks_ai/accounts/fireworks/models/minimax-m2p7` | – | – | – | – | – | 192K |
| Novita AI | `novita/minimax/minimax-m2.7` | $0.30 | $1.20 | $0.06 | – | – | 200K |
| Pinstripes | `pinstripes/ps/minimax-m2.7` | $0.255 | $0.55 | – | – | – | 1M |
| SambaNova | `sambanova/MiniMax-M2.7` | $0.60 | $2.40 | – | – | – | 192K |
| Together AI | `together_ai/MiniMaxAI/MiniMax-M2.7` | $0.30 | $1.20 | $0.06 | – | – | 192K |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- DeepInfra: $1.00
- Pinstripes: $0.785
- AIHubMix: $1.183
- Novita AI: $1.20

100 long-document requests with 100,000 input and 2,000 output tokens each:

- DeepInfra: $2.70
- Pinstripes: $2.66
- AIHubMix: $3.195
- Novita AI: $3.24

## Features

Supported: Function calling, Structured output, Reasoning, Prompt caching.
Not supported: Image input.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="deepinfra/MiniMaxAI/MiniMax-M2.7",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does MiniMax M2.7 cost?

MiniMax M2.7 costs $0.25 per 1M input tokens and $1.00 per 1M output tokens from DeepInfra, the lowest of 7 providers, with cache reads at $0.05 per 1M tokens.

### What is the context window of MiniMax M2.7?

MiniMax M2.7 has a 196,608-token context window and returns up to 204,800 tokens per response.

### Which providers offer MiniMax M2.7?

MiniMax M2.7 is available from 7 providers through LiteLLM: DeepInfra, AIHubMix, Fireworks AI, Novita AI, Pinstripes, SambaNova and Together AI. The lowest price is on DeepInfra.

### How do I call MiniMax M2.7 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="deepinfra/MiniMaxAI/MiniMax-M2.7", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does MiniMax M2.7 support?

MiniMax M2.7 supports function calling, structured output, reasoning and prompt caching. It does not support image input.

### When did LiteLLM add MiniMax M2.7?

MiniMax M2.7 was added to LiteLLM's model price file in May 2026.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
