# GLM-5.2

GLM-5.2 is Z.AI's flagship foundation model for long-horizon engineering, from project-level codebase takeover and large refactors to deep debugging and research reproduction. It supports lossless long-context inputs, multiple thinking modes, streaming, and function calling, and Z.AI positions it as its leading open-source coding model. Its published context window is 1,000,000 tokens. The advertised input rate is $1.40 per million input tokens. The advertised output rate is $4.40 per million output tokens.

- Model identifier: ` zai/glm-5.2 `
- Creator: Z.AI
- Providers: Z.AI
- Model type: Text generation
- Canonical model page: [GLM-5.2](<https://impossibl.com/zai/glm-5.2>)
- API availability: Listed as serving through Impossibl.
- Creator release date: 2026-06-16

## Providers

Z.AI hosts GLM-5.2. Impossibl routes your request intelligently and handles failover automatically when a provider is down.

| Provider | Endpoint location | Routes | Verified context window | Tool calling |
| --- | --- | --- | --- | --- |
| Z.AI | Not specified | 1 | Not verified | Not verified |

The model price applies whichever provider serves the request. Endpoint locations do not guarantee inference residency.

## Specs and Capabilities

- Context window: 1,000,000 tokens
- Maximum output tokens: Not published in the public catalog; this is separate from the context window.
- Inputs: text
- Outputs: text
- Tool calling: Not published

## API access

Use ` zai/glm-5.2 ` as the model identifier through the Impossibl API.

Published API endpoints:

- ` /v1/chat/completions `

[API quickstart](<https://impossibl.com/docs/agent-quickstart>) · [Models and billing documentation](<https://impossibl.com/docs/models>)

## Published API prices

All rates are in USD. An unpublished rate is unknown, not zero. Workspace-specific pricing, taxes, balance-purchase fees, billing adjustments, and tool charges can affect the amount paid.

| Usage | Published base rate | Billing unit |
| --- | --- | --- |
| Input | $1.40 | per million input tokens |
| Output | $4.40 | per million output tokens |
| Cache read | $0.26 | per million cached input tokens |
| Cache write (default retention) | Not published | per million tokens |
| Cache write (one-hour retention) | Not published | per million tokens |
| Audio input | Not published | per million audio input tokens |

## Benchmarks

Last checked: 2026-11-18T00:37:52.102Z.
Configurations are evaluated separately. API scores retain their original units. Unmeasured scores are omitted.

### GLM-5.2 (Max)

Source: [Evaluation source](<https://artificialanalysis.ai/models/glm-5-2>)

| Benchmark | Score |
| --- | --- |
| Omniscience Index | 0.63 |
| GPQA | 89.49% |
| Humanity’s Last Exam | 41.15% |
| SciCode | 51.16% |
| CritPt | 20.86% |
| Terminal-Bench Hard | 50.76% |
| AA-LCR | 78.33% |
| Multilingual LCR | 12.78% |
| GDPval Elo | 1380.20 |
| GDP.pdf All-pass | 10.40% |
| AutomationBench Partial | 28.40% |
| IFBench | 73.33% |
| Tau2 | 99.12% |
| Tau Banking | 34.64% |
| APEX-Agents | 33.70% |
| ITBench | 42.66% |
| legal index (API) | 34.3 |
| coding index (API) | 68.8 |
| agentic index (API) | 38.4 |
| economics index (API) | 45.6 |
| engineering index (API) | 37.2 |
| intelligence index (API) | 33.7 |
| strategy and ops index (API) | 30.6 |
| finance and accounting index (API) | 33.3 |
| healthcare and medical index (API) | 32.4 |

Full benchmark data and breakdowns: [Complete benchmark snapshot](<https://api.impossibl.com/v1/models/zai/glm-5.2/benchmarks>).


## Availability and retirement

The model is listed as serving. No retirement is announced in the current public catalog.

## Frequently asked questions

### What is GLM-5.2?

GLM-5.2 is Z.AI's flagship foundation model for long-horizon engineering, from project-level codebase takeover and large refactors to deep debugging and research reproduction. It supports lossless long-context inputs, multiple thinking modes, streaming, and function calling, and Z.AI positions it as its leading open-source coding model.

Sources: [OpenRouter model listing](<https://openrouter.ai/z-ai/glm-5.2>); [Z.AI release notes](<https://docs.z.ai/release-notes/new-released>)

### How much does GLM-5.2 cost?

GLM-5.2 costs $1.40 per million input tokens and $4.40 per million output tokens through the Impossibl API. Cache reads cost $0.26 per million tokens. All rates are in USD.

### What is the context length of GLM-5.2?

GLM-5.2 has a 1,000,000-token context window through the Impossibl API.

### What inputs and outputs does GLM-5.2 support?

GLM-5.2 accepts text as input. GLM-5.2 returns text.

### How do I use GLM-5.2 through an API?

GLM-5.2 is available through the Impossibl API. Use zai/glm-5.2 as the model identifier with /v1/chat/completions. The quickstart explains how to create an API key and send your first request.

### When was GLM-5.2 released?

Z.AI released GLM-5.2 on June 16, 2026.

Sources: [Creator release announcement](<https://docs.z.ai/release-notes/new-released>)

## Sources and related links

Prices, limits, capabilities, endpoints, and availability come from the public Impossibl catalog. Creator documentation supplies descriptions and release dates where available; it does not override the published API offering.

- [Public Impossibl model catalog](<https://api.impossibl.com/v1/models>)
- [Full model directory as JSON](<https://impossibl.com/models.json>)
- [GLM-5.2: model details and pricing](<https://impossibl.com/zai/glm-5.2>)
- [Model directory](<https://impossibl.com/models>)
- [OpenRouter model listing](<https://openrouter.ai/z-ai/glm-5.2>)
- [Z.AI release notes](<https://docs.z.ai/release-notes/new-released>)
