Baltor Get started

Models

GLM 4.6

By Z.ai. 356.8 billion parameters, a context window of 204,800 tokens and the licence mit.

Facts

Released
2025-09-29 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
356.8 billion counted from the safetensors weight files Hugging Face, read
Active parameters
37.6 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
2025-03-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 202,752 tokens the maximum position embeddings in the model configuration model configuration, read
  • 204,800 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 16,384 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 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
IO.NET direct0.400 USD1.75 USD200,000 older than 30 days; check the providermodels.dev, read
Venice through OpenRouter0.430 USD1.75 USD198,000OpenRouter endpoints, read
Meganova direct0.450 USD1.90 USD202,752 older than 30 days; check the providermodels.dev, read
Deep Infra direct0.500 USD2.00 USD202,752 older than 30 days; check the providermodels.dev, read
DeepInfra through OpenRouter0.500 USD2.00 USD202,752OpenRouter endpoints, read
Hugging Face direct0.550 USD2.20 USD204,800 older than 30 days; check the providermodels.dev, read
Novita through OpenRouter0.550 USD2.20 USD204,800OpenRouter endpoints, read
NovitaAI direct0.550 USD2.20 USD204,800 older than 30 days; check the providermodels.dev, read
Abacus direct0.600 USD2.20 USD202,752 older than 30 days; check the providermodels.dev, read
Z.AI through OpenRouter0.600 USD2.20 USD202,752OpenRouter 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-TQ1_078.4 GiB85.7 GiB94.3 GiB
UD-IQ1_S90.3 GiB98.2 GiB107 GiB
UD-IQ1_M100 GiB108 GiB117 GiB
UD-IQ2_XXS107 GiB116 GiB125 GiB
UD-IQ2_M114 GiB123 GiB131 GiB
Q2_K122 GiB131 GiB140 GiB
Q2_K_L122 GiB131 GiB140 GiB
UD-Q2_K_XL125 GiB135 GiB144 GiB
UD-IQ3_XXS135 GiB145 GiB154 GiB
Q3_K_S144 GiB154 GiB163 GiB
UD-Q3_K_XL147 GiB158 GiB167 GiB
Q3_K_M159 GiB170 GiB179 GiB
IQ4_XS178 GiB190 GiB198 GiB
IQ4_NL188 GiB201 GiB209 GiB
Q4_0188 GiB201 GiB210 GiB
Q4_K_S189 GiB202 GiB210 GiB
UD-Q4_K_XL190 GiB203 GiB211 GiB
Q4_K_M201 GiB214 GiB223 GiB
Q4_1208 GiB222 GiB231 GiB
Q5_K_S229 GiB244 GiB252 GiB
UD-Q5_K_XL235 GiB250 GiB258 GiB
Q5_K_M236 GiB251 GiB260 GiB
Q6_K273 GiB290 GiB299 GiB
UD-Q6_K_XL278 GiB296 GiB304 GiB
Q8_0353 GiB374 GiB383 GiB
UD-Q8_K_XL363 GiB385 GiB393 GiB
BF16665 GiB701 GiB710 GiB

Start it with a local runtime

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

Use it from your harness

Set up for Abacus with the model zai-org/GLM-4.6. 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-4.6": {
          "name": "GLM 4.6",
          "limit": {
            "context": 204800,
            "output": 16384
          }
        }
      }
    }
  }
}
  • 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-4.6"
        }
      ]
    }
  }
}
  • 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.