Skip to main content

Head-to-head comparison

Grok 4.7 vs. GLM-5.1

Compare published benchmark results from matching versions and cohorts, API pricing, and technical specifications. Any documented test setup differences remain visible.

shared result series
11
distinct benchmarks
11
latest retrieval
2026-09-29

Change model selection

Specifications

General specifications

Release date, availability, context window, architecture, and published parameter counts at a glance. Undisclosed details remain marked as unavailable.

Specifications for Grok 4.7 and GLM-5.1
AttributeGrok 4.7GLM-5.1
ProviderxAIZ.ai
ReleasedSep 21, 2026Apr 7, 2026
AvailabilityActiveOpen Source
Model typeProprietaryOpen Weights
ParametersNot published744B, 40B active
ArchitectureNot publishedMixture of Experts
Context window500,000 tokens200,000 tokens
Knowledge cutoffMay 2026Not published
Technical sourcesModel, ContextModel, Context

Pricing

API pricing compared

The table compares official standard API rates per 1M tokens, including published cache pricing. Batch, fast, priority, regional surcharges, tool calls, and cloud platform pricing are excluded.

API pricing for Grok 4.7 and GLM-5.1
Price typeGrok 4.7GLM-5.1
API input$2 ≤200K / $4 >200K$1.4
API output$6 ≤200K / $12 >200K$4.4
Cache read$0.5 ≤200K / $1 >200K$0.26
Cache write (5 min.)Not listedNot listed
Cache write (1 hr.)Not listedNot listed
Price verified09/23/2026 Source09/22/2026 Source
Grok 4.7GLM-5.1
API inputUSD per 1M tokens, base tier
Grok 4.7$2
GLM-5.1Lower price$1.4
API outputUSD per 1M tokens, base tier
Grok 4.7$6
GLM-5.1Lower price$4.4
Cache readUSD per 1M tokens, base tier
Grok 4.7$0.5
GLM-5.1Lower price$0.26

Key to the marks:better valuebetter, but not conclusivetie

Pricing by provider

Direct developer pricing and provider endpoint tariffs routed through OpenRouter are listed separately. Prices are in USD per 1M tokens. Context-dependent direct tiers plus regional, Flex, Priority, and other OpenRouter tariffs remain individually identifiable.

Provider pricing for Grok 4.7 and GLM-5.1
ModelProviderPurchase route and tariffInput per 1M tokensOutput per 1M tokensSource
Grok 4.7xAIDirect from developerUp to 200,000 context tokensLowest listed price: $2Lowest listed price: $6Source09/23/2026
xAIDirect from developerAbove 200,000 context tokens$4$12Source09/23/2026
xAIVia OpenRouterxaiLowest listed price: $2Lowest listed price: $6Source10/12/2026
xAIVia OpenRouterxai/priority$4$12Source10/12/2026
xAIVia OpenRouterxai/zdrLowest listed price: $2Lowest listed price: $6Source10/12/2026
xAIVia OpenRouterxai/zdr/priority$4$12Source10/12/2026
xAIVia OpenRouterxai/zdr/us$2.2$6.6Source10/12/2026
GLM-5.1Z.aiDirect from developerStandard API$1.4$4.4Source09/22/2026
AlibabaVia OpenRouteralibaba/fp8$1.33$4.18Source10/12/2026
AtlasCloudVia OpenRouteratlas-cloud/fp8$1.26$3.96Source10/12/2026
BaiduVia OpenRouterbaidu/fp8Lowest listed price: $0.9646Lowest listed price: $3.0316Source10/12/2026
ChutesVia OpenRouterchutes/fp8$0.98$3.08Source10/12/2026
FriendliVia OpenRouterfriendli$1.4$4.4Source10/12/2026
GMICloudVia OpenRoutergmicloud/fp8$1.4$4.4Source10/12/2026
NebiusVia OpenRouternebius/fp8$1.4$4.4Source10/12/2026
NovitaVia OpenRouternovita/fp8$1.38$4.4Source10/12/2026
PhalaVia OpenRouterphala$1.21$4.2Source10/12/2026
SiliconFlowVia OpenRoutersiliconflow/fp8$1.19$3.74Source10/12/2026
StreamLakeVia OpenRouterstreamlake/fp8$0.966$3.036Source10/12/2026
VeniceVia OpenRoutervenice/fp8$1.4014$4.4044Source10/12/2026
Z.AIVia OpenRouterz-ai/fp8$1.4$4.4Source10/12/2026

