Zhipu AI

GLM 5.2 API

Built for reasoning, coding, and long-context agent tasks, improving over GLM-5.1 in context length, tool use, and complex multi-step workflows. Compared with Chinese flagship peers such as Qwen, DeepSeek, and Kimi, it fits enterprise automation, project-level code analysis, and knowledge work in Chinese.

  • Reasoning
  • Tool use
  • Function calling
  • Structured output
  • Long context

USD

Pricing

default
Standard Rate
Input$1.14/1M tokensCompletion Price$4.000032/1M tokensCache Read$0.286026/1M tokens

Public list prices are shown in USD. Final charges may vary by account group and usage tier.

API

Code examples

curl --location --request POST 'https://api.tokenhot.ai/v1/chat/completions' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "glm-5.2",
    "messages": [
        {
            "role": "user",
            "content": "What model are you"
        }
    ]
}'

Zhipu AI

Related models

ZhipuZhipu AIGLM 5.3

A flagship workhorse for complex software engineering and long-horizon agent tasks. It uses the same base model as GLM-5.2, with improvements driven by post-training, delivering a 50% gain on Z.ai Code Bench alongside stronger terminal-operation and vulnerability-discovery capabilities. It offers a 1M-token context window, up to 128K output, always-on reasoning with low, high, and max effort levels, function calling, and structured outputs. It currently accepts text only and is not intended for tasks requiring visual understanding.

$1.19/1M tokens
ZhipuZhipu AIGLM Image

Built for image generation and editing, with a stronger focus than earlier GLM vision capabilities on Chinese prompts, image-text understanding, and controllable generation. Compared with GPT Image, Gemini image models, and Qwen Image, it fits Chinese marketing assets, explanatory visuals, and iterative visual edits.

$0.88/1M tokens
MinimaxMiniMaxM2.5

A cost-efficient model for real productivity agents, strongest in coding, tool use, search, and office-style deliverables rather than casual chat alone. It fits agents that plan and execute cross-file changes, research retrieval, and document/spreadsheet/presentation workflows; versus more expensive flagships, the main tradeoff is lower cost for near-frontier execution efficiency.

$0.302/1M tokens
GeminiGoogleGemini 2.5 Flash Image

Built for image generation and editing, with stronger multimodal understanding, conversational edits, and rapid visual prototyping than earlier Gemini image capabilities. Compared with GPT Image, Qwen Image, and Seedream, it is useful for combining documents, images, and prompts in one visual workflow.

$0.0585/image

FAQ

Frequently asked questions

What is GLM 5.2 best suited for?

GLM 5.2 is suited to the input, output, and capability types listed on this page. Test production workloads before choosing it for a critical system.

How is GLM 5.2 priced?

Pricing is shown in the pricing section above. Actual cost depends on usage volume, account group, and the request payload.

How can I call GLM 5.2?

Use the model ID shown above with one of the supported API protocols. Code examples are provided when usage data is available.

Get started

Build with GLM 5.2

Use in Console