Skip to content

GLM-5.2

Z.ai's open-weight model for long coding tasks that run for hours and work with text, served on Boundless.

Pricing

GLM-5.2 API pricing by provider

ProviderInputCachedOutputContext
Boundless$0.34$0.17$2.301M
Z.aiModel creator$1.40$0.26$4.401M
DeepInfra$0.56$0.11$1.801M
Baseten$1.40$0.14$4.401M
Together$1.40$0.26$4.401M
Fireworks$1.40$0.14$4.401M

Prices per 1M tokens. Source: OpenRouter

About the model

GLM-5.2 at a glance

GLM-5.2 is Z.ai's flagship open model for long-horizon tasks. It improves on GLM-5.1 with stronger coding and adjustable thinking effort, so you can trade depth for latency.

From Z.ai's model card
Developer
Z.ai
Context window
1M tokens
Input
Text
Capabilities
Reasoning, tool use

Tailored inference

Want GLM-5.2 tuned to your workload?

Our engineers benchmark it against your current model, tune how it's served for your traffic, and run it to your cost, latency and quality targets.

Talk to an engineer

Run it

Switch with a base URL and a key

  1. 01

    Get an API key

    Sign up in the console and create a key. No sales call.

    Get a key
  2. 02

    Point your SDK at Boundless

    Change the base URL and key. For Anthropic SDKs, drop the /v1 and set max_tokens.

curl https://api.inference.boundless.network/v1/chat/completions \
  -H "Authorization: Bearer $BOUNDLESS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5.2",
    "messages": [{
      "content": "Say hello",
      "role": "user"
    }]
  }'
From the quickstart docs

FAQ

Questions before you commit

How much does GLM-5.2 cost on Boundless?

$0.34 per 1M input tokens, $0.17 per 1M cached input tokens and $2.30 per 1M output tokens, billed from prepaid credits. Every response includes exact token counts, so any charge can be checked against these prices.

What is GLM-5.2's context window on Boundless?

1M tokens, shared by the prompt and the reply. max_tokens can go up to that limit.

Does GLM-5.2 support tool calling?

Yes. GLM-5.2 supports tool use and reasoning.

Can I control how much GLM-5.2 reasons?

Yes. On chat completions, set reasoning_effort to none, low, medium or high, or leave it unset for the model's default. Size max_tokens for both the thinking and the reply.

What are the rate limits?

Each team has caps on tokens per minute, requests per minute and concurrent requests, shown on the usage page. Cached input doesn't count against them, and support can raise them for your team.

Does Boundless store my prompts or outputs?

No. Boundless never stores prompts or outputs and never trains on them. It keeps only what billing needs: token counts, model, timestamp and cost.

Can Boundless help me decide if GLM-5.2 fits my workload?

Yes. We test it against your current model on your own prompts, then tune and run it to your targets.

More models

Other models to compare

View all models