Back to models
GLM-4-32B-0414
Developed by Zhipu AI, GLM-4-32B-0414 is a 32B dense open-weight language model pretrained on 15T tokens with strong engineering code generation, function calling, artifact creation, and report writing.
What you can do
- Interactive frontend and artifact generation
- Multi-tool function-calling agent workflows
- Structured research report authoring
Input & output
- Input
- Engineering instructions, tool definitions, retrieved search passages, and 32K-context documents
- Output
- Interactive HTML/SVG code artifacts, structured tool calls, and analytical reports
Try a prompt like this
请使用单文件 HTML + Tailwind CSS +原生 Canvas 编写一个可调节重力加速度与阻尼系数的双摆混沌运动交互式演示网页。
Things to know
MIT license; BF16 inference needs ~66–70 GB VRAM (1×80 GB or 2×48 GB GPUs), while INT4/FP8 quantization fits on 24–32 GB GPUs; native context window is 32K tokens.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
ZhipuAI/GLM-4-32B-0414
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="ZhipuAI/GLM-4-32B-0414",
messages=[{"role": "user", "content": "请使用单文件 HTML + Tailwind CSS +原生 Canvas 编写一个可调节重力加速度与阻尼系数的双摆混沌运动交互式演示网页。"}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide