GLM-5.1 is available through the OpenAI-compatible chat completions API. It is suitable for chat, reasoning, coding assistance, document understanding, and Chinese-English application workflows.
Create or copy your API key from the console before calling the API. Use the model unit price displayed in the console as the source of truth.