Back to Models
Zhipu

GLM 4.6

Available

Description

Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks. Superior coding performance: The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. Advanced reasoning: GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. More capable agents: GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. Refined responses: Better aligns with human preferences in style and readability, and performs more naturally in conversational scenarios.

At a Glance

Key pricing and model details available for this model.

Input price

$0.43

per 1M tokens

Output price

$1.75

per 1M tokens

Context window

203K

tokens

Hallucination rate

1.3%

Token Pricing

Token pricing normalized to per-million-token rates.

Input / 1M tokens

$0.43

Output / 1M tokens

$1.75

Cache Read / 1M tokens

$0.12

Token Pricing Details

Rates are shown per 1M tokens for easier comparison.

Input / 1M tokens$0.43
Input unit1M tokens
Output / 1M tokens$1.75
Output unit1M tokens
Cache Read / 1M tokens$0.12
Cache Read unit1M tokens

Feature Availability

Capabilities explicitly listed in the current payload.

LLM

Available

Yes

Vision

Not listed

No

Function calling

Available

Yes

Reasoning

Available

Yes

Service tiers

Not listed

No

Reasoning Effort Levels

low
medium
high

Supported Parameters

frequency_penalty
logit_bias
max_completion_tokens
presence_penalty
reasoning_effort
response_format
stop
temperature
tool_choice
tools
top_p

Category Radar

Aggregated from the benchmark values present for reasoning, code, math, and accuracy.

Benchmark Breakdown

Detailed benchmark results drawn from the current payload.

MMLU-Pro

reasoning

A broad and difficult knowledge-and-reasoning benchmark across many subjects.

82.9%

Reported score

GPQA

reasoning

Graduate-level science questions designed to be difficult to shortcut.

78%

Reported score

HLE

reasoning

A very hard expert-level exam across a wide range of subjects.

14.5%

Reported score

LiveCodeBench

code

Fresh programming tasks meant to test current coding ability.

69.5%

Reported score

AIME 2025

math

The 2025 AIME benchmark used to reduce data leakage concerns.

86%

Reported score

IFBench

accuracy

Measures how precisely the model follows detailed instructions.

43.4%

Reported score

LCR

accuracy

Tests long-context reasoning over large documents and conversations.

54%

Reported score

TerminalBench Hard

code

A harder coding-agent benchmark for complex multi-step terminal tasks.

25%

Reported score

Tau2

accuracy

Evaluates realistic agent behavior in tool-using support workflows.

70.5%

Reported score

Code Samples

Quick start with the Routeway API

import OpenAI from 'openai';

const openai = new OpenAI({
  baseURL: "https://api.routeway.ai/v1",
  apiKey: "<YOUR_API_KEY>",
});

async function main() {
  const completion = await openai.chat.completions.create({
    model: "glm-4.6",
    messages: [
      {
        role: "user",
        content: "Explain quantum computing in simple terms"
      }
    ]
  });

  console.log(completion.choices[0].message);
}

main();