Skip to main content
BenchLM
Data

GPT-4.1 mini vs GPT-5.1-Codex-Max

Updated December 2, 2026. Rank says GPT-5.1-Codex-Max is ahead. Price, access, and your workload can each overturn that. Public scores include evidence status and uncertainty.

Share or export
Share on XLinkedInAPI/MCP

Decision reading

GPT-5.1-Codex-Max has the higher public point estimate, 45.9 versus 33. Their conditional score ranges overlap. These ranges do not establish rank confidence. 1 results are shared. Category rows resting on Estimated evidence or different benchmark sets are marked directional and do not name a winner.

Model A
OpenAI logo

OpenAI

33/100

Supported · Public rank #196

Conditional range 20.3–45.8

Model B
OpenAI logo

OpenAI

45.9/100

Estimated · Public rank #108

Conditional range 27.7–64.0

API price per 1M tokens

GPT-4.1 mini: $0.40 input / $1.60 output

GPT-5.1-Codex-Max: $1.25 input / $10 output

Context window

GPT-4.1 mini: 1M

GPT-5.1-Codex-Max: 400K

Released

GPT-4.1 mini: April 14, 2025

GPT-5.1-Codex-Max: November 19, 2025

Shared results
1
GPT-4.1 mini only
7
GPT-5.1-Codex-Max only
2
Like-for-like categories
1 / 8
Supported: GPT-4.1 mini · Estimated: GPT-5.1-Codex-Max. Conditional ranges do not establish rank confidence.How the comparison works

Which one for your work

Recommendations appear only when a shared evidence basis or an explicit operating constraint supports the call. Secondary and unsupported use cases stay disclosed below the initial list.

  • Coding work

    Code generation, repair, and software-engineering tasks

    GPT-5.1-Codex-Max

    GPT-5.1-Codex-Max has the higher public coding point estimate, 47 to 33.1, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

    Confidence: limited
  • Long documents

    Prompts that approach the documented context limit

    GPT-4.1 mini

    GPT-4.1 mini has the larger documented context window.

    Confidence: documented
  • Chat turn cost

    1K fresh input + 500 output tokens

    GPT-4.1 mini

    GPT-4.1 mini has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates
Show secondary and unsupported calls
  • Cache-heavy agent loop cost

    200K cached + 20K fresh input + 10K output tokens

    GPT-4.1 mini

    GPT-4.1 mini has the lower estimated token cost for this stated workload. GPT-4.1 mini has no published cached-input rate, so cached tokens use its listed input rate.

    Confidence: rate-fallback
  • Repository review cost

    50K fresh input + 3K output tokens

    GPT-4.1 mini

    GPT-4.1 mini has the lower estimated token cost for this stated workload. Costs use the listed standard API rates.

    Confidence: listed-rates
  • Agentic work

    Tool use, computer use, and multi-step task completion

    Not enough matched evidence

    GPT-4.1 mini and GPT-5.1-Codex-Max are not ranked on the public lane for agentic, so no winner is named for agentic.

    Confidence: limited

Which one for a specific job

Choose a job from the LLM Selector's task catalog to see the category row it rests on, under the same basis rules as the table below. A directional row stays directional; choosing a job never creates a winner.

The same task catalog as the LLM Selector. Each job names the evidence surface it rests on; nothing here adds a new score.

33.1GPT-4.1 mini47.0GPT-5.1-Codex-Max

Like-for-like · BenchAlign v6.0

GPT-5.1-Codex-Max has the higher coding point estimate. Conditional score ranges do not establish rank confidence.

Coding scores combine specific tasks and setups. Match the editor, harness, and effort to your workflow.

Same basis rules as the category table below

Or describe your own job

The LLM Selector reads what you need a model for and returns a shortlist, ranked in the same order the job pages publish.

Describe the task and constraints. This selector recommends models; it cannot carry out the task or access your files and accounts.

We keep what you type here, drafts included, for 180 days, and after that only the job and requirements read from it. Nothing is tied to your IP address or account. Leave out names and other personal details. Privacy

What is actually comparable

Shared results can support a head-to-head reading. Results present for only one model describe coverage, not superiority.

Shape of the matched evidence

Only shared public evidence is shown. Sparse evidence stays a ruled list rather than being closed into a radar shape.

Too few matched category axes support a radar. The ruled list below shows only shared benchmark results; positions use each benchmark’s normalized display scale when available.

Bars run 0–100 on each benchmark’s normalized display scale

Category results, on a stated basis

