Baltor Get started

Models

GLM 5.2

By Z.ai. 753.3 billion parameters, a context window of 1,048,576 tokens and the licence mit.

Facts

Released
2026-06-16 the day the repository was first published on Hugging Face Hugging Face, read
Licence
mit the licence the model card declares Hugging Face, read
Open weights
Yes the weights are published in this Hugging Face repository Hugging Face, read
Parameters
753.3 billion counted from the safetensors weight files Hugging Face, read
Active parameters
51.2 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
Unknown
Context window
  • 1,048,576 tokens the maximum position embeddings in the model configuration model configuration, read
  • 1,048,576 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 131,072 tokens the largest output OpenRouter's first provider allows OpenRouter, read
Tool calling
  • Yes OpenRouter lists tools among the supported parameters OpenRouter, read
Structured output
  • Yes OpenRouter lists structured outputs among the supported parameters OpenRouter, read
Reasoning controls
  • Yes OpenRouter lists reasoning controls, with the efforts xhigh, high OpenRouter, read
Inputs and outputs
text in, text out Hugging Face, read
Good for
  • Reasoning: OpenRouter lists reasoning controls for it OpenRouter, read

Prices

Prices in US dollars per million tokens, as each source lists them
ProviderInputOutputContextAs ofSource
Baidu through OpenRouter0.561 USD1.76 USD1,048,576OpenRouter endpoints, read
Baidu through OpenRouter0.561 USD1.76 USD1,048,576OpenRouter endpoints, read
DeepInfra through OpenRouter0.562 USD1.80 USD1,048,576OpenRouter endpoints, read
DeepInfra through OpenRouter0.562 USD1.80 USD1,048,576OpenRouter endpoints, read
StreamLake through OpenRouter0.641 USD2.01 USD1,024,000OpenRouter endpoints, read
StreamLake through OpenRouter0.641 USD2.01 USD1,024,000OpenRouter endpoints, read
Baidu through OpenRouter0.648 USD2.27 USD1,048,576OpenRouter endpoints, read
Baidu through OpenRouter0.648 USD2.27 USD1,048,576OpenRouter endpoints, read
Novita through OpenRouter0.650 USD2.04 USD1,048,576OpenRouter endpoints, read
Novita through OpenRouter0.650 USD2.04 USD1,048,576OpenRouter endpoints, read
DigitalOcean through OpenRouter0.700 USD2.20 USD262,144OpenRouter endpoints, read
DigitalOcean through OpenRouter0.700 USD2.20 USD262,144OpenRouter endpoints, read
Inceptron direct0.710 USD2.35 USD1,048,576 older than 30 days; check the providermodels.dev, read
Deep Infra direct0.750 USD2.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
CoreWeave direct0.760 USD2.42 USD1,048,576 older than 30 days; check the providermodels.dev, read
CoreWeave through OpenRouter0.760 USD2.42 USD1,048,576OpenRouter endpoints, read
CoreWeave through OpenRouter0.760 USD2.42 USD1,048,576OpenRouter endpoints, read
Inceptron through OpenRouter0.898 USD3.18 USD1,048,576OpenRouter endpoints, read
Inceptron through OpenRouter0.898 USD3.18 USD1,048,576OpenRouter endpoints, read
Lilac direct0.900 USD3.00 USD524,288 older than 30 days; check the providermodels.dev, read
AtlasCloud through OpenRouter0.938 USD2.95 USD1,048,576OpenRouter endpoints, read
AtlasCloud through OpenRouter0.938 USD2.95 USD1,048,576OpenRouter endpoints, read
Alibaba through OpenRouter0.966 USD3.04 USD1,000,000OpenRouter endpoints, read
Alibaba through OpenRouter0.966 USD3.04 USD1,000,000OpenRouter endpoints, read
ai& direct1.00 USD4.00 USD1,048,576 older than 30 days; check the providermodels.dev, read
SiliconFlow through OpenRouter1.19 USD3.74 USD1,048,576OpenRouter endpoints, read
SiliconFlow through OpenRouter1.19 USD3.74 USD1,048,576OpenRouter endpoints, read
Phala through OpenRouter1.26 USD3.00 USD1,048,576OpenRouter endpoints, read
Phala through OpenRouter1.26 USD3.00 USD1,048,576OpenRouter endpoints, read
SiliconFlow direct1.30 USD4.09 USD1,049,000 older than 30 days; check the providermodels.dev, read
Abacus direct1.40 USD4.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
Arcee direct1.40 USD4.40 USD262,144 older than 30 days; check the providermodels.dev, read
BaseTen through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Baseten direct1.40 USD4.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
Cloudflare through OpenRouter1.40 USD4.40 USD262,144OpenRouter endpoints, read
Cloudflare through OpenRouter1.40 USD4.40 USD262,144OpenRouter endpoints, read
Fireworks through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Fireworks through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Friendli direct1.40 USD4.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
Friendli through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Friendli through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
GMICloud through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
GMICloud through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
HPC-AI direct1.40 USD4.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
Hugging Face direct1.40 USD4.40 USD262,144 older than 30 days; check the providermodels.dev, read
Nebius Token Factory direct1.40 USD4.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
NovitaAI direct1.40 USD4.40 USD1,048,576 older than 30 days; check the providermodels.dev, read
Parasail through OpenRouter1.40 USD4.40 USD262,144OpenRouter endpoints, read
Parasail through OpenRouter1.40 USD4.40 USD262,144OpenRouter endpoints, read
Pioneer direct1.40 USD4.40 USD1,040,000 older than 30 days; check the providermodels.dev, read
SiliconFlow (China) direct1.40 USD4.40 USD1,049,000 older than 30 days; check the providermodels.dev, read
Together through OpenRouter1.40 USD4.40 USD1,048,575OpenRouter endpoints, read
Together through OpenRouter1.40 USD4.40 USD1,048,575OpenRouter endpoints, read
Together AI direct1.40 USD4.40 USD1,048,575 older than 30 days; check the providermodels.dev, read
Venice through OpenRouter1.40 USD4.40 USD1,000,000OpenRouter endpoints, read
Venice through OpenRouter1.40 USD4.40 USD1,000,000OpenRouter endpoints, read
Wafer through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Wafer through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Z.AI through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
Z.AI through OpenRouter1.40 USD4.40 USD1,048,576OpenRouter endpoints, read
evroc direct1.44 USD5.75 USD524,288 older than 30 days; check the providermodels.dev, read
Berget.AI direct1.54 USD4.84 USD524,288 older than 30 days; check the providermodels.dev, read
BaseTen through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
BaseTen through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
Fireworks through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
Fireworks through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
Fireworks through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
Fireworks through OpenRouter2.10 USD6.60 USD1,048,576OpenRouter endpoints, read
Decart through OpenRouter2.25 USD8.00 USD1,048,576OpenRouter endpoints, read
Decart through OpenRouter2.25 USD8.00 USD1,048,576OpenRouter endpoints, read
Alibaba through OpenRouter2.31 USD7.26 USD1,000,000OpenRouter endpoints, read
Alibaba through OpenRouter2.31 USD7.26 USD1,000,000OpenRouter endpoints, read

