# MiniMax M4

MiniMax M4 is MiniMax's 3T-parameter flagship model with a 1M-token context window, built for long-horizon coding across large codebases. It reasons on every request with adjustable reasoning effort, supports tool use, and accepts text and image input.

- **Model ID:** `minimax/minimax-m4`
- **Type:** chat
- **Providers:** minimax
- **Context window:** 1,000,000
- **Maximum output tokens:** 262,144
- **Pricing:** $0.80/1M input tokens, $3.10/1M output tokens
- **Canonical page:** https://vercel.com/ai-gateway/models/minimax/minimax-m4

## Supported parameters

Detailed capability metadata has not been reported for this model.

## Example

```ts
import { streamText } from 'ai'

const result = streamText({
  model: 'minimax/minimax-m4',
  prompt: 'Why is the sky blue?'
})
```

## Links

- [Model page](https://vercel.com/ai-gateway/models/minimax/minimax-m4)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://platform.minimax.io/docs/guides/text-generation)
- [Provider pricing](https://platform.minimax.io/docs/pricing/overview)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
