GLM 5.2
Z.AI logo

GLM 5.2

glm-5.2llms.txt
Z.AI
GLM-5.2 is Z.ai’s flagship model for the era of long-horizon tasks. With a truly usable 1M-token context window, it can handle project-level engineering context, execute long-running tasks more reliably, follow engineering standards more consistently, and complete the full development workflow from requirements to multi-platform deployment in a single task.

Pricing

  • Input Tokens: $1.1268 /M tokens
  • Output Tokens: $3.9438 /M tokens
  • Cache Read: $0.2817 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

Context length

  • 1M tokens

Max output

  • 131K tokens

Capabilities

  • Thinking
  • Streaming
  • Tool calling
  • Web search
  • URL context
  • Code interpreter
  • Computer use
  • File search
  • Memory tool
  • Structured outputs
  • Citations
  • Prompt caching
  • Background mode
  • Server-side sessions

Providers

Alibaba Cloud alicloud-glm-5.2
Pricing$1.1268$3.9438
Cache$0.2817
Context1M
Max output128K
Latency3.0S
Throughput35.4TPS
Uptime
99.54% uptime 2 days ago
100.00% uptime yesterday
99.86% uptime today
Baidu baidu-glm-5.2
Pricing$1.1268$3.9438
Cache$0.2817
Context1M
Max output128K
Latency1.2S
Throughput13.7TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
Z.AI zai-glm-5.2
Pricing$1.1268$3.9438
Cache$0.2817
Context1M
Max output128K
Latency1.4S
Throughput11.1TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
Tencent tencent-glm-5.2
Pricing$1.238$4.333
Cache$0.3095
Context1M
Max output128K
Latency2.2S
Throughput6.7TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
Deepinfra deepinfra-glm-5.2
Pricing$1.045$3.3001
Cache$0.198
Context1M
Max output128K
Latency0.7S
Throughput22.5TPS
Uptime
100.00% uptime 2 days ago
100.00% uptime yesterday
100.00% uptime today
Novita novita-glm-5-2
36% off
Pricing$1.1268$0.7212$3.9438$2.524
Cache$0.2817$0.1803
Context1M
Max output128K
Latency1.6S
Throughput11.0TPS
Uptime
100.00% uptime 2 days ago
93.33% uptime yesterday
100.00% uptime today
StreamLake streamlake-glm-5-2
Pricing$1.1268$3.9438
Cache$0.2817
Context1M
Max output128K
Latency1.0S
Throughput35.9TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today

Performance for glm-5.2

Uptime is the percentage of requests that succeeded over the past 72 hours. AIHubMix continuously monitors every provider and automatically retries with the next-best provider when one returns an error or responds too slowly; Latency is total round-trip time (lower is better); Throughput is how fast the model writes (tokens per second, higher is better).

Uptime
Loading...
Latency
Loading...
Throughput
Loading...

Try this model

Python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AIHUBMIX_API_KEY"],
    base_url="https://aihubmix.com/v1",
)

response = client.chat.completions.create(
    model="glm-5.2",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

print(response.choices[0].message.content)

Frequently asked questions

What is GLM 5.2?

GLM-5.2 is Z.ai’s flagship model for the era of long-horizon tasks. With a truly usable 1M-token context window, it can handle project-level engineering context, execute long-running tasks more reliably, follow engineering standards more consistently, and complete the full development workflow from requirements to multi-platform deployment in a single task.