Each row shows the public-lane category score for both models: the BenchAlign v6.0 lane in every category, with the same rank each model page reports. A row is like-for-like only when both scores rest on Supported evidence. Directional and not-comparable rows remain visible, but they never receive a winner.

Coding

Like-for-like
GPT-4.1 mini
33.1
Supported · #157/181
GPT-5.1-Codex-Max
47.0
Supported · #97/181
Basis
BenchAlign v6.0 lane · 2 vs 3 public rows
Reading
GPT-5.1-Codex-Max leads · intervals overlap

Agentic

Not comparable
GPT-4.1 mini
Not ranked
GPT-5.1-Codex-Max
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Reasoning

Not comparable
GPT-4.1 mini
37.3
Supported · #137/161
GPT-5.1-Codex-Max
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Multimodal

Not comparable
GPT-4.1 mini
Not ranked
GPT-5.1-Codex-Max
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Knowledge

Not comparable
GPT-4.1 mini
31.8
Estimated · #149/158
GPT-5.1-Codex-Max
Not ranked
Basis
BenchAlign v6.0 lane · 4 vs 0 public rows
Reading
Not comparable

Multilingual

Not comparable
GPT-4.1 mini
Not ranked
GPT-5.1-Codex-Max
Not ranked
Basis
BenchAlign v6.0 lane · 0 vs 0 public rows
Reading
Not comparable

Instruction following

Not comparable
GPT-4.1 mini
Not ranked
GPT-5.1-Codex-Max
46.3
Estimated · #86/143
Basis
BenchAlign v6.0 lane · 1 vs 0 public rows
Reading
Not comparable

Math

Not comparable
GPT-4.1 mini
29.4
Estimated · #124/128
GPT-5.1-Codex-Max
Not ranked
Basis
BenchAlign v6.0 lane · 1 vs 0 public rows
Reading
Not comparable

Ranks count the models scored in each category’s BenchAlign v6.0 lane, so denominators differ by category. Like-for-like rows within 0.5 points read as a practical tie.

Supported evidence per lane · bars run 0–100Methodology

What each workload costs

Three fixed token mixes turn per-token rates into comparable decisions. Each scenario states context fit and whether cached input had to fall back to the published list-input rate.

Chat turn

1K fresh input + 500 output tokens

GPT-4.1 mini
$0.0012
Fits in one request
GPT-5.1-Codex-Max
$0.00625
Fits in one request

GPT-4.1 mini has the lower modeled cost

Costs use the listed standard API rates.

Repository review

50K fresh input + 3K output tokens

GPT-4.1 mini
$0.0248
Fits in one request
GPT-5.1-Codex-Max
$0.0925
Fits in one request

GPT-4.1 mini has the lower modeled cost

Costs use the listed standard API rates.

Cache-heavy agent loop

200K cached + 20K fresh input + 10K output tokens

GPT-4.1 mini
$0.104
Fits in one request
Cached input priced at the published list-input rate
GPT-5.1-Codex-Max
$0.15
Fits in one request

GPT-4.1 mini has the lower modeled cost

GPT-4.1 mini has no published cached-input rate, so cached tokens use its listed input rate.

Your workload

Enter a month of tokens to price it at both models’ listed API rates.

GPT-4.1 mini
$7.20
per month
GPT-5.1-Codex-Max
$32.50
per month

Standard listed rates, no batch or volume discounts.

Cached input falls back to the list input rate only where a cached rate is unpublished

Price against score, among all priced models

Overall score against output price per 1M tokens, one model per family. Pricing as of December 2, 2026.

GPT-4.1 miniGPT-5.1-Codex-Max

20406080100$0.10$0.50$1$5$10$50$100Output price, $ per 1M tokens (log)Overall score
  • 27 cheaper models score at least as high as GPT-4.1 mini. The nearest is Gemini 3.1 Flash-Lite (score 42.6, $1.50 per 1M output tokens).
  • 32 models score at least as high as GPT-5.1-Codex-Max for the same price or less. The nearest is Claude Sonnet 5.5 (score 77.7, also $10.00 per 1M output tokens).

Gray dots are the other priced models. The dark step line is the efficiency frontier: for a model under it, another model costs no more and scores at least as high.

See GPT-4.1 mini on the full price vs performance chart

Specification differences

Sourced differences are shown directly. Missing facts stay explicit instead of being inferred from a model name or family.

API model ID

GPT-4.1 mini

Not sourced

GPT-5.1-Codex-Max

Not sourced

Cached-input rate

A missing cached-input rate falls back to the listed input rate only in the stated workload estimate.

GPT-4.1 mini

Not published

