Skip to content
llmmodels

Anthropic: Claude Sonnet 4 vs GLM-4.7

Which is better, Anthropic: Claude Sonnet 4 or GLM-4.7?

GLM-4.7 wins 1 of 1 benchmarks both models report and has a higher Epoch Capabilities Index (143.3 vs 141.8). GLM-4.7 is about 6× cheaper on a blended (3:1 input:output) token price. GLM-4.7 has open weights, so you can self-host and fine-tune it; Anthropic: Claude Sonnet 4 is API-only.

SpecAnthropic: Claude Sonnet 4GLM-4.7
ProviderAnthropicZhipu AI (Z.ai)
ReleasedMay 22, 2025Dec 22, 2025 (better)
TypeReasoning LLMReasoning LLM
Parameters—358B
Context window200K200K (better)
Max output64K128K (better)
Input price / 1M$2.60$0.448 (better)
Output price / 1M$13$2.09 (better)
Input modalitiestext, image (better)text
Open weightsNoYes
LicenseProprietarymit
Reasoning modeYesYes
Tool callingYesYes
API providers432 (better)
Epoch Capabilities Index141.8143.3 (better)
GPQA Diamond—83.3%
Terminal-Bench—33.4%
WebDev Arena—1435
OTIS Mock AIME—83.3%
SimpleQA Verified—32.2%

Cost example

For a workload of 10M input + 2M output tokens per month: Anthropic: Claude Sonnet 4 costs $52.00 and GLM-4.7 costs $8.66 at list price (poe / zhipuai pricing).

About Anthropic: Claude Sonnet 4

Anthropic: Claude Sonnet 4 is a proprietary reasoning llm from Anthropic, released May 22, 2025. It has a 200K-token context window and accepts text, image input. API pricing starts at $2.60 per million input tokens and $13 per million output tokens. It is available from 4 API providers. It scores 141.8 on the Epoch Capabilities Index. Full Anthropic: Claude Sonnet 4 specs →

About GLM-4.7

GLM-4.7 is an open-weight reasoning llm from Zhipu AI (Z.ai), released Dec 22, 2025. It has 358B parameters and a 200K-token context window. API pricing starts at $0.448 per million input tokens and $2.09 per million output tokens. It is available from 32 API providers. It scores 143.3 on the Epoch Capabilities Index. Full GLM-4.7 specs →

Compare other models

More from Anthropic and Zhipu AI (Z.ai) · Categories: visual-based llms (vision & multimodal), reasoning & thinking llms, agentic & tool-calling llms, uncensored & abliterated llms

FAQ

Which is better, Anthropic: Claude Sonnet 4 or GLM-4.7?

GLM-4.7 wins 1 of 1 benchmarks both models report and has a higher Epoch Capabilities Index (143.3 vs 141.8). GLM-4.7 is about 6× cheaper on a blended (3:1 input:output) token price. GLM-4.7 has open weights, so you can self-host and fine-tune it; Anthropic: Claude Sonnet 4 is API-only.

Is Anthropic: Claude Sonnet 4 cheaper than GLM-4.7?

Anthropic: Claude Sonnet 4 costs $2.60 input / $13 output per 1M tokens; GLM-4.7 costs $0.448 / $2.09. GLM-4.7 is cheaper overall.

Which has a bigger context window?

Anthropic: Claude Sonnet 4: 200,000 tokens. GLM-4.7: 204,800 tokens.

Are Anthropic: Claude Sonnet 4 and GLM-4.7 open source?

Anthropic: Claude Sonnet 4 is proprietary; GLM-4.7 is open-weight.