Skip to content

GLM

GLM models are general-purpose chat and reasoning models.

Models

Model Code Notes
GLM 5.1 glm-5.1 Latest.
GLM 5 glm-5 Flagship.
GLM 5 Turbo glm-5-turbo Faster, economical.

Capabilities

  • tools, tool_choice
  • temperature, top_p, max_tokens, response_format

See Parameter Support by Model for the full matrix.

Example

from openai import OpenAI

client = OpenAI(base_url="https://llm.siraya.ai/v1", api_key="<API_KEY>")
resp = client.chat.completions.create(
    model="glm-5",
    messages=[{"role": "user", "content": "Give me three startup ideas."}],
)
print(resp.choices[0].message.content)