GPT-5.1-Codex-Max

$0.125 per 1M cached input tokens

OpenAI GPT-5.1-Codex-Max model documentation

Provider availability

GPT-4.1 mini

Not sourced

GPT-5.1-Codex-Max

Not sourced

Reasoning profile

GPT-4.1 mini

Non-Reasoning

GPT-5.1-Codex-Max

Reasoning

Weight access

GPT-4.1 mini

Proprietary

GPT-5.1-Codex-Max

Proprietary

License

GPT-4.1 mini

Proprietary

GPT-5.1-Codex-Max

Proprietary

Release date

GPT-4.1 mini

2025-04-14

GPT-5.1-Codex-Max

2025-11-19

If you already use one of these models

Deployment change
Both entries list OpenAI as the provider. Confirm endpoint, model ID, limits, and feature support before switching.
Quality signal
GPT-5.1-Codex-Max has the higher public point estimate, 45.9 versus 33. Their conditional score ranges overlap. These ranges do not establish rank confidence.
Workload cost
Repository review: $0.0248 vs $0.0925. Cache-heavy agent loop: $0.104 vs $0.15.
Context tradeoff
GPT-4.1 mini has the larger documented window (1M).
Run the same representative tasks against both endpoints before changing production traffic.

Questions

Which is better, GPT-4.1 mini or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max has the higher public point estimate, 45.9 versus 33. Their conditional score ranges overlap. These ranges do not establish rank confidence. The page therefore keeps the decision tied to the specific documented workload.

Which is better for coding, GPT-4.1 mini or GPT-5.1-Codex-Max?

GPT-5.1-Codex-Max has the higher public coding point estimate, 47 to 33.1, with Supported evidence for both models. The conditional ranges do not establish rank confidence.

Which is better for agentic tasks, GPT-4.1 mini or GPT-5.1-Codex-Max?

GPT-4.1 mini and GPT-5.1-Codex-Max are not ranked on the public lane for agentic tasks, so no winner is named for agentic tasks.

Which costs less, GPT-4.1 mini or GPT-5.1-Codex-Max?

For the stated presets, chat costs $0.0012 on GPT-4.1 mini and $0.00625 on GPT-5.1-Codex-Max; repository review costs $0.0248 and $0.0925; the cache-heavy agent loop costs $0.104 and $0.15. GPT-4.1 mini has no published cached-input rate, so cached tokens use its listed input rate.

Which has the larger context window, GPT-4.1 mini or GPT-5.1-Codex-Max?

GPT-4.1 mini has the larger documented context window: 1M, compared with 400K.

Benchmark evidence

The full public result ledger is available for audit without forcing a wide desktop table onto a phone.

Browse raw public benchmark evidence14 rows

Coding

  • SWE-bench Verified

    GPT-4.1 mini23.6%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

  • LiveCodeBench (Vals)

    GPT-4.1 mini58.2%
    Source
    GPT-5.1-Codex-Max83.6%
    Source

    GPT-5.1-Codex-Max leads this result

  • Vibe Code Bench

    GPT-4.1 mini—
    GPT-5.1-Codex-Max22.17%
    Source

    Not directly comparable

  • PostTrainBench v1

    GPT-4.1 mini—
    GPT-5.1-Codex-Max19.7%
    Source

    Not directly comparable

  • CompileBench

    Shown only
    GPT-4.1 mini46.7%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

  • OTelBench

    Shown only
    GPT-4.1 mini—
    GPT-5.1-Codex-Max11.6%
    Source

    Not directly comparable

Reasoning

  • Chess Puzzles

    Shown only
    GPT-4.1 mini1.0%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

  • Mystery Game Puzzles

    Shown only
    GPT-4.1 mini7.0%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

Knowledge

  • MMLU

    GPT-4.1 mini87.5%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

  • GPQA

    GPT-4.1 mini64.2%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

  • GPQA Diamond (Vals)

    GPT-4.1 mini67.9%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

  • MMLU-Pro (Vals)

    GPT-4.1 mini77.2%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

Instruction following

  • IFEval

    GPT-4.1 mini88.5%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

Math

  • FrontierMath v2 (Tiers 1-3)

    GPT-4.1 mini6.667%
    Source
    GPT-5.1-Codex-Max—

    Not directly comparable

10 public results · 1 shared

Watch GPT-4.1 mini vs GPT-5.1-Codex-Max

One weekly email when material rank, price, or benchmark evidence changes make this matchup worth revisiting.

Read a sample issue

Join 7,500+ subscribers.

Last updated December 2, 2026