Compare Claude Haiku 4.5 from Anthropic 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.
Claude Haiku 4.5 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.
Claude Haiku 4.5, from Anthropic, has a 200,000-token context window and is priced at $1/M tokens input, $5/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.
| Claude Haiku 4.5 | GPT-5.1-Codex-Mini | |
|---|---|---|
| Input price | $1/M tokens | $0.25/M tokens |
| Output price | $5/M tokens | $2/M tokens |
| Context window | 200,000 tokens | 400,000 tokens |
| Intelligence Index | 15.4 | 20.4 |
| Coding Index | Not available | Not available |
| Agentic Index | Not available | Not available |
| Latency (p50) | 0.69 s | 5.84 s |
| Throughput (p50) | 70.0 tok/s | 70.0 tok/s |
GPT-5.1-Codex-Mini is cheaper than Claude Haiku 4.5 on OpenRouter: GPT-5.1-Codex-Mini costs $0.25/M tokens input and $2/M tokens output, while Claude Haiku 4.5 costs $1/M tokens input and $5/M tokens output.
GPT-5.1-Codex-Mini has the longer context window at 400,000 tokens, compared with 200,000 tokens for Claude Haiku 4.5.
Claude Haiku 4.5 and GPT-5.1-Codex-Mini generate at the same median throughput on OpenRouter: 70.0 tokens per second.