Run it on your own hardware

Weights are the sizes of the files a source lists, or an estimate from the parameter count where none does. Memory is an estimate: weights plus KV cache plus 512 MiB and 5 percent of the weights for runtime buffers. Check it against your hardware.

QuantizationWeightsMemory at 8,192 tokensMemory at 32,768 tokens
UD-IQ1_S202 GiB213 GiB215 GiB
UD-IQ1_M213 GiB225 GiB227 GiB
UD-IQ2_XXS222 GiB234 GiB236 GiB
UD-IQ2_M222 GiB234 GiB237 GiB
UD-Q2_K_XL236 GiB249 GiB252 GiB
UD-IQ3_XXS262 GiB277 GiB279 GiB
UD-IQ3_S287 GiB303 GiB305 GiB
UD-Q3_K_M319 GiB336 GiB338 GiB
UD-Q3_K_XL319 GiB337 GiB339 GiB
UD-IQ4_NL347 GiB366 GiB368 GiB
UD-Q4_K_S406 GiB428 GiB430 GiB
UD-Q4_K_M434 GiB457 GiB459 GiB
UD-Q4_K_XL435 GiB458 GiB460 GiB
UD-Q5_K_S491 GiB517 GiB519 GiB
UD-Q5_K_M522 GiB550 GiB552 GiB
UD-Q5_K_XL524 GiB551 GiB553 GiB
UD-Q6_K583 GiB613 GiB615 GiB
UD-Q6_K_XL637 GiB670 GiB672 GiB
Q8_0746 GiB785 GiB787 GiB
UD-Q8_K_XL763 GiB803 GiB805 GiB
BF161,404 GiB1,476 GiB1,478 GiB

Start it with a local runtime

  • Ollama
    ollama run hf.co/unsloth/GLM-5.2-GGUF:UD-IQ1_S
  • LM Studio
    lms get unsloth/GLM-5.2-GGUF
    lms server start
  • llama.cpp server
    llama-server -hf unsloth/GLM-5.2-GGUF:UD-IQ1_S --jinja
  • vLLM
    vllm serve zai-org/GLM-5.2
  • SGLang
    sglang serve --model-path zai-org/GLM-5.2 --port 30000

Use it from your harness

Set up for Abacus with the model zai-org/GLM-5.2. Each endpoint page has the same setup for its own address.

OpenCode

Put this in opencode.json in your project folder:

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "abacus": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Abacus",
      "options": {
        "baseURL": "https://routellm.abacus.ai/v1",
        "apiKey": "{env:ABACUS_API_KEY}"
      },
      "models": {
        "zai-org/GLM-5.2": {
          "name": "GLM 5.2",
          "limit": {
            "context": 1048576,
            "output": 131072
          }
        }
      }
    }
  }
}
  • OpenCode reads any OpenAI-compatible address through the @ai-sdk/openai-compatible package, and an address that speaks the Responses API through @ai-sdk/openai.

From OpenCode documentation, read .

Pi

Put this in ~/.pi/agent/models.json:

{
  "providers": {
    "abacus": {
      "baseUrl": "https://routellm.abacus.ai/v1",
      "api": "openai-completions",
      "apiKey": "$ABACUS_API_KEY",
      "models": [
        {
          "id": "zai-org/GLM-5.2"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Abacus documents no Responses address. A gateway that offers one can sit in between.

  • Codex speaks the Responses API only: responses is the one supported wire API of a custom provider. Ollama and LM Studio are built in and start with --oss.

From Codex documentation, read .

Claude Code

Claude Code sends Anthropic Messages requests, and Abacus documents no such address. A gateway that translates to that API can sit in between.

  • Claude Code sends Anthropic Messages requests to ANTHROPIC_BASE_URL. Anthropic says it does not support routing Claude Code to models other than Claude through any gateway, so some features may not work with another model.

From Claude Code documentation, read .

Other ways to reach it

Published results

These are results other people published. Baltor did not run them and does not rank models by them.