Performance

Shared benchmarks

Only published results with the same benchmark version, task, metric, and comparison cohort are paired. Different reasoning levels, agents, harnesses, or output limits appear directly in the table.

Capability profile from matched benchmarks

Each axis averages directly matched benchmark families. A value of 100 means the stronger value within this pair, not a universal quality score.

255075100CodingFinanceLegalAgentic tasksProductivityHealth
Grok 4.7
GLM-5.1
Coding: 100 / 31.3 (3 benchmark families)
Finance: 100 / 85.7 (1 benchmark family)
Legal: 100 / 53.1 (3 benchmark families)
Agentic tasks: 100 / 77.6 (1 benchmark family)
Productivity: 100 / 94.2 (1 benchmark family)
Health: 100 / 82.4 (2 benchmark families)

11 matched rows from 11 benchmark families were considered. The radar shows 6 of 6 comparable categories.

Grok 4.7GLM-5.1
Code MigrationOverall. Higher is better. No documented setup difference
Grok 4.7Winner44.816 %
GLM-5.125.768 %
Finance Agent (v2)Overall. Higher is better. No documented setup difference
Grok 4.7Winner52.251 %
GLM-5.144.792 %
Harvey's Legal Agent BenchmarkOverall · Task fully resolved. Higher is better. No documented setup difference
Grok 4.7Winner12.5 %
GLM-5.10 %
Legal Research BenchOverall · All-pass. Higher is better. No documented setup difference
Grok 4.7Winner47.115 %
GLM-5.127.885 %
LegalBenchOverall. Higher is better. No documented setup difference
Grok 4.784.389 %
GLM-5.1Winner84.394 %
MedCodeOverall. Higher is better. No documented setup difference
Grok 4.7Winner49.553 %
GLM-5.141.604 %
MedScribeOverall. Higher is better. No documented setup difference
Grok 4.7Winner89.377 %
GLM-5.172.27 %
ProgramBenchOverall. Higher is better. No documented setup difference
Grok 4.7Winner0.5 %
GLM-5.10 %
Public Benefits Bench v1.1Overall. Higher is better. No documented setup difference
Grok 4.7Winner65.629 %
GLM-5.161.84 %
Terminal-Bench 2.1Overall. Higher is better. No documented setup difference
Grok 4.7Winner73.408 %
GLM-5.156.929 %
Vibe Code Bench v1.1Overall. Higher is better. No documented setup difference
Grok 4.7Winner86.175 %
GLM-5.131.456 %

Key to the marks:better valuebetter, but not conclusivetie

