GLM-5.2 API Resources

GLM-5.2 API Resources

GLM-5.2 is useful to test for reasoning, coding, long-context understanding, and agent workflows through an OpenAI-compatible API endpoint.

lizh.ai is an independent OpenAI-compatible API gateway. It is not the official Zhipu AI API website.

Core setup values

Current pricing snapshot

Model Provider Input Output Cache hit
glm-5.2 Zhipu AI $2.00 / 1M tokens $6.29 / 1M tokens $0.3714 / 1M tokens

What to test first

  1. Create an API key at lizh.ai/keys.
  2. Send one short request to https://lizh.ai/v1/chat/completions.
  3. Use glm-5.2 as the model ID.
  4. Move the same Base URL, API key, and model ID into Python, Cursor, Hermes, OpenClaw, or your backend.
  5. Check usage logs and pricing before long-context or agent workflows.

Useful scenarios

  • Reasoning-heavy prompts and professional analysis.
  • Coding agents, repository analysis, and debugging workflows.
  • Long-context reading and structured summarization.
  • Comparing GLM against Qwen, Kimi, DeepSeek, and MiniMax from one API key.

Compare with related models

When evaluating GLM-5.2, compare it with Qwen 3.7, Kimi K3, DeepSeek V4, MiniMax M2.7 using the same prompt, output limit, and logging method.

Related guides

GLM-5.2 API article directory

Use these question-led guides to test API keys, pricing, Python, cURL, Cursor, Claude Code, OpenClaw, Hermes, and the difference between official provider endpoints and lizh.ai.

ru

ar

ja

fr

vi

OpenAI-compatible request shape

curl https://lizh.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_LIZH_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{"role": "user", "content": "Write a short API test plan."}],
    "max_tokens": 500
  }'