glm-5.2-free
Z.AI logo

GLM 5.2 (free)

glm-5.2-free
Z.AI
GLM 5.2 is a large-scale reasoning model developed by Z Ai that supports text input and output. Featuring a 128,000-token context window, this model is designed to handle complex, data-heavy tasks. It is exceptionally well-suited for long-horizon agent workflows and project-level software engineering.

Pricing

  • Input Tokens: $0.000 /M tokens
  • Output Tokens: $0.000 /M tokens
  • Cache Read: $0.000 /M tokens

Input Modalities

  • Text

Output Modalities

  • Text

Capabilities

  • Long context

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

GLM 5.2 is a large-scale reasoning model developed by Z Ai that supports text input and output. Featuring a 128,000-token context window, this model is designed to handle complex, data-heavy tasks. It is exceptionally well-suited for long-horizon agent workflows and project-level software engineering.