Back to Models
GLM-5
精选可用glm-5Zhipu
Technical Specifications
上下文长度200K tokens
最大输出131K tokens
最低输入价$1.00/1M tokens
最低输出价$3.20/1M tokens
Capabilities
chatcodefunction_calling
价格
输入$1.00/1M
输出$3.20/1M
缓存$0.20/1M
Code Examples
curl https://api.tokligence.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "glm-5",
"messages": [
{
"role": "user",
"content": "Hello, how are you?"
}
],
"max_tokens": 1024
}'Ready to use GLM-5?
Try it out in our interactive playground or integrate it into your application with just a few lines of code.