# Hy4 vs GLM-5.2 - AI Model Comparison

- Page: https://opencode.ai/data/compare/tencent/hy4/zhipuai/glm-5-2
- Updated: 2026-11-05T09:10:24.000Z

|  | Hy4 | GLM-5.2 |
| --- | --- | --- |
| Lab | Tencent | Zhipu |
| Context window | 1M | 1M |
| Max output | 66K | 131K |
| Input modalities | text, image | text |
| Reasoning | Yes | Yes |
| Tool calling | Yes | Yes |
| Open weights | No | Yes |
| Release date | 2026-11-04 | 2026-06-13 |
| Input price per 1M tokens | $0.83 | $1.20 |
| Output price per 1M tokens | $2.50 | $4.18 |
| Cached input price per 1M tokens | $0.04 | $0.30 |
| OpenCode tokens: past 2 months | 15B | 575B |
| Share of all tokens | 0% | 0.0% |
| Rank by tokens last week | #34 | #30 |
| Unique users | 2.1K | 127K |
| Weekly retention | - | 51.4% |

Model pages: [Hy4](https://opencode.ai/data/tencent/hy4.md), [GLM-5.2](https://opencode.ai/data/zhipuai/glm-5-2.md)

## Methodology

- Updates: Aggregated every hour. Days and weeks use UTC.
- Tokens: Input, output, reasoning, and cached tokens for each request.
- Users and sessions: Approximate counts of distinct users and OpenCode sessions.
- Cost: Session cost is the average cost per OpenCode session. Token prices are list prices from the OpenCode model catalog.
- Retention: The share of a model's users in one week who use it again the next week.
- Citation: Cite OpenCode Data (opencode.ai/data) with the update time shown at the top of the page.
