Skip to main content
Swap two environment variables and change the model name. That’s it.
Or pass explicitly:

Reasoning models

Reasoning models such as zai-org/GLM-5.2 add a reasoning_content field alongside the usual content. It holds the model’s chain-of-thought and appears on message (non-streaming) or delta (streaming). Read it the same way you read content:

Chat Completions Compatibility

Transcriptions Compatibility