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.

input · usd / 1m tok

$1.40

output · usd / 1m tok

$4.40

context window

1mtokens

modalities · in → out

takes text in, gives text out

pricing

base api ratesusd per 1m tokens

input
$1.40
output
$4.40
cache read
$0.26

providers

Different companies host GLM-5.2. Impossibl routes your request intelligently and handles failover automatically when a provider is down.

  • Azure AI Foundry
    Azure AI Foundry serving options
    endpoint locationroutes
    East US 21
    East US1

    locations describe provider endpoints; they do not guarantee where inference runs.

  • Z.AI

specifications

takes text in, gives text outzai/glm-5.2

  • creatorZ.AI
  • model typeText generation
  • context window1,000,000 tokens
  • maximum outputnot published
  • input

    takes text in, gives text out

  • outputtext
  • tool callingnot verified
  • releasedjun 16, 2026
  • endpoint/v1/chat/completions

unknown means the public catalog does not establish that fact. a model's documented capabilities can differ from what a particular api supports. see the model documentation for integration details.

try it · your prompt, this model, live

# responses API
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["IMPOSSIBL_API_KEY"],
    base_url="https://api.impossibl.com/v1",
)

resp = client.responses.create(
    model="zai/glm-5.2",
    input="",
)
print(resp.output_text)

edit the prompt, then run

benchmarks

intelligence index

33.7#42 of 108 models on the gateway

  1. coding index68.8#27 of 64
  2. agentic index38.4#25 of 53
  3. omniscience4.4#28 of 84
  4. gpqa89.5%#30 of 80
  5. humanity’s last exam41.1%#22 of 87
  1. Tau299.1%
  2. GPQA89.5%
  3. AA-LCR78.3%
  4. IFBench73.3%
  5. SciCode51.2%
  6. Terminal-Bench Hard50.8%
  7. ITBench42.7%
  8. Humanity’s Last Exam41.1%
  9. Tau Banking34.6%
  10. APEX-Agents33.7%
  11. AutomationBench Partial28.4%
  12. CritPt20.9%
  13. GDP.pdf All-pass10.4%
  14. Multilingual LCR7.2%
  • Intelligence Index33.71
  • Omniscience Index4.43
  • GDPval Elo1371.43
  • 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

view source ↗all source data and breakdowns (json) ↗

each configuration is listed separately; these evaluations describe the tested model configuration, and performance and costs can differ on impossibl. unmeasured scores are omitted and api values keep their source units. last checked 2026-10-14.

compare GLM-5.2 with other models

frontier labs and open weights, best-ranked firstusd / 1m tok · in / out

impossibl models --all →

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.

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.

view the pricing table ↑

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.

follow the api quickstart →

When was GLM-5.2 released?

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

this page describes GLM-5.2 as listed by the impossibl public api. prices and availability come from that catalog, refreshed here every five minutes. this is an impossibl offering, not a comparison of independent hosting-provider quotes. model descriptions and release dates, where available, use the creator sources linked under the answers above.

view the source catalog ↗model as markdown ↗report a correction →