Available GLM models
Basic chat completion
Streaming with Vercel AI SDK
Structured output
Comparing GLM generations
Choosing the right GLM model
Tips
- GLM-5.1 is the recommended default unless you need cost savings.
- Multilingual: GLM models handle Chinese and English equally well.
- Temperature 0.3–0.5 works best for factual tasks; 0.7–0.9 for creative writing.
Next steps
- Chat completions reference
- Model catalog
- AI Chatbot with Next.js — build a chat UI with GLM