Compare AI models

Specifications
ParametersThe learned values that shape how a model responds. B means billion and T means trillion. For mixture-of-experts models, the total count is larger than the number active for each token. Parameter count alone does not measure quality.
24B—
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.
128k8k
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.
—$30.00
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.
—$60.00
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.351Cloudflare$30.00Azure
Cheapest outputLowest output rate across every provider on OpenRouter, the lab included. May come from a different provider than the cheapest input.
$0.555Cloudflare$60.00Azure
$97.95Cloudflare$9,000OpenAI 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.
88.41%67%
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.
80.62%86.4%
Overview
CompanyMistralOpenAI
Release dateMar 17 2025Mar 14 2023
AccessOpen WeightClosed
Model detailsView modelView model

Frequently asked questions

Mistral Small 3.1 and GPT-4 are evenly matched across the 2 benchmarks they both report (HumanEval, MMLU). Only GPT-4 has a verified first-party API price: $30.00 per million input tokens and $60.00 per million output tokens. No pay-as-you-go API rate is tracked for Mistral Small 3.1. GPT-4 shipped 734 days before Mistral Small 3.1, so benchmark comparisons should account for the intervening progress.

Context windows are 128k (Mistral Small 3.1) vs 8k (GPT-4). Mistral Small 3.1 is open weight, while GPT-4 is closed.

On HumanEval, Mistral Small 3.1 leads at 88.41% vs GPT-4 at 67%. On MMLU, GPT-4 leads at 86.4% vs Mistral Small 3.1 at 80.62%.