Using the GLM-4.5V through the Smart Spectrum AI Open Platform API is divided into the following steps:
- Get API Key:Register and create an API Key on the Smart Spectrum AI Open Platform.
- Install the SDK:Run command
pip install zhipuai
Install the Python SDK. - Write the calling code:Refer to the sample code to initialize the ZhipuAI client and send a request. You need to specify the model as
glm-4.5v
, combining text and image URLs (or local images) in a message. - Processing Response:From the returned
response.choices[0].message.content
The results were extracted from the
To enable "Thinking Mode", add the following to the requestthinking
parameter (as in the cURL example) for complex task analysis.
This answer comes from the articleGLM-4.5V: A multimodal dialog model capable of understanding images and videos and generating codeThe