GLM 5
ChatGLM logo

GLM 5

glm-5
ChatGLM
GLM 5 is ChatGLM's flagship open-source foundation model, designed for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks.

Pricing

  • Input Tokens: $60 /M tokens
  • Output Tokens: $360 /M tokens

Input Modalities

  • Text

Context length

  • 200K 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

Sophnet sophnet-glm-5
Pricing$0.548$2.466
Pricing$0.822$3.836
Pricing$1.096$4.384
Context0
Max output0
Latency-
Throughput-
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Alibaba Cloud alicloud-glm-5
Pricing$0.5634$2.5353
Cache Read$0.1127/M tokens
Pricing$0.8446$3.0969
Cache Read$0.1689/M tokens
Context0
Max output0
Latency-
Throughput-
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Deepinfra deepinfra-glm-5
Pricing$0.88$2.816
Cache$0.176
Context0
Max output0
Latency-
Throughput-
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
Baidu baidu-glm-5
Pricing$0.548$2.466
Pricing$0.822$3.014
Context0
Max output0
Latency-
Throughput-
Uptime
0.00% uptime 2 days ago
0.00% uptime yesterday
0.00% uptime today
GMICloud gmicloud-glm-5
Pricing$60$360
Context202K
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

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",
    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?

GLM 5 is ChatGLM's flagship open-source foundation model, designed for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks.