# GLM-5.2 Usage, Cost & Rank | OpenCode Data

> GLM-5.2 ranked #32 by tokens across OpenCode last week, with 0.0% of tokens over the past two months. GLM-5.2 costs $1.20 per 1M input tokens and $4.18 per 1M output tokens.

Open flagship GLM for long-horizon coding agents and million-token context work

- Page: https://opencode.ai/data/zhipuai/glm-5-2
- JSON: https://opencode.ai/data/zhipuai/glm-5-2.json
- Model ID: zhipuai/glm-5.2
- Lab: Zhipu
- Updated: 2026-11-17T14:09:24.000Z

## Model facts

| Fact | Value |
| --- | --- |
| Context window | 1M |
| Max output | 131K |
| Knowledge cutoff | - |
| Release date | 2026-06-13 |
| Input modalities | text |
| Output modalities | text |
| Reasoning | Yes |
| Tool calling | Yes |
| Open weights | Yes |
| Weights | [Hugging Face](https://huggingface.co/zai-org/GLM-5.2) |

## Pricing: USD per 1M tokens

| Input | Output | Cached input | Cache write |
| --- | --- | --- | --- |
| $1.20 | $4.18 | $0.30 | $0.00 |

## OpenCode usage: past 2 months

| Metric | Value |
| --- | --- |
| Rank by tokens last week | #32 |
| Tokens | 490B |
| Share of all tokens | 0.0% |
| Change vs previous 2 months | -82% |
| Unique users | 107K |
| Completed sessions | 492,058 |
| Average tokens per session | 996K |
| Average cost per session | $0.3759 |
| Total spend | $184,987 |
| Input tokens served from cache | 93.6% |
| Weekly retention | 62.9% |

## Daily usage: past 2 months

| Date | Tokens | Unique users | Sessions |
| --- | --- | --- | --- |
| 2026-09-23 | 12B | 2.6K | 11,330 |
| 2026-09-24 | 11B | 2.3K | 8,185 |
| 2026-09-25 | 9.8B | 2K | 6,905 |
| 2026-09-26 | 6.9B | 1.7K | 5,846 |
| 2026-09-27 | 7.2B | 1.7K | 6,257 |
| 2026-09-28 | 13B | 2.6K | 11,054 |
| 2026-09-29 | 13B | 2.5K | 10,976 |
| 2026-09-30 | 12B | 2.4K | 10,134 |
| 2026-10-01 | 9.1B | 2K | 8,358 |
| 2026-10-02 | 8.1B | 1.8K | 9,561 |
| 2026-10-03 | 7.1B | 1.5K | 7,358 |
| 2026-10-04 | 6.7B | 1.5K | 9,117 |
| 2026-10-05 | 10B | 2K | 11,827 |
| 2026-10-06 | 10B | 2.1K | 12,804 |
| 2026-10-07 | 10B | 2K | 9,670 |
| 2026-10-08 | 9.7B | 2.3K | 9,960 |
| 2026-10-09 | 9.5B | 2.2K | 12,278 |
| 2026-10-10 | 7.9B | 1.8K | 7,798 |
| 2026-10-11 | 7B | 1.6K | 7,876 |
| 2026-10-12 | 11B | 2.3K | 14,505 |
| 2026-10-13 | 10B | 2.3K | 20,961 |
| 2026-10-14 | 11B | 2.5K | 17,515 |
| 2026-10-15 | 10B | 2.5K | 17,850 |
| 2026-10-16 | 9.4B | 2.3K | 10,803 |
| 2026-10-17 | 5.9B | 1.8K | 7,187 |
| 2026-10-18 | 4.3B | 1.4K | 10,531 |
| 2026-10-19 | 9.3B | 2K | 10,226 |
| 2026-10-20 | 9.3B | 2.2K | 7,908 |
| 2026-10-21 | 9.3B | 2.2K | 7,469 |
| 2026-10-22 | 9B | 2K | 8,331 |
| 2026-10-23 | 7.1B | 2K | 7,766 |
| 2026-10-24 | 5.9B | 1.5K | 5,595 |
| 2026-10-25 | 6.9B | 1.5K | 4,349 |
| 2026-10-26 | 9.8B | 2.1K | 10,090 |
| 2026-10-27 | 9.6B | 2K | 8,725 |
| 2026-10-28 | 8.8B | 2K | 8,465 |
| 2026-10-29 | 9.4B | 2K | 7,502 |
| 2026-10-30 | 8.2B | 1.8K | 5,368 |
| 2026-10-31 | 6.4B | 1.4K | 4,531 |
| 2026-11-01 | 5B | 1.4K | 4,535 |
| 2026-11-02 | 10B | 1.9K | 7,081 |
| 2026-11-03 | 10B | 1.9K | 9,186 |
| 2026-11-04 | 8.7B | 1.9K | 6,942 |
| 2026-11-05 | 8.3B | 2K | 7,280 |
| 2026-11-06 | 7.8B | 1.9K | 7,204 |
| 2026-11-07 | 5.6B | 1.5K | 6,816 |
| 2026-11-08 | 5.5B | 1.4K | 6,648 |
| 2026-11-09 | 11B | 1.9K | 8,737 |
| 2026-11-10 | 9.7B | 1.9K | 9,914 |
| 2026-11-11 | 9.9B | 1.9K | 8,017 |
| 2026-11-12 | 7.7B | 1.7K | 7,917 |
| 2026-11-13 | 8.3B | 1.6K | 6,545 |
| 2026-11-14 | 6.7B | 1.3K | 5,029 |
| 2026-11-15 | 7.5B | 1.3K | 4,385 |
| 2026-11-16 | 10B | 1.9K | 7,968 |
| 2026-11-17 | 6.6B | 1.3K | 4,883 |

## Top countries: past 2 months

| Rank | Country | Tokens | Share |
| --- | --- | --- | --- |
| 1 | United States | 67B | 13.7% |
| 2 | China | 66B | 13.5% |
| 3 | Germany | 31B | 6.3% |
| 4 | Brazil | 26B | 5.4% |
| 5 | Russia | 18B | 3.8% |
| 6 | Spain | 18B | 3.6% |
| 7 | France | 16B | 3.2% |
| 8 | India | 13B | 2.7% |
| 9 | United Kingdom | 13B | 2.7% |
| 10 | Japan | 12B | 2.3% |
| 11 | Hong Kong | 10B | 2.1% |
| 12 | Mexico | 9.7B | 2% |
| 13 | Colombia | 9.3B | 1.9% |
| 14 | Indonesia | 9.1B | 1.9% |
| 15 | Argentina | 8.5B | 1.7% |

## Nearby models by tokens last week

| Rank | Model | Lab | Tokens |
| --- | --- | --- | --- |
| 28 | [kimi-k2.7-code](https://opencode.ai/data/moonshotai/kimi-k2-7-code.md) | Moonshot | 150B |
| 29 | [gpt-5.6-luna](https://opencode.ai/data/openai/gpt-5-6-luna.md) | OpenAI | 108B |
| 30 | [qwen3.7-plus](https://opencode.ai/data/alibaba/qwen3-7-plus.md) | Qwen | 64B |
| 31 | [muse-spark-1.2-contributor](https://opencode.ai/data/meta/muse-spark-1-2-contributor.md) | Meta | 57B |
| 32 | [glm-5.2](https://opencode.ai/data/zhipuai/glm-5-2.md) | Zhipu | 57B |
| 33 | [longcat-2.0](https://opencode.ai/data/meituan/longcat-2-0.md) | Meituan | 45B |
| 34 | [qwen4-max](https://opencode.ai/data/alibaba/qwen4-max.md) | Qwen | 39B |
| 35 | [kimi-k3](https://opencode.ai/data/moonshotai/kimi-k3.md) | Moonshot | 28B |
| 36 | [qwen3.8-max](https://opencode.ai/data/alibaba/qwen3-8-max.md) | Qwen | 28B |
| 37 | [jev-1.13](https://opencode.ai/data/unknown/jev-1-13.md) | - | 21B |

## Benchmarks

| Benchmark | Score | Metric | Source |
| --- | --- | --- | --- |
| SWE-Bench Pro | 62.1 | resolve rate | https://z.ai/blog/glm-5.2 |
| Terminal-Bench | 82.7 | success rate | https://z.ai/blog/glm-5.2 |
| FrontierSWE | 74.4 | dominance | https://z.ai/blog/glm-5.2 |
| Humanity's Last Exam | 40.5 | accuracy | https://z.ai/blog/glm-5.2 |
| Humanity's Last Exam | 54.7 | accuracy | https://z.ai/blog/glm-5.2 |
| CritPt | 20.9 | accuracy | https://z.ai/blog/glm-5.2 |
| AIME | 99.2 | accuracy | https://z.ai/blog/glm-5.2 |
| HMMT | 94.4 | accuracy | https://z.ai/blog/glm-5.2 |
| HMMT | 92.5 | accuracy | https://z.ai/blog/glm-5.2 |
| IMOAnswerBench | 91 | accuracy | https://z.ai/blog/glm-5.2 |
| GPQA Diamond | 91.2 | accuracy | https://z.ai/blog/glm-5.2 |
| NL2Repo | 48.9 | resolve rate | https://z.ai/blog/glm-5.2 |
| DeepSWE | 46.2 | resolve rate | https://z.ai/blog/glm-5.2 |
| Program Bench | 63.7 | score | https://z.ai/blog/glm-5.2 |
| Terminal-Bench | 81 | success rate | https://z.ai/blog/glm-5.2 |
| PostTrainBench | 34.3 | score | https://z.ai/blog/glm-5.2 |
| SWE Marathon | 13 | resolve rate | https://z.ai/blog/glm-5.2 |
| MCP Atlas | 76.8 | score | https://z.ai/blog/glm-5.2 |
| Tool-Decathlon | 48.2 | score | https://z.ai/blog/glm-5.2 |

## 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.
