Skip to content

Z.ai (Zhipu AI) · model passport

Z.ai: GLM 4.7

glm-4-7
  • Open weights
  • MIT licence
  • 358.3B params
  • 204,800 context
  • Released 2025-12-22(HF repo created)
15/27axes covered
Overall · LMArena
1,441#85 of 396
Best percentile
98.9LiveCodeBench (Artificial Analysis)
Cohort standing
62.8median 54.9

What the data says

Benchmarked on 15 of 27 tracked axes. Every figure below is the model's own published result on that board.

Strongest axes

  • 98.9 pct — LiveCodeBench (Artificial Analysis) (89.4%)
  • 93.6 pct — MMLU-Pro (Artificial Analysis) (85.6%)

Uneven: 70.9 percentile points between its best and worst axis — 98.9 pct on LiveCodeBench (Artificial Analysis) versus 28 pct on SimpleQA Verified.

  • LiveCodeBench (Artificial Analysis)98.9 pct89.4%Verify →
  • MMLU-Pro (Artificial Analysis)93.6 pct85.6%Verify →
  • Hard prompts79.3 pct1,462Verify →
  • Overall78.8 pct1,441Verify →
  • IFBench (Artificial Analysis)78.7 pct67.9%Verify →
  • Instruction following77.3 pct1,426Verify →
  • Coding76.2 pct1,484Verify →
  • GPQA Diamond65.2 pct83.3%Verify →
  • AIME (math)59.5 pct83.3%Verify →
  • LiveBench59.1 pct58.1%Verify →
  • Factuality Arena56.4 pct1,444Verify →
  • SimpleBench48.3 pct47.7%Verify →
  • WebDev Arena47.5 pct1,435Verify →
  • Terminal-Bench34.1 pct33.4%Verify →
  • SimpleQA Verified28 pct32.2%Verify →
  • Vision ArenaNot benchmarked
  • Search ArenaNot benchmarked
  • Document ArenaNot benchmarked
  • Agent ArenaNot benchmarked
  • FrontierMathNot benchmarked
  • ARC-AGI-2Not benchmarked
  • Humanity's Last ExamNot benchmarked
  • BFCL v4 (function calling)Not benchmarked
  • SWE-bench Verified (live board)Not benchmarked
  • Terminal-Bench 4.0Not benchmarked
  • HHEM Hallucination (Vectara)Not benchmarked
  • SWE-bench VerifiedNot benchmarked

Percentiles are the model's standing within each board's own population. Axes marked "not benchmarked" have no published result for this model — that is an absence of data, not a low score.

How to run it

Run it yourself

Repositoryzai-org/GLM-4.7
Parameters358.3B
ArchitectureGlm4MoeForCausalLM
LicenceMIT

Transformers

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "zai-org/GLM-4.7"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

Ollama

We don't sync Ollama tags, so we won't print a command we can't verify — a wrong one would pull the wrong model. Search the Ollama library →

Unsloth fine-tuning recipes are model-specific and we don't derive them here. Unsloth docs →

Use it hosted

API model IDz-ai/glm-4.7
Context length204,800 tokens
Max output131,072 tokens
Input price$0.54 per 1M tokens
Cached input price$0.10 per 1M tokens
Output price$1.98 per 1M tokens

API parameters this endpoint supports

Frequency penaltyInclude reasoningLogit biasMax tokensMin-pPresence penaltyReasoningRepetition penaltyResponse formatSeedStop sequencesStructured outputsTemperatureTool choiceTool callingTop-aTop-kTop-p

Example request

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"z-ai/glm-4.7","messages":[{"role":"user","content":"Hello"}]}'

View on OpenRouter →

Identifiers, limits and prices are synced from the upstream source shown above. Any field we haven't synced is left out entirely rather than guessed.

  • glm-4.7 stands at 62.8 (raw mean 65.4) — measured on 15 of 27 axes.

    standingtemplateVerify →
  • glm-4.7 stands at 62.8 versus a cohort median of 54.9 across 126 models released within 180 days — above the peer median.

    cohorttemplateVerify →

Every claim is a computed fact from the current board data, phrased by a low-temperature model call and rejected by a validation gate if any number is not in the source row. How the leaderboards work →