# Hy4 preview vs GLM-5.2 - AI Model Comparison

- Page: https://opencode.ai/data/compare/tencent/hy4-preview/zhipuai/glm-5-2
- Updated: 2026-10-22T19:30:19.000Z

|  | Hy4 preview | GLM-5.2 |
| --- | --- | --- |
| Lab | Tencent | Zhipu |
| Context window | 1M | 1M |
| Max output | 64K | 131K |
| Input modalities | text | text |
| Reasoning | Yes | Yes |
| Tool calling | Yes | Yes |
| Open weights | Yes | Yes |
| Release date | 2026-08-28 | 2026-06-13 |
| Input price per 1M tokens | $0.96 | $1.20 |
| Output price per 1M tokens | $2.88 | $4.18 |
| Cached input price per 1M tokens | $0.05 | $0.30 |
| OpenCode tokens: past 2 months | 366B | 829B |
| Share of all tokens | 0.0% | 0.1% |
| Rank by tokens last week | #35 | #31 |
| Unique users | 55K | 180K |
| Weekly retention | 54.3% | 56.8% |

Model pages: [Hy4 preview](https://opencode.ai/data/tencent/hy4-preview.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.
