Compare Claude Opus 4.8 from Anthropic and GLM 5.2 from Z.ai on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.
Claude Opus 4.8 and GLM 5.2 are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
Claude Opus 4.8, from Anthropic, has a 1,000,000-token context window and is priced at $5/M tokens input, $25/M tokens output on OpenRouter.
GLM 5.2, from Z.ai, has a 1,048,576-token context window and is priced at $0.0341/M tokens input, $7/M tokens output on OpenRouter.
| Attribute | Claude Opus 4.8 | GLM 5.2 |
|---|---|---|
| Input price | $5/M tokens | $0.0341/M tokens |
| Output price | $25/M tokens | $7/M tokens |
| Context window | 1,000,000 tokens | 1,048,576 tokens |
| Intelligence Index | 41.8 | 33.7 |
| Coding Index | 74.3 | 68.8 |
| Agentic Index | 41.9 | 38.4 |
| Latency (p50) | 0.84 s | 0.41 s |
| Throughput (p50) | 64.0 tok/s | 166.0 tok/s |
Benchmark data updated
GLM 5.2 is cheaper than Claude Opus 4.8 on OpenRouter: GLM 5.2 costs $0.0341/M tokens input and $7/M tokens output, while Claude Opus 4.8 costs $5/M tokens input and $25/M tokens output.
GLM 5.2 has the longer context window at 1,048,576 tokens, compared with 1,000,000 tokens for Claude Opus 4.8.
GLM 5.2 is faster on OpenRouter, generating a median 166.0 tokens per second compared with 64.0 tokens per second for Claude Opus 4.8.
Claude Opus 4.8 scores higher on coding, with an Artificial Analysis Coding Index of 74.3 compared with 68.8 for GLM 5.2.