Compare Llama 4 Maverick from Meta Llama and GLM 5.1 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.


Llama 4 Maverick and GLM 5.1 are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
Llama 4 Maverick, from Meta Llama, has a 1,048,576-token context window and is priced at $0.1875/M tokens input, $0.6525/M tokens output on OpenRouter.
GLM 5.1, from Z.ai, has a 204,800-token context window and is priced at $0.966/M tokens input, $3.036/M tokens output on OpenRouter.
| Attribute | Llama 4 Maverick | GLM 5.1 |
|---|---|---|
| Input price | $0.1875/M tokens | $0.966/M tokens |
| Output price | $0.6525/M tokens | $3.036/M tokens |
| Context window | 1,048,576 tokens | 204,800 tokens |
| Intelligence Index | 9.3 | 24.2 |
| Coding Index | 16.3 | Not available |
| Agentic Index | 0.6 | Not available |
| Latency (p50) | 0.96 s | 1.88 s |
| Throughput (p50) | 14.0 tok/s | 38.0 tok/s |
Benchmark data updated
Llama 4 Maverick is cheaper than GLM 5.1 on OpenRouter: Llama 4 Maverick costs $0.1875/M tokens input and $0.6525/M tokens output, while GLM 5.1 costs $0.966/M tokens input and $3.036/M tokens output.
Llama 4 Maverick has the longer context window at 1,048,576 tokens, compared with 204,800 tokens for GLM 5.1.
GLM 5.1 is faster on OpenRouter, generating a median 38.0 tokens per second compared with 14.0 tokens per second for Llama 4 Maverick.