GLM 4.5 Air
Z.AI logo

GLM 4.5 Air

glm-4.5-air
Z.AI

Pricing

  • Input Tokens: $0.140 /M tokens
  • Output Tokens: $0.840 /M tokens

Input Modalities

  • Text

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-4.5-air",
    messages=[
      {
        "role": "user",
        "content": "Hello, how are you?"
      }
    ],
    max_tokens=1024,
    stream=False,
)

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

Frequently asked questions

What is the context length of GLM 4.5 Air?

GLM 4.5 Air has a 131,072 token context window. It supports up to 98,304 output tokens.