The AI arena is free today

Open Superagent

GPT-5.1 Codex Mini vs Grok 4.7

Grok 4.7 leads the LLM Stats Score 48.5 to -2.8. GPT-5.1 Codex Mini is 4.4x cheaper per token.

OpenAI · xAI · Updated for 2026

Which is better?

Grok 4.7 leads the overall LLM Stats Score 48.5 to -2.8, ranking #23 overall.

On price, GPT-5.1 Codex Mini is roughly 4.4x cheaper per token on a blended 3:1 input/output basis, which adds up quickly at production volume.

Grok 4.7 also accepts a larger context window (500,000 input tokens), making it the stronger choice for long documents and large codebases.

Based on current LLM Stats indexes, shared benchmarks, pricing, and model metadata for 2026.

Choose GPT-5.1 Codex Mini

  • cost matters — it's about 4.4x cheaper per token

Choose Grok 4.7

  • overall performance matters — it scores 48.5 and ranks #23 on LLM Stats
  • your work emphasizes reasoning — it leads those capability indexes
  • you process long inputs — it offers a 500,000 token context window
  • you want the most recent training data — it shipped Sep 2026

At a glance

The differences that matter most.

Core performance indexes
-2.8
#344
48.5
#23
-2.7
#336
37.4
#69
Cost, coverage & limits
Benchmark wins
Input price
$0.25 / M
$2.00 / M
Output price
$2.00 / M
$6.00 / M
Context window
400,000
500,000

Individual benchmarks

1 reported for GPT-5.1 Codex Mini · 23 for Grok 4.7

No common benchmarks found

GPT-5.1 Codex Mini and Grok 4.7don't have any common benchmark datasets to compare. They may have been evaluated on different testing suites.

Human preference

Blind head-to-head votes and playground preference scores

Pricing Analysis

Price comparison per million tokens

GPT-5.1 Codex Mini costs less

For input processing, GPT-5.1 Codex Mini ($0.25/1M tokens) is 8.0x cheaper than Grok 4.7 ($2.00/1M tokens).

For output processing, GPT-5.1 Codex Mini ($2.00/1M tokens) is 3.0x cheaper than Grok 4.7 ($6.00/1M tokens).

In conclusion, Grok 4.7 is more expensive than GPT-5.1 Codex Mini.*

* Using a 3:1 ratio of input to output tokens

Lowest available price from all providers
Tue Sep 22 2026 • llm-stats.com
OpenAI
GPT-5.1 Codex Mini
Input tokens$0.25
Output tokens$2.00
Best providerOpenAI
xAI
Grok 4.7
Input tokens$2.00
Output tokens$6.00
Best providerxAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Grok 4.7 accepts 500,000 input tokens compared to GPT-5.1 Codex Mini's 400,000 tokens. Only GPT-5.1 Codex Mini specifies output context (128,000 tokens).

OpenAI
GPT-5.1 Codex Mini
Input400,000 tokens
Output128,000 tokens
xAI
Grok 4.7
Input500,000 tokens
Output- tokens
Tue Sep 22 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

Both GPT-5.1 Codex Mini and Grok 4.7 support multimodal inputs.

They are both capable of processing various types of data, offering versatility in application.

GPT-5.1 Codex Mini

Text
Images
Audio
Video

Grok 4.7

Text
Images
Audio
Video

License

Usage and distribution terms

Both models are licensed under proprietary licenses.

Both models have usage restrictions defined by their respective organizations.

GPT-5.1 Codex Mini

Proprietary

Closed source

Grok 4.7

Proprietary

Closed source

Release Timeline

When each model was launched

GPT-5.1 Codex Mini was released on 2025-11-12, while Grok 4.7 was released on 2026-09-21.

Grok 4.7 is 10 months newer than GPT-5.1 Codex Mini.

GPT-5.1 Codex Mini

Nov 12, 2025

10 months ago

Grok 4.7

Sep 21, 2026

1 days ago

10mo newer

Knowledge Cutoff

When training data ends

Grok 4.7 has a documented knowledge cutoff of 2026-06-01, while GPT-5.1 Codex Mini's cutoff date is not specified.

We can confirm Grok 4.7's training data extends to 2026-06-01, but cannot make a direct comparison without GPT-5.1 Codex Mini's cutoff date.

GPT-5.1 Codex Mini

Grok 4.7

Jun 2026

Provider Availability

GPT-5.1 Codex Mini is available from OpenAI. Grok 4.7 is available from xAI.

GPT-5.1 Codex Mini

openai logo
OpenAI
Input Price:Input: $0.25/1MOutput Price:Output: $2.00/1M

Grok 4.7

xai logo
xAI
Input Price:Input: $2.00/1MOutput Price:Output: $6.00/1M
* Prices shown are per million tokens

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Judge for yourself.

Run your own prompts against GPT-5.1 Codex Mini and Grok 4.7 side-by-side, then vote on the output you prefer.

GPT-5.1 Codex Mini
✓ Preferred
Grok 4.7
Open in Playground

FAQ

Common questions about GPT-5.1 Codex Mini vs Grok 4.7.

Which is better, GPT-5.1 Codex Mini or Grok 4.7?

Grok 4.7 leads the LLM Stats Score 48.5 to -2.8. GPT-5.1 Codex Mini is made by OpenAI and Grok 4.7 is made by xAI. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

How does GPT-5.1 Codex Mini compare to Grok 4.7 in benchmarks?

GPT-5.1 Codex Mini scores AIME 2025: 42.1%. Grok 4.7 scores BixBench MCQ: 88.4%, WMDP-Bio: 88.1%, WMDP-Cyber: 88.1%, WMDP-Chem: 84.9%, CyberGym: 80.3%.

Is GPT-5.1 Codex Mini cheaper than Grok 4.7?

GPT-5.1 Codex Mini is 8.0x cheaper for input tokens. GPT-5.1 Codex Mini costs $0.25/M input and $2.00/M output via openai. Grok 4.7 costs $2.00/M input and $6.00/M output via xai.

What are the context window sizes for GPT-5.1 Codex Mini and Grok 4.7?

GPT-5.1 Codex Mini supports 400K tokens and Grok 4.7 supports 500K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between GPT-5.1 Codex Mini and Grok 4.7?

Key differences include LLM Stats Score (-2.8 vs 48.5), context window (400K vs 500K), input pricing ($0.25 vs $2.00/M). See the full comparison above for benchmark-by-benchmark results.

Who makes GPT-5.1 Codex Mini and Grok 4.7?

GPT-5.1 Codex Mini is developed by OpenAI and Grok 4.7 is developed by xAI.