Compare MiniMax M2 from MiniMax and GPT-5.1-Codex-Mini from OpenAI on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.
MiniMax M2 and GPT-5.1-Codex-Mini are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
MiniMax M2, from MiniMax, has a 204,800-token context window and is priced at $0.255/M tokens input, $1.02/M tokens output on OpenRouter.
GPT-5.1-Codex-Mini, from OpenAI, has a 400,000-token context window and is priced at $0.25/M tokens input, $2/M tokens output on OpenRouter.
| Attribute | MiniMax M2 | GPT-5.1-Codex-Mini |
|---|---|---|
| Input price | $0.255/M tokens | $0.25/M tokens |
| Output price | $1.02/M tokens | $2/M tokens |
| Context window | 204,800 tokens | 400,000 tokens |
| Intelligence Index | 18.6 | 20.4 |
| Coding Index | Not available | Not available |
| Agentic Index | Not available | Not available |
| Latency (p50) | 1.21 s | 5.14 s |
| Throughput (p50) | 48.0 tok/s | 115.5 tok/s |
Benchmark data updated
MiniMax M2 and GPT-5.1-Codex-Mini trade off on price: MiniMax M2 costs $0.255/M tokens input and $1.02/M tokens output, while GPT-5.1-Codex-Mini costs $0.25/M tokens input and $2/M tokens output, so GPT-5.1-Codex-Mini is cheaper for input tokens and MiniMax M2 is cheaper for output tokens.
GPT-5.1-Codex-Mini has the longer context window at 400,000 tokens, compared with 204,800 tokens for MiniMax M2.
GPT-5.1-Codex-Mini is faster on OpenRouter, generating a median 115.5 tokens per second compared with 48.0 tokens per second for MiniMax M2.