GLM
GLM Text

openai/glm-5.2-free

Model ID: openai/glm-5.2-free
Family
GLM
Context
Not specified
Minimum charge / request
0.000384 USD
Requests
13.9K
Success
92.6%
Tokens
163.35M
Uptime 91.63%
24h agoNow
7 days agoNow

Pricing

Input / 1M tokens
0.0000384 USD
Output / 1M tokens
0.0000384 USD
Minimum charge / request
0.000384 USD
Cost estimator
Estimated total 0 USD
Average / request 0 USD

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/openai/glm-5.2-free:generateContent
https://api.xah.io/api/chat
Method POST · application/json
Auth Bearer token (API key)
API kinds Text

Notes

glm-5.2 siêu rẻ (10đ/req). Tốc độ trung bình (chậm vào giờ cao điểm). Bán lấy uy tín.

Share

curl 'https://api.xah.io/v1/chat/completions' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "openai/glm-5.2-free",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}'
// 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": "openai/glm-5.2-free",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
})
});
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": "openai/glm-5.2-free",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}

res = requests.post(url, headers=headers, json=payload, timeout=120)
print(res.status_code, res.json())
{
    "model": "openai/glm-5.2-free",
    "messages": [
        {
            "role": "user",
            "content": "Xin chào, bạn là ai?"
        }
    ]
}

Try it

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

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