GLM 5.2
AI21 logo

GLM 5.2

glm-5.2
AI21
GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...

Pricing

TierPricing
Input<=32K
$0.548$2.466
32K<Input<=200K
$0.822$3.014

Input 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

Z.AI zai-glm-5.2
Pricing$60$360
Context0
Max output0
Latency0.8S
Throughput107.3TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Novita novita-glm-5-2
36% off
Pricing$0.548$0.3507$2.466$1.5782
Pricing$0.822$0.5261$3.014$1.929
Context1M
Max output0
Latency0.8S
Throughput107.3TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Baidu baidu-glm-5-2
Pricing$0.548$2.466
Pricing$0.822$3.014
Context1M
Max output0
Latency0.8S
Throughput107.3TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Deepinfra deepinfra-glm-5-2
Pricing$0.548$2.466
Pricing$0.822$3.014
Context1M
Max output0
Latency0.8S
Throughput107.3TPS
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
StreamLake streamlake-glm-5-2
62% off
Pricing$0.548$0.2082$2.466$0.9371
Pricing$0.822$0.3124$3.014$1.1453
Context1M
Max output0
Latency0.8S
Throughput107.3TPS
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://shkq.org/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 a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...