GLM
GLM Text

vutienanh291/GLM-5.2

Model ID: vutienanh291/GLM-5.2
Family
GLM
Context
Not specified
Minimum charge / request
0.0002 $
Cache hit rate
27.1%
Requests
79
Success
87.3%
Tokens
3.65M
Uptime
24h agoNow
7 days agoNow

Pricing

Input / 1M tokens
0.048 $
Output / 1M tokens
0.14 $
Per request
0.0002 $
Minimum charge / request
0.0002 $
Prompt Cache 27.1%
Cache read / 1M tokens
0.032 $
Cache write / 1M tokens
0.08 $

Repeated prompts are cached — reads are far cheaper than input, applied automatically via the API.

Price history

Price levels previously applied. The row tagged "current" is the live price.

Current Since 30/06/2026 - 19:25:59
Input / 1M tokens0.048 $ Output / 1M tokens0.14 $ Per request0.0002 $ Minimum charge / request0.0002 $ Cache read / 1M tokens0.032 $ Cache write / 1M tokens0.08 $
Cost estimator
Estimated total 0 $
Average / request 0 $

Estimate based on list prices. Caching usually makes it cheaper.

Supported endpoints
https://api.xah.io/v1/chat/completions
https://api.xah.io/v1/messages
https://api.xah.io/v1/responses
https://api.xah.io/v1beta/models/vutienanh291/GLM-5.2:generateContent
https://api.xah.io/api/chat
https://api.xah.io/api/generate
Method POST · application/json
Auth Bearer token (API key)
API kinds Text

Share

curl 'https://api.xah.io/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "vutienanh291/GLM-5.2",
    "messages": [
        {
            "role": "user",
            "content": "Hello, who are you?"
        }
    ]
}'
// Node.js / Browser
const res = await fetch('https://api.xah.io/v1/chat/completions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "model": "vutienanh291/GLM-5.2",
    "messages": [
        {
            "role": "user",
            "content": "Hello, who are you?"
        }
    ]
})
});
const data = await res.json();
console.log(data);
import requests

url = 'https://api.xah.io/v1/chat/completions'
headers = {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json',
}
payload = {
    "model": "vutienanh291/GLM-5.2",
    "messages": [
        {
            "role": "user",
            "content": "Hello, who are you?"
        }
    ]
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "vutienanh291/GLM-5.2",
    "messages": [
        {
            "role": "user",
            "content": "Hello, who are you?"
        }
    ]
}

Try it

Send a prompt with your API key — uses real credits, streams back instantly.

Reviews & comments
3.5 / 2 reviews
Loading reviews...
Contact Support
We are always ready to help you