The AI arena is free today

Open Superagent

GLM-4.7 vs GPT-5.1 Codex

GLM-4.7 and GPT-5.1 Codex are closely matched at 34.4 and 29.6 on the LLM Stats Score. GLM-4.7 is 4.7x cheaper per token.

Zhipu AI · OpenAI · Updated for 2026

Which is better?

GLM-4.7 and GPT-5.1 Codex are closely matched on the overall LLM Stats Score at 34.4 and 29.6.

The models split the 2 individual benchmarks reported for both models evenly.

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

GPT-5.1 Codex also accepts a larger context window (400,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 GLM-4.7

  • cost matters — it's about 4.7x cheaper per token
  • you want the most recent training data — it shipped Dec 2025
  • you need open weights you can self-host or fine-tune

Choose GPT-5.1 Codex

  • you process long inputs — it offers a 400,000 token context window

At a glance

The differences that matter most.

Core performance indexes
34.4
#90
29.6
#126
34.3
#89
29.8
#118
17.7
#114
21.0
#91
9.6
#120
10.5
#114
Cost, coverage & limits
Benchmark wins
1 of 2
1 of 2
Input price
$0.40 / M
$1.25 / M
Output price
$1.75 / M
$10.00 / M
Context window
202,752
400,000

Individual benchmarks

13 reported for GLM-4.7 · 3 for GPT-5.1 Codex

2 shared

GLM-4.7 outperforms in 1 benchmarks (SWE-Bench Verified), while GPT-5.1 Codex is better at 1 benchmark (Terminal-Bench 2.0).

Both models are evenly matched across the benchmarks.

Wed Sep 09 2026 • llm-stats.com

Human preference

Blind head-to-head votes and playground preference scores

Pricing Analysis

Price comparison per million tokens

GLM-4.7 costs less

For input processing, GLM-4.7 ($0.40/1M tokens) is 3.1x cheaper than GPT-5.1 Codex ($1.25/1M tokens).

For output processing, GLM-4.7 ($1.75/1M tokens) is 5.7x cheaper than GPT-5.1 Codex ($10.00/1M tokens).

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

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

Lowest available price from all providers
Wed Sep 09 2026 • llm-stats.com
Zhipu AI
GLM-4.7
Input tokens$0.40
Output tokens$1.75
Best providerDeepinfra
OpenAI
GPT-5.1 Codex
Input tokens$1.25
Output tokens$10.00
Best providerOpenAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

GPT-5.1 Codex accepts 400,000 input tokens compared to GLM-4.7's 202,752 tokens. GLM-4.7 can generate longer responses up to 202,752 tokens, while GPT-5.1 Codex is limited to 128,000 tokens.

Zhipu AI
GLM-4.7
Input202,752 tokens
Output202,752 tokens
OpenAI
GPT-5.1 Codex
Input400,000 tokens
Output128,000 tokens
Wed Sep 09 2026 • llm-stats.com

Input capabilities

Documented input modalities across available providers

Both GLM-4.7 and GPT-5.1 Codex support multimodal inputs.

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

GLM-4.7

Text
Images
Audio
Video

GPT-5.1 Codex

Text
Images
Audio
Video

License

Usage and distribution terms

GLM-4.7 is licensed under MIT, while GPT-5.1 Codex uses a proprietary license.

License differences may affect how you can use these models in commercial or open-source projects.

GLM-4.7

MIT

Open weights

GPT-5.1 Codex

Proprietary

Closed source

Release Timeline

When each model was launched

GLM-4.7 was released on 2025-12-22, while GPT-5.1 Codex was released on 2025-11-19.

GLM-4.7 is 1 month newer than GPT-5.1 Codex.

GLM-4.7

Dec 22, 2025

8 months ago

1mo newer
GPT-5.1 Codex

Nov 19, 2025

9 months ago

Knowledge Cutoff

When training data ends

GPT-5.1 Codex has a documented knowledge cutoff of 2024-09-30, while GLM-4.7's cutoff date is not specified.

We can confirm GPT-5.1 Codex's training data extends to 2024-09-30, but cannot make a direct comparison without GLM-4.7's cutoff date.

GLM-4.7

GPT-5.1 Codex

Sep 2024

Provider Availability

GLM-4.7 is available from DeepInfra, Fireworks, Novita. GPT-5.1 Codex is available from OpenAI.

GLM-4.7

deepinfra logo
Deepinfra
Input Price:Input: $0.40/1MOutput Price:Output: $1.75/1M
fireworks logo
Fireworks
Input Price:Input: $0.60/1MOutput Price:Output: $2.20/1M
novita logo
Novita
Input Price:Input: $0.60/1MOutput Price:Output: $2.20/1M

GPT-5.1 Codex

openai logo
OpenAI
Input Price:Input: $1.25/1MOutput Price:Output: $10.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 GLM-4.7 and GPT-5.1 Codex side-by-side, then vote on the output you prefer.

GLM-4.7
✓ Preferred
GPT-5.1 Codex
Open in Playground

FAQ

Common questions about GLM-4.7 vs GPT-5.1 Codex.

Which is better, GLM-4.7 or GPT-5.1 Codex?

GLM-4.7 and GPT-5.1 Codex are closely matched on the LLM Stats Score at 34.4 and 29.6. GLM-4.7 is made by Zhipu AI and GPT-5.1 Codex is made by OpenAI. The best choice depends on your use case — compare their capability indexes, individual benchmarks, pricing, and limits above.

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

GLM-4.7 scores AIME 2025: 95.7%, Tau-bench: 87.4%, GPQA: 85.7%, LiveCodeBench v6: 84.9%, MMLU-Pro: 84.3%. GPT-5.1 Codex scores SWE-Bench Verified: 73.7%, SWE-Lancer: 66.3%, Terminal-Bench 2.0: 52.8%.

Is GLM-4.7 cheaper than GPT-5.1 Codex?

GLM-4.7 is 3.1x cheaper for input tokens. GLM-4.7 costs $0.40/M input and $1.75/M output via deepinfra. GPT-5.1 Codex costs $1.25/M input and $10.00/M output via openai.

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

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

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

Key differences include LLM Stats Score (34.4 vs 29.6), context window (203K vs 400K), input pricing ($0.40 vs $1.25/M), licensing (MIT vs Proprietary). See the full comparison above for benchmark-by-benchmark results.

Who makes GLM-4.7 and GPT-5.1 Codex?

GLM-4.7 is developed by Zhipu AI and GPT-5.1 Codex is developed by OpenAI.