Compare Devstral 2 2512 from Mistral AI and GPT-5.1-Codex-Max 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.


Devstral 2 2512 and GPT-5.1-Codex-Max are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
Devstral 2 2512, from Mistral AI, has a 262,144-token context window and is priced at $0.40/M tokens input, $2/M tokens output on OpenRouter.
GPT-5.1-Codex-Max, from OpenAI, has a 400,000-token context window and is priced at $1.25/M tokens input, $10/M tokens output on OpenRouter.
| Attribute | Devstral 2 2512 | GPT-5.1-Codex-Max |
|---|---|---|
| Input price | $0.40/M tokens | $1.25/M tokens |
| Output price | $2/M tokens | $10/M tokens |
| Context window | 262,144 tokens | 400,000 tokens |
| Intelligence Index | 8.6 | Not available |
| Coding Index | 31.3 | Not available |
| Agentic Index | 2.3 | Not available |
| Latency (p50) | 1.18 s | 1.51 s |
| Throughput (p50) | 101.0 tok/s | 84.5 tok/s |
Benchmark data updated
Devstral 2 2512 is cheaper than GPT-5.1-Codex-Max on OpenRouter: Devstral 2 2512 costs $0.40/M tokens input and $2/M tokens output, while GPT-5.1-Codex-Max costs $1.25/M tokens input and $10/M tokens output.
GPT-5.1-Codex-Max has the longer context window at 400,000 tokens, compared with 262,144 tokens for Devstral 2 2512.
Devstral 2 2512 is faster on OpenRouter, generating a median 101.0 tokens per second compared with 84.5 tokens per second for GPT-5.1-Codex-Max.