Baltor Get started

Models

GLM 4.5 Air

By Z.ai. 110.5 billion parameters, a context window of 131,072 tokens and the licence mit.

Facts

Released
2025-07-20 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
110.5 billion counted from the safetensors weight files Hugging Face, read
Active parameters
17.0 billion estimate estimated from the expert counts and sizes in the configuration model configuration, read
Knowledge cutoff
2024-12-31 the knowledge cutoff OpenRouter lists OpenRouter, read
Context window
  • 131,072 tokens the maximum position embeddings in the model configuration model configuration, read
  • 131,072 tokens the context length OpenRouter lists OpenRouter, read
Longest output
  • 98,304 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
  • No OpenRouter lists no structured output parameter 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
submodel direct0.100 USD0.500 USD131,072 older than 30 days; check the providermodels.dev, read
Hugging Face direct0.130 USD0.850 USD131,072 older than 30 days; check the providermodels.dev, read
Novita through OpenRouter0.130 USD0.850 USD131,072OpenRouter endpoints, read
NovitaAI direct0.130 USD0.850 USD131,072 older than 30 days; check the providermodels.dev, read
SiliconFlow direct0.140 USD0.860 USD131,000 older than 30 days; check the providermodels.dev, read
SiliconFlow through OpenRouter0.140 USD0.860 USD131,072OpenRouter endpoints, read
SiliconFlow (China) direct0.140 USD0.860 USD131,000 older than 30 days; check the providermodels.dev, read
Z.AI through OpenRouter0.200 USD1.10 USD131,072OpenRouter 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-IQ2_XXS39.8 GiB43.7 GiB48.0 GiB
UD-IQ2_M41.3 GiB45.3 GiB49.7 GiB
Q2_K42.2 GiB46.3 GiB50.6 GiB
Q2_K_L42.3 GiB46.4 GiB50.7 GiB
UD-Q2_K_XL44.2 GiB48.3 GiB52.6 GiB
UD-IQ3_XXS47.9 GiB52.2 GiB56.6 GiB
Q3_K_S49.0 GiB53.4 GiB57.7 GiB
UD-Q3_K_XL51.0 GiB55.5 GiB59.8 GiB
Q3_K_M53.3 GiB57.9 GiB62.2 GiB
IQ4_XS56.3 GiB61.1 GiB65.4 GiB
IQ4_NL58.4 GiB63.3 GiB67.6 GiB
Q4_058.5 GiB63.3 GiB67.6 GiB
Q4_K_S62.4 GiB67.5 GiB71.8 GiB
UD-Q4_K_XL63.1 GiB68.2 GiB72.5 GiB
Q4_164.6 GiB69.8 GiB74.1 GiB
Q4_K_M68.0 GiB73.3 GiB77.6 GiB
Q5_K_S73.0 GiB78.6 GiB82.9 GiB
UD-Q5_K_XL77.2 GiB83.0 GiB87.3 GiB
Q5_K_M77.8 GiB83.6 GiB87.9 GiB
Q6_K92.2 GiB98.8 GiB103 GiB
UD-Q6_K_XL94.6 GiB101 GiB106 GiB
Q8_0109 GiB117 GiB121 GiB
UD-Q8_K_XL119 GiB127 GiB131 GiB
BF16206 GiB218 GiB222 GiB

Start it with a local runtime

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

Use it from your harness

Set up for Hugging Face with the model zai-org/GLM-4.5-Air. 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": {
    "huggingface": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "Hugging Face",
      "options": {
        "baseURL": "https://router.huggingface.co/v1",
        "apiKey": "{env:HF_TOKEN}"
      },
      "models": {
        "zai-org/GLM-4.5-Air": {
          "name": "GLM 4.5 Air",
          "limit": {
            "context": 131072,
            "output": 98304
          }
        }
      }
    }
  }
}
  • 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": {
    "huggingface": {
      "baseUrl": "https://router.huggingface.co/v1",
      "api": "openai-completions",
      "apiKey": "$HF_TOKEN",
      "models": [
        {
          "id": "zai-org/GLM-4.5-Air"
        }
      ]
    }
  }
}
  • The apiKey field can name an environment variable as $NAME.

From Pi documentation, read .

Codex

Codex speaks only the Responses API, and Hugging Face 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 Hugging Face 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.