GLM 5.2 API
Long-context Z.ai flagship for complex reasoning, repository-scale analysis, and multi-step agentic tasks.
Provider: Z.ai | Model ID: glm-5-2 | Context Window: 1.0M tokens
Token Pricing
₹140/1M input · ₹450/1M output. Pay-as-you-go micro-metered token billing. UPI and cards accepted with zero minimum commitment.
| Token Type | Price (INR) |
|---|---|
| Input Tokens | ₹140/1M tokens |
| Output Tokens | ₹450/1M tokens |
| Prompt Caching Input | ₹30/1M tokens |
OpenAI-Compatible Integration
Directly drop into existing OpenAI SDK code by updating the base URL to https://api.luminoai.co.in/v1.
curl https://api.luminoai.co.in/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LUMINO_API_KEY" \
-d '{
"model": "glm-5-2",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Explain KV cache in 2 sentences."}
]
}'
Model Specifications
| Model Identifier | glm-5-2 |
|---|---|
| Provider | Z.ai |
| Category | agentic |
| Context Window | 1.0M tokens |
| API Protocol | OpenAI-compatible REST API (JSON) |
| Endpoint | https://api.luminoai.co.in/v1/chat/completions |
Explore all models in catalog | API Documentation | Test GLM 5.2 in Playground