Benchmark scores for Grok 4.7 and GLM-5.1
Benchmark and taskGrok 4.7GLM-5.1Source
Code MigrationOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner44.816 %
25.768 %
Vals AI
Source details
Data as of: 09/27/2026
Finance Agent (v2)Overall
Test details
No documented difference in the test setupVersion: 2Metric: accuracyScoring: Higher is better
Winner52.251 %
44.792 %
Vals AI
Source details
Data as of: 09/27/2026
Harvey's Legal Agent BenchmarkOverall · Task fully resolved
Test details
No documented difference in the test setupVersion: 1Metric: task resolution rateScoring: Higher is better
Winner12.5 %
0 %
Vals AI
Source details
Data as of: 09/27/2026
Legal Research BenchOverall · All-pass
Test details
No documented difference in the test setupVersion: 1Metric: all-pass rateScoring: Higher is better
Winner47.115 %
27.885 %
Vals AI
Source details
Data as of: 09/27/2026
LegalBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
84.389 %
Winner84.394 %
Vals AI
Source details
Data as of: 09/27/2026
MedCodeOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner49.553 %
41.604 %
Vals AI
Source details
Data as of: 09/26/2026
MedScribeOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner89.377 %
72.27 %
Vals AI
Source details
Data as of: 09/26/2026
ProgramBenchOverall
Test details
No documented difference in the test setupVersion: 1Metric: accuracyScoring: Higher is better
Winner0.5 %
0 %
Vals AI
Source details
Data as of: 09/27/2026
Public Benefits Bench v1.1Overall
Test details
No documented difference in the test setupVersion: 1.1Metric: accuracyScoring: Higher is better
Winner65.629 %
61.84 %
Vals AI
Source details
Data as of: 09/27/2026
Terminal-Bench 2.1Overall
Test details
No documented difference in the test setupVersion: 2.1Metric: accuracyScoring: Higher is better
Winner73.408 %
56.929 %
Vals AI
Source details
Data as of: 09/27/2026
Vibe Code Bench v1.1Overall
Test details
No documented difference in the test setupVersion: 1.1Metric: accuracyScoring: Higher is betterSettings: Harness: OpenHands
Winner86.175 %
31.456 %
Vals AI
Source details
Data as of: 09/27/2026

Key to the marks:better valuebetter, but not conclusivetie

Our model tests

Our tests

Compare how the models respond to the same prompt. Each test shows the latest attempt, with no subsequent fixes to the generated code. Earlier runs remain available in the test details. These results do not contribute to an overall score.

Pelican on a bicycle

A community classic for free-form SVG drawing.

Grok 4.7

Grok 4.7: Pelican on a bicycle
A community classic for free-form SVG drawing.

Reasoning (requested): high

Current attempt
Run date
1 Oct 2026
API provider
openrouter
Requested API model
x-ai/grok-4.7
API model reported in response
x-ai/grok-4.7
Reasoning setting
high
Pinned endpoint
xAI | x-ai/grok-4.7-20260916
Temperature
Provider default
Token limit including reasoning
8,192 tokens
Test protocol
community-visual-tests-v1
Technical checks
Passed, not a quality rating
Response time
13.4 s

Visually reviewed. This individual test does not establish overall model quality.

Earlier attempts (1)
  • 1 Oct 2026API request failedReasoning setting: high

GLM-5.1

Output withheld for safety

Reasoning (requested): high

Current attempt
Run date
2 Oct 2026
API provider
openrouter
Requested API model
z-ai/glm-5.1
API model reported in response
z-ai/glm-5.1
Reasoning setting
high
Pinned endpoint
Z.AI | z-ai/glm-5.1-20260406
Temperature
Provider default
Token limit including reasoning
8,192 tokens
Test protocol
community-visual-tests-v1
Technical checks
Failed
Response time
178.8 s

Not yet visually reviewed. A successful recording does not confirm correct physics or full compliance with the prompt.

Earlier attempts (2)
  • 1 Oct 2026API request failedReasoning setting: high
  • 7 Sept 2026API request failedReasoning setting: high
Prompt and test conditions

Generate an SVG of a pelican riding a bicycle

Token limit including reasoning: 8,192 tokens

Task origin (Simon Willison)

How to read this comparison

Winning one benchmark is not an overall verdict

Your workload, budget, and required context length matter most. A coding benchmark says little about visual understanding or agent performance.

The standard price table uses direct developer rates. The provider comparison labels OpenRouter endpoints, regions, and special tariffs separately.

Every result links to its measurement source and retrieval date. Labels distinguish vendor reports, official benchmark leaderboards, and independent evaluations. Disputed or archived results are excluded.

More matchups

Compare Grok 4.7 and GLM-5.1 with other leading models using the same data and benchmark logic.

View the complete LLM comparison