Skip to main content

Overview

ZAI’s GLM chat models on RouterBase, served through the standard OpenAI-compatible chat completions endpoint with streaming and tool calling. Covers the GLM-4.5, GLM-4.6, GLM-4.7, and GLM-5 families, including the vision-capable GLM-4.5V / GLM-4.6V.

Models

  • zai/glm-5.2
  • zai/glm-5.1
  • zai/glm-5
  • zai/glm-4.7
  • zai/glm-4.6
  • zai/glm-4.6v
  • zai/glm-4.5
  • zai/glm-4.5v
  • zai/glm-4.5-air
Pricing is deliberately not reproduced here. Rates are set per model in the RouterBase catalogue and can be overridden per account, so any figure copied into this page is a snapshot that goes stale the next time a rate changes. Fetch the current rate for any model from the Models API:
URL-encode the slash in the model id — e.g. zai%2Fglm-5.2.

Endpoint

Drop-in compatible with the OpenAI Chat Completions API — point your existing OpenAI client at https://routerbase.com/v1 with your RouterBase key. See the full Chat Completions reference for every supported parameter.

Quickstart

Set "stream": true for token streaming (Server-Sent Events), exactly like the OpenAI API. Swap model for any id from the table above.

Vision input (GLM-4.5V / GLM-4.6V)

The *V models accept images alongside text using the standard OpenAI content-parts format: