Z.ai's GLM 5.2 served through the OpenRouter aggregator - a large-scale text reasoning model with a 1M-token context window, suited for long-horizon agent workflows and project-level software engineering. Billed at OpenRouter's actual usage cost.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 858 | $0.57 |
| Output Tokens | 2,698 | $1.80 |
| Cached Tokens | 159.416 | $0.11 |
* 1,500 credits โ $1 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Summarize the attached report in 5 bullets."
}
],
"max_tokens": 1024
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | - | Model ID in vendor/model form, e.g. "z-ai/glm-5.2". |
messages | array | Yes | - | Chat messages in OpenAI format (system/user/assistant roles). |
temperature | number | No | 0.7 | Sampling temperature (0-2). |
max_tokens | integer | No | 2048 | Maximum completion tokens. |
stream | boolean | No | false | Stream the response as server-sent events. |
OpenAI-compatible chat completion request via OpenRouter
curl -X POST "https://api.core.today/llm/openrouter/v1/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [
{
"role": "user",
"content": "Summarize the attached report in 5 bullets."
}
],
"max_tokens": 1024
}'POST /llm/openrouter/v1/chat/completions