glm-5.2-fast-preview

Alibaba Cloud Singapore International text model; available through the dedicated GLM/Kimi channel after validation.

Model ID: glm-5.2-fast-preview · Type: chat · Provider: Zhipu

Endpoints: /v1/chat/completions · /v1/messages · /v1/responses

Pricing

Input (per 1M tokens)$1.96 USD
Output (per 1M tokens)$6.16 USD
Cache read (per 1M tokens)$0.392 USD

Capabilities

import os

from openai import OpenAI

client = OpenAI(api_key=os.environ["ROUTER_API_KEY"], base_url="https://api.router.ai/v1")
resp = client.chat.completions.create(
    model="glm-5.2-fast-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)

FAQ

How much does glm-5.2-fast-preview cost on openbat.ai?

glm-5.2-fast-preview (`glm-5.2-fast-preview`) is billed per usage at $1.96/1M in · $6.16/1M out, in USD. Current pricing is always listed at https://openbat.ai/models/glm-5.2-fast-preview.

How do I call glm-5.2-fast-preview through openbat.ai?

Send a request to https://api.router.ai/v1/chat/completions with the header `Authorization: Bearer <your API key>` and `"model": "glm-5.2-fast-preview"`. The API is OpenAI-compatible, so any OpenAI SDK works by changing base_url to https://api.router.ai/v1 — no other code change.

Which endpoints does glm-5.2-fast-preview support?

glm-5.2-fast-preview can be called on: /v1/chat/completions; /v1/messages; /v1/responses.

What is glm-5.2-fast-preview's context window?

glm-5.2-fast-preview accepts up to 1,048,576 input tokens and can return up to 131,072 output tokens. Requests exceeding the input limit are rejected before reaching the model.

What can glm-5.2-fast-preview do?

glm-5.2-fast-preview supports: function_calling, prompt_caching, reasoning, structured_output.

Who makes glm-5.2-fast-preview?

glm-5.2-fast-preview is a chat model from Zhipu, available through the openbat.ai gateway with the same API key as every other model.

Call it through the openbat.ai OpenAI-compatible endpoint (API base: https://api.router.ai/v1). AI agents can browse the catalog and call any text model through MCP (https://mcp.router.ai/mcp); for image, video and other modalities use the API above.

API reference · All models