Compare AI models
| Specifications | ||
Context windowHow much information the model can work with in one request, measured in tokens — pieces of words or other data. This includes your question, attachments, conversation and reply. Limits can vary by model variant and provider. | 1M | — |
| API pricingUSD per 1M tokens · lower wins | ||
Input priceWhat you pay for everything you send the model — your question, plus any documents or earlier conversation you include with it. | $0.40 | — |
Output priceWhat you pay for the text the model writes back. It is normally the dearer half: producing an answer costs more than reading one. | $1.60 | — |
Cached input priceA reduced rate for text you send over and over. If every request starts with the same instructions or the same document, the provider keeps a copy ready and charges less to read it again. | $0.10 | — |
Cheapest inputLowest input rate across every provider on OpenRouter, the lab included. The cheapest endpoint may run a quantised build or a shorter context — see "Available from" on the model page. | $0.40Azure | — |
Cheapest outputLowest output rate across every provider on OpenRouter, the lab included. May come from a different provider than the cheapest input. | $1.60Azure | — |
| $160OpenAI list price | — | |
| Benchmarks | ||
HumanEvalFunction synthesis — 164 small Python problems: the AI is given a function's description and has to write the working function. This was the coding benchmark of the GPT-3.5 and GPT-4 era, before the field moved to fixing real bugs in real repositories. Higher is better. | 93.8% | 85.7% |
MMLUGeneral knowledge — A 57-subject multiple-choice exam — history, law, medicine, maths — that was the standard measure of how much a model knows from 2020 until roughly 2024, when frontier scores crowded into the high 80s and labs moved on to harder tests. The scores here were published years apart under different testing setups, so read them as a historical record rather than a like-for-like ranking. Higher is better. | 87.5% | 86.2% |
MathVistaMultimodal reasoning — mathematical reasoning about visual information | 73.1% | 68.1% |
MMMUMultimodal — Tests the AI on understanding images and text together across many college subjects. Higher is better. | 72.7% | 63.2% |
SWE-Bench VerifiedCoding — Real coding tasks pulled from open-source projects — the AI has to find and fix actual bugs. A human-checked version of the original SWE-Bench. Higher is better. | 23.6% | — |
Aider Polyglot (diff)Coding — editing code in six languages using the diff edit format | 31.6% | — |
IFEvalAgentic tasks — following verifiable instructions in generated responses | 84.1% | — |
MATHReasoning — accuracy on the original competition mathematics test set | — | 73% |
MATH-500Reasoning — accuracy on the 500-problem MATH subset | 81.4% | — |
DROPReasoning — three-shot token F1 on questions requiring reasoning over paragraphs | 81 | — |
AIME 2024Reasoning — single-answer accuracy on the 2024 invitational mathematics exam without tools | 49.6% | — |
GPQA DiamondScience — Graduate-level science questions in biology, physics, and chemistry — hard enough that subject-matter PhDs score around 65%. Higher is better. | 65% | — |
SimpleQAKnowledge — accuracy on short, fact-seeking questions in the original SimpleQA set | 16.8% | — |
MMMLUKnowledge — average accuracy on multilingual translations of MMLU | 78.5% | — |
MMLU-ProKnowledge — accuracy on the ten-option MMLU-Pro benchmark | — | 72% |
MGSMMultilingual math — solving grade-school word problems translated into multiple languages | 88.2% | — |
CharXiv ReasoningChart reasoning — Can the AI read and reason about complex charts and figures, not just text? Higher is better. | 56.8% | — |
GraphWalks BFS (<128K)Long context — breadth-first traversal accuracy for inputs shorter than 128K tokens | 61.7% | — |
GraphWalks parents (<128K)Long context — parent-node retrieval accuracy for inputs shorter than 128K tokens | 60.5% | — |
OpenAI MRCR (2 needles) · 128KLong context — retrieval of two matching turns in the original MRCR evaluation | 47.2% | — |
OpenAI MRCR (2 needles) · 1MLong context — retrieval of two matching turns in the original MRCR evaluation | 33.3% | — |
| Overview | ||
| Company | OpenAI | SpaceXSI |
| Release date | Apr 14 2025 | Aug 13 2024 |
| Access | Closed | Closed |
| Model details | View model | View model |
Other comparisons
GPT-4.1 minivsClaude Fable 5.2Grok‑2 minivsClaude Fable 5.2GPT-4.1 minivsGemini 4 HydrogenGrok‑2 minivsGemini 4 HydrogenGPT-4.1 minivsMuse EmberGrok‑2 minivsMuse EmberGPT-4.1 minivsDeepSeek-V4.1-Flash-1017Grok‑2 minivsDeepSeek-V4.1-Flash-1017GPT-4.1 minivsMistral Large 4Grok‑2 minivsMistral Large 4GPT-4.1 minivsKimi K3.1 ProGrok‑2 minivsKimi K3.1 ProFrequently asked questions
GPT-4.1 mini leads Grok‑2 mini on 4 of the 4 benchmarks they both report (HumanEval, MMLU, MathVista, MMMU). Only GPT-4.1 mini has a verified first-party price for an available API: $0.40 per million input tokens and $1.60 per million output tokens. No currently available pay-as-you-go API rate is tracked for Grok‑2 mini. Grok‑2 mini shipped 244 days before GPT-4.1 mini, so benchmark comparisons should account for the intervening progress.
Published specifications for these two models are limited — see each model page for the latest details.
On HumanEval, GPT-4.1 mini leads at 93.8% vs Grok‑2 mini at 85.7%. On MMLU, GPT-4.1 mini leads at 87.5% vs Grok‑2 mini at 86.2%. On MathVista, GPT-4.1 mini leads at 73.1% vs Grok‑2 mini at 68.1%. On MMMU, GPT-4.1 mini leads at 72.7% vs Grok‑2 mini at 63.2%.