# Zhipu: glm-5.2 — API on ChinaAPI

> Open flagship GLM for long-horizon coding agents and million-token context work

- Canonical page: https://chinaapi-ru.com/models/glm-5.2/
- Model ID: `glm-5.2`
- Context window: 1M
- Modalities: Text
- Pricing: $1.2798/M input, $4.4793/M output tokens (USD)
- Endpoint: OpenAI-compatible `POST https://api.chinaapi-ru.com/v1/chat/completions`
- Pricing basis: Token-model rates are synchronized from the gateway and may follow providers' official China list prices where configured. Live pricing is authoritative.
- Access: no mainland-China account or phone number required; $2 free trial credit
- Sign up: https://dash.chinaapi-ru.com/register?utm_source=chinaapi&utm_medium=model-md&utm_campaign=glm-5.2

## Quickstart

```
curl -X POST https://api.chinaapi-ru.com/v1/chat/completions \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [
      {"role": "user", "content": "Summarize the main tradeoffs for this API workload."}
    ]
  }'

from openai import OpenAI

client = OpenAI(
    api_key="sk-...",
    base_url="https://api.chinaapi-ru.com/v1",
)

response = client.chat.completions.create(
    model="glm-5.2",
    messages=[
        {"role": "user", "content": "Summarize the main tradeoffs for this API workload."}
    ],
)
print(response.choices[0].message.content)
```

## FAQ

**How do I use glm-5.2?**
Use glm-5.2 through ChinaAPI with an API key and the OpenAI-compatible endpoint shown on this page.

**How much does glm-5.2 cost?**
glm-5.2 is $1.2798/M input, $4.4793/M output tokens, paid in USD. The live pricing page is authoritative. Token-model rates are synchronized from the gateway and may follow providers' official China list prices where configured. Live pricing is authoritative.

**Does glm-5.2 need a Chinese account?**
No. ChinaAPI provides access without a mainland-China account or phone number and includes a $2 free trial. Check live pricing for the displayed USD rate.

---
Markdown twin of https://chinaapi-ru.com/models/glm-5.2/ — generated by scripts/gen_model_pages.py. Full catalog: https://chinaapi-ru.com/llms-full.txt
