How do I call GLM-4.7 and read the response?
Submit model: glm-4.7 and messages to /v1/chat/completions, using Bearer Token authentication. Regular text responses are located in message.content within choices; also read finish_reason and usage to determine whether the response has ended and this request's token usage.
How do I call glm-4.7 using the standard API?
Submit model=glm-4.7 and messages to /v1/chat/completions. Read regular results from choices[].message.content; use stream for streaming calls to receive incremental results. Use this platform's API Key, and set the complete base URL according to the SDK you use.
Can GLM-4.7 display code as it generates it?
Yes. After setting stream: true for the chat completions endpoint, receive text in incremental chunks and progressively concatenate it, which is suitable for long code and solution output. The frontend should parse streaming events rather than treating each network data chunk as a complete response; save the final code only after completion to avoid using content that has not yet been fully generated.
Can GLM-4.7 directly read images or generate speech?
GLM-4.7 should be used as a text model, without treating image understanding or speech generation as native capabilities. Requirements in images can first be converted to text, and audio can first be transcribed before being given to it for analysis. If an application requires direct image recognition or voice interaction, choose models and audio components for the corresponding modalities.
How should GLM-4.7's reasoning switch be understood?
GLM-4.7's native design supports enabling or disabling reasoning on a per-turn basis, which can be used to balance simple answers and complex problem solving. This does not mean this platform provides the same switch: do not directly apply thinking.type from official examples to /v1/chat/completions, and do not treat reasoning_effort as equivalent to enabling or disabling reasoning. When using this platform, start with the default calling method, and organize complex problem solving through clear task requirements, response budgets, and step-by-step verification.