Compare GPT-5 Codex from OpenAI 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.
GPT-5 Codex 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.
GPT-5 Codex, from OpenAI, has a 400,000-token context window and is priced by the provider serving it 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 | GPT-5 Codex | GPT-5.1-Codex-Mini |
|---|---|---|
| Input price | Pricing varies by provider | $0.25/M tokens |
| Output price | Pricing varies by provider | $2/M tokens |
| Context window | 400,000 tokens | 400,000 tokens |
| Intelligence Index | 24.9 | 20.4 |
| Coding Index | Not available | Not available |
| Agentic Index | Not available | Not available |
| Latency (p50) | Not available | 5.18 s |
| Throughput (p50) | Not available | 69.0 tok/s |
Benchmark data updated
GPT-5 Codex and GPT-5.1-Codex-Mini have the same context window of 400,000 tokens.