OpenAI: GPT-5.1-Codex alternatives
Ranked by capability overlap, similar context window, and similar price tier. Cross-vendor options are weighted higher than same-provider alternatives.
See also: OpenAI: GPT-5.1-Codex model details · GPT-5 family · OpenAI provider page
Top 15 alternatives
| # | Model | Provider | Why | Context | Input price / 1M | Compare |
|---|---|---|---|---|---|---|
| 1 | Anthropic: Claude Haiku 4.5 | Anthropic | shares reasoning, tool-use, structured-output, vision · similar price tier | 200K Long context (128K+) | $1.00 Standard | vs → |
| 2 | xAI: Grok 4 | X Ai | shares reasoning, tool-use, structured-output, vision · similar price tier | 256K Long context (128K+) | $3.00 Standard | vs → |
| 3 | Anthropic: Claude Sonnet 4.5 | Anthropic | shares reasoning, tool-use, structured-output, vision · similar price tier | 1M Ultra context (1M+) | $3.00 Standard | vs → |
| 4 | Anthropic: Claude Sonnet 4.6 | Anthropic | shares reasoning, tool-use, structured-output, vision · similar price tier | 1M Ultra context (1M+) | $3.00 Standard | vs → |
| 5 | Google: Gemini 2.5 Pro | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $1.25 Standard | vs → | |
| 6 | Google: Gemini 2.5 Pro Preview 05-06 | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $1.25 Standard | vs → | |
| 7 | Google: Gemini 2.5 Pro Preview 06-05 | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $1.25 Standard | vs → | |
| 8 | Google: Gemini 3 Flash Preview | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $0.50 Budget | vs → | |
| 9 | Google: Gemini 3 Pro Preview | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $2.00 Standard | vs → | |
| 10 | Google: Gemini 3.1 Pro Preview | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $2.00 Standard | vs → | |
| 11 | Google: Gemini 3.1 Pro Preview Custom Tools | shares reasoning, tool-use, structured-output, vision · similar price tier | 1.0M Ultra context (1M+) | $2.00 Standard | vs → | |
| 12 | xAI: Grok 4.20 Beta | X Ai | shares reasoning, tool-use, structured-output, vision · similar price tier | 2M Ultra context (1M+) | $2.00 Standard | vs → |
| 13 | Anthropic: Claude Opus 4.1 | Anthropic | shares reasoning, tool-use, structured-output, vision · similar context window | 200K Long context (128K+) | $15.00 Premium | vs → |
| 14 | Anthropic: Claude Opus 4.5 | Anthropic | shares reasoning, tool-use, structured-output, vision · similar context window | 200K Long context (128K+) | $5.00 Standard | vs → |
| 15 | Mistral: Mistral Small 4 | Mistral AI | shares reasoning, tool-use, structured-output, vision · similar context window | 262K Long context (128K+) | $0.15 Budget | vs → |