GLM 5.1

z-ai/glm-5.1-20260406

Z.ai: GLM 5.1 processes text inputs and generates text outputs. It has a context length of 204,800 tokens and supports tools and reasoning. Pricing is $0.966 per million input tokens and $3.036 per million output tokens.

  • tool use
  • structured outputs
  • reasoning
  • open-weight

At a glance

providerz-ai
releasedMar 27, 2026
context205K
input / M$0.97

Specifications

What the API gives you

Context window
205K tokens
Max output
128K tokens
Input price
$0.97 / 1M tokens
Output price
$3.04 / 1M tokens
Cache read
$0.18 / 1M tokens
Modalities
text → text
Knowledge cutoff
—
Released
Mar 27, 2026

Measured evidence

Public benchmark record

Design Arena Coding
1269 Elo2026-10-20
Design Arena UI
1271 Elo2026-10-20
Design Arena Web-app Agent
1175 Elo2026-10-20
Design Arena Website
1266 Elo2026-10-20
FrontierMath Tiers 1-3 (Epoch AI)
36.8% ± 2.92026-08-29evaluated 2026-08-29
FrontierMath Tiers 1-3 (Epoch AI)‡
24.9% ± 2.62026-08-28none effort, evaluated 2026-08-28
GPQA Diamond (Epoch AI)
89.9% ± 2.12026-08-10evaluated 2026-08-10
LMArena Creative Writing
1454 Elo2026-10-15
LMArena Long Query
1467 Elo2026-10-15
LMArena Math
1473 Elo2026-10-15
LMArena Text
1465 Elo2026-10-15
LMArena Text Factuality
1456 Elo2026-10-15
LMArena WebDev
1508 Elo2026-10-19
OTIS Mock AIME (Epoch AI)
93.3% ± 3.82026-08-10evaluated 2026-08-10
SimpleQA Verified (Epoch AI)
34% ± 1.52026-08-27evaluated 2026-08-27

LMArena data licensed CC-BY-4.0. Aider (Apache-2.0) and SWE-bench (MIT) are open. Design Arena uses blind human preference. ‡ Submitted scaffold plus model result. Compare the harness and effort settings, not only the model name.

Open-weight model on Hugging Face.

Task evidence

How broad is the support?

Each status is exact to this model version and the selected task. Official release claims remain provisional.

  • Best LLM for Frontend & UIEstablished evidence

    82% of intended weighted task evidence across 2 independent sources. 6 of 6 configured evaluation feeds currently have results.

  • 59% of intended weighted task evidence across 2 independent sources. 6 of 6 configured evaluation feeds currently have results.

  • Best LLM for Competition MathEstablished evidence

    56% of intended weighted task evidence across 3 independent sources. 6 of 6 configured evaluation feeds currently have results.

  • 55% of intended weighted task evidence across 2 independent sources. 5 of 5 configured evaluation feeds currently have results.

  • Best LLM for Math & ReasoningEstablished evidence

    52% of intended weighted task evidence across 4 independent sources. 7 of 7 configured evaluation feeds currently have results.

  • Best LLM for CodingEstablished evidence

    36% of intended weighted task evidence across 2 independent sources. 7 of 7 configured evaluation feeds currently have results.

Show all 31 tasks
  • Best LLM for Grounded RAGEstablished evidence

    29% of intended weighted task evidence across 2 independent sources. 5 of 7 configured evaluation feeds currently have results.

  • Best LLM for Business WritingProvisional evidence

    67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following. 4 of 4 configured evaluation feeds currently have results.

  • Best LLM for Marketing CopyProvisional evidence

    67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following. 4 of 4 configured evaluation feeds currently have results.

  • Best LLM for Chat & RoleplayProvisional evidence

    67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.

  • 67% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.

  • Best LLM for Creative WritingProvisional evidence

    56% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.

  • Best LLM for WritingProvisional evidence

    56% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 4 of 4 configured evaluation feeds currently have results.

  • Best LLM for Code CompletionProvisional evidence

    36% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or LiveBench Coding. 3 of 3 configured evaluation feeds currently have results.

  • 27% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.

  • Best Value LLMProvisional evidence

    25% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.

  • 22% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from FACTS Grounding or LMArena Document. 5 of 6 configured evaluation feeds currently have results.

  • Best Local LLM for CodingProvisional evidence

    21% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or LiveBench Coding. 4 of 4 configured evaluation feeds currently have results.

  • Best LLM for Agentic CodingProvisional evidence

    20% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Agentic Coding or LMArena Agent. 7 of 7 configured evaluation feeds currently have results.

  • 20% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from FACTS Grounding or LiveBench Instruction Following. 5 of 6 configured evaluation feeds currently have results.

  • Best LLM for SummarizationProvisional evidence

    20% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from FACTS Grounding or LiveBench Instruction Following. 5 of 6 configured evaluation feeds currently have results.

  • Best LLM for Massive ContextProvisional evidence

    20% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LMArena Document or LongBench v2. 2 of 3 configured evaluation feeds currently have results.

  • 17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Aider Polyglot or LiveBench Coding. 5 of 5 configured evaluation feeds currently have results.

  • Best LLM for Fast SummariesProvisional evidence

    17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.

  • 17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 3 of 4 configured evaluation feeds currently have results.

  • 17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 3 of 4 configured evaluation feeds currently have results.

  • Best LLM for TranslationProvisional evidence

    17% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or LiveBench Language. 3 of 4 configured evaluation feeds currently have results.

  • 12% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Berkeley Function Calling or LiveBench Data Analysis. 3 of 4 configured evaluation feeds currently have results.

  • 12% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from Berkeley Function Calling or LiveBench Data Analysis. 3 of 4 configured evaluation feeds currently have results.

  • Best Cheap LLM for High VolumeProvisional evidence

    10% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.

  • Cheapest Capable LLMProvisional evidence

    10% of intended weighted task evidence across 1 independent source; broader independent confirmation is still missing from LiveBench Instruction Following or Route reliability. 2 of 3 configured evaluation feeds currently have results.

Recommendation coverage

Where this model appears

Not currently included in a published recommendation. The task evidence panel above says exactly what is confirmed and what is still missing.

Catalog data via OpenRouter and models.dev. Last checked within the past 6 hours.