Skip to main content
GLM-4.5 is a chat model from Zhipu AI, available through Starrise AI via an OpenAI-compatible interface. It features powerful reasoning and conversational capabilities.

Key Capabilities

  • OpenAI-compatible — Drop-in replacement for the OpenAI SDK, no other code changes needed
  • Strong reasoning — Suitable for complex multi-step tasks
  • Long context — supports large document processing and multi-turn conversations
  • Streaming output — Real-time token streaming via SSE

Quick Example

curl https://ai.alad.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-4.5",
    "messages": [
      { "role": "user", "content": "Explain quantum entanglement in simple terms." }
    ]
  }'

Parameters

ParameterTypeRequiredDescription
modelstringYesFixed value: glm-4.5
messagesarrayYesArray of objects { role, content }
max_tokensintegerNoMaximum number of tokens to generate
temperaturefloatNo02, controls randomness, default 1
streambooleanNoEnable SSE streaming, default false
top_pfloatNoNucleus sampling threshold, default 1
stopstring / arrayNoSequences that trigger stop generation

API Reference

View the interactive API Playground for GLM-4.5.