Routeway Logo
Back to Models
Zhipu

GLM 5.2

Available

Description

GLM-5.2 is Z.AI's flagship model for long-horizon autonomous coding and engineering workflows. It is built to plan, execute, iterate, and optimize complex development tasks over extended runs

At a Glance

Key pricing and model details available for this model.

Input price

$1.40

per 1M tokens

Output price

$4.40

per 1M tokens

Context window

1M

tokens

Hallucination rate

0%

Token Pricing

Token pricing normalized to per-million-token rates.

Input / 1M tokens

$1.40

Output / 1M tokens

$4.40

Cache Read / 1M tokens

$0.27

Token Pricing Details

Rates are shown per 1M tokens for easier comparison.

Input / 1M tokens$1.40
Input unit1M tokens
Output / 1M tokens$4.40
Output unit1M tokens
Cache Read / 1M tokens$0.27
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

Supported Parameters

frequency_penalty
logit_bias
max_completion_tokens
presence_penalty
reasoning_effort
response_format
stop
temperature
tool_choice
tools
top_p

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-5.2",
    messages: [
      {
        role: "user",
        content: "Explain quantum computing in simple terms"
      }
    ]
  });

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

main();