Description
GLM 4 32B is a cost-effective foundation language model. It can efficiently perform complex tasks and has significantly enhanced capabilities in tool use, online search, and code-related intelligent tasks. It is made by the same lab behind the thudm models.
API Usage Examples
OpenAI Compatible Endpoint
Use this endpoint with any OpenAI-compatible library. Model: Z.AI: GLM 4 32B (z-ai/glm-4-32b)
curl https://api.ridvay.com/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "z-ai/glm-4-32b",
"messages": [
{
"role": "user",
"content": "Explain the capabilities of the Z.AI: GLM 4 32B model"
}
],
"temperature": 0.7,
"max_tokens": 1024
}'
Supported Modalities
- Text
API Pricing
- Input: 0.1$ / 1M tokens
- Output: 0.1$ / 1M tokens
Token Limits
- Max Output: 128,000 tokens
- Max Context: 128,000 tokens
Subscription Tiers
- free
- pro
- ultimate