Compare GLM 5.2 from Z.ai and Gemini 3.5 Flash from Google on key metrics including benchmarks, price, context length, and other model features. Access both models and hundreds of others through the OpenRouter API.
GLM 5.2 and Gemini 3.5 Flash are available through the OpenRouter API, so switching between them takes a model slug change rather than a new integration.
GLM 5.2, from Z.ai, has a 1,048,576-token context window and is priced at $0.057/M tokens input, $4.30/M tokens output on OpenRouter.
Gemini 3.5 Flash, from Google, has a 1,048,576-token context window and is priced at $1.50/M tokens input, $9/M tokens output on OpenRouter.
| GLM 5.2 | Gemini 3.5 Flash | |
|---|---|---|
| Input price | $0.057/M tokens | $1.50/M tokens |
| Output price | $4.30/M tokens | $9/M tokens |
| Context window | 1,048,576 tokens | 1,048,576 tokens |
| Intelligence Index | 33.7 | 33.6 |
| Coding Index | 68.8 | Not available |
| Agentic Index | 38.4 | Not available |
| Latency (p50) | 1.07 s | 12.86 s |
| Throughput (p50) | 88.0 tok/s | 7.0 tok/s |
GLM 5.2 is cheaper than Gemini 3.5 Flash on OpenRouter: GLM 5.2 costs $0.057/M tokens input and $4.30/M tokens output, while Gemini 3.5 Flash costs $1.50/M tokens input and $9/M tokens output.
GLM 5.2 and Gemini 3.5 Flash have the same context window of 1,048,576 tokens.
GLM 5.2 is faster on OpenRouter, generating a median 88.0 tokens per second compared with 7.0 tokens per second for Gemini 3.5 Flash.