Back to models
qianfan

GLM 5.2

glm-5.2
qianfan500K context$0.98 / 1M tokens (input)$3.08 / 1M tokens (output)

GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering, and complex multi-step automation. Reasoning efforts high and xhigh are supported; xhigh maps to max reasoning. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.

Total Context500K
Input Price$0.98
Output Price$3.08

Providers for GLM 5.2

AnyInt routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

qianfan
Total Context500K
Input Price$0.98
Output Price$3.08

Sample code and API for GLM 5.2

AnyInt generates a quickstart from this model's declared API operations, including complete polling flows for asynchronous media.

Create API key

Choose an operation and language that match this model.

ResponsesOpenAI compatible

Call the standard operation supported by this model.

/v1/responses
curl 'https://api.anyint.ai/v1/responses' \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <YOUR_API_KEY>" \
  -d '{
  "model": "glm-5.2",
  "input": "Describe a calm futuristic city at sunrise."
}'