Model Comparison

GLM-5 vs Grok Code Fast 1

GLM-5 significantly outperforms across most benchmarks. Grok Code Fast 1 is 3.0x cheaper per token.

Performance Benchmarks

Comparative analysis across standard metrics

1 benchmarks

GLM-5 outperforms in 1 benchmarks (SWE-Bench Verified), while Grok Code Fast 1 is better at 0 benchmarks.

GLM-5 significantly outperforms across most benchmarks.

Mon Jun 01 2026 • llm-stats.com

Arena Performance

Human preference votes

Pricing Analysis

Price comparison per million tokens

Grok Code Fast 1 costs less

For input processing, GLM-5 ($1.00/1M tokens) is 5.0x more expensive than Grok Code Fast 1 ($0.20/1M tokens).

For output processing, GLM-5 ($3.20/1M tokens) is 2.1x more expensive than Grok Code Fast 1 ($1.50/1M tokens).

In conclusion, GLM-5 is more expensive than Grok Code Fast 1.*

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

Lowest available price from all providers
Mon Jun 01 2026 • llm-stats.com
Zhipu AI
GLM-5
Input tokens$1.00
Output tokens$3.20
Best providerFriendliAI
xAI
Grok Code Fast 1
Input tokens$0.20
Output tokens$1.50
Best providerxAI
Notice missing or incorrect data?Start an Issue

Context Window

Maximum input and output token capacity

Grok Code Fast 1 accepts 256,000 input tokens compared to GLM-5's 200,000 tokens. GLM-5 can generate longer responses up to 128,000 tokens, while Grok Code Fast 1 is limited to 10,000 tokens.

Zhipu AI
GLM-5
Input200,000 tokens
Output128,000 tokens
xAI
Grok Code Fast 1
Input256,000 tokens
Output10,000 tokens
Mon Jun 01 2026 • llm-stats.com

License

Usage and distribution terms

GLM-5 is licensed under MIT, while Grok Code Fast 1 uses a proprietary license.

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

GLM-5

MIT

Open weights

Grok Code Fast 1

Proprietary

Closed source

Release Timeline

When each model was launched

GLM-5 was released on 2026-02-11, while Grok Code Fast 1 was released on 2025-08-28.

GLM-5 is 6 months newer than Grok Code Fast 1.

GLM-5

Feb 11, 2026

3 months ago

5mo newer
Grok Code Fast 1

Aug 28, 2025

9 months ago

Knowledge Cutoff

When training data ends

Neither model specifies a knowledge cutoff date.

Unable to compare the recency of their training data.

No cutoff dates available

Provider Availability

GLM-5 is available from FriendliAI, ZAI. Grok Code Fast 1 is available from xAI.

GLM-5

friendli logo
FriendliAI
Input Price:Input: $1.00/1MOutput Price:Output: $3.20/1M
z logo
Unknown Organization
Input Price:Input: $1.00/1MOutput Price:Output: $3.20/1M

Grok Code Fast 1

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

Outputs Comparison

Notice missing or incorrect data?Start an Issue discussion

Key Takeaways

Has open weights
Higher SWE-Bench Verified score (77.8% vs 70.8%)
Larger context window (256,000 tokens)
Less expensive input tokens
Less expensive output tokens

Detailed Comparison

AI Model Comparison Table
Feature
Zhipu AI
GLM-5
xAI
Grok Code Fast 1

FAQ

Common questions about GLM-5 vs Grok Code Fast 1.

Which is better, GLM-5 or Grok Code Fast 1?

GLM-5 significantly outperforms across most benchmarks. GLM-5 is made by Zhipu AI and Grok Code Fast 1 is made by xAI. The best choice depends on your use case — compare their benchmark scores, pricing, and capabilities above.

How does GLM-5 compare to Grok Code Fast 1 in benchmarks?

GLM-5 scores t2-bench: 89.7%, SWE-Bench Verified: 77.8%, BrowseComp: 75.9%, MCP Atlas: 67.8%, Terminal-Bench 2.0: 56.2%. Grok Code Fast 1 scores SWE-Bench Verified: 70.8%.

Is GLM-5 cheaper than Grok Code Fast 1?

Grok Code Fast 1 is 5.0x cheaper for input tokens. GLM-5 costs $1.00/M input and $3.20/M output via friendli. Grok Code Fast 1 costs $0.20/M input and $1.50/M output via xai.

What are the context window sizes for GLM-5 and Grok Code Fast 1?

GLM-5 supports 200K tokens and Grok Code Fast 1 supports 256K tokens. A larger context window lets you process longer documents, conversations, or codebases in a single request.

What are the main differences between GLM-5 and Grok Code Fast 1?

Key differences include context window (200K vs 256K), input pricing ($1.00 vs $0.20/M), licensing (MIT vs Proprietary). See the full comparison above for benchmark-by-benchmark results.

Who makes GLM-5 and Grok Code Fast 1?

GLM-5 is developed by Zhipu AI and Grok Code Fast 1 is developed by xAI.