Zhipu (GLM) / glm-5.2
GLM 5.2 stands out for GLM tier for project-level engineering and 1M context for long-horizon coding. It is best suited to repository-scale implementation and long-running engineering agents.
Context
1M
token
Input
$1.0491
/ 1M tokens
Output
$3.6729
/ 1M tokens
Quality
#51
Elo 1190
Overview
GLM 5.2 stands out for GLM tier for project-level engineering and 1M context for long-horizon coding. It is best suited to repository-scale implementation and long-running engineering agents.
Tool calling
Can call tools or functions, so product flows can connect model output to backend actions.
Streaming
Supports streamed responses for chat, assistants, and interfaces that need visible incremental output.
Prompt cache
Supports prompt caching patterns for repeated context and longer production conversations.
Reasoning
Better suited for multi-step analysis, planning, and tasks that need deliberate reasoning.
Structured output
Can return machine-readable structures for extraction, automation, and application logic.
Model maker
Zhipu (GLM)
Called through SeaLink's unified account, balance, and OpenAI-compatible API.
Protocol
OpenAI-compatible Chat Completions
Base URL: https://api.sealink.io/v1
Pricing
Light production run
100K input + 25K output
$0.1967
Higher-volume run
1M input + 250K output
$1.9673
The final charge follows generated usage and the applicable selector, such as resolution, duration, input type, or provider unit.
API
model
glm-5.2base_url
https://api.sealink.io/v1Auth
Bearer $SEALINK_API_KEYcurl https://api.sealink.io/v1/chat/completions \-H "Authorization: Bearer $SEALINK_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "glm-5.2","messages": [{"role": "user", "content": "Hello."}]}'
from openai import OpenAIclient = OpenAI(base_url="https://api.sealink.io/v1", api_key="<your-sealink-key>")resp = client.chat.completions.create(model="glm-5.2",messages=[{"role": "user", "content": "Hello."}],)print(resp.choices[0].message.content)
import OpenAI from "openai";const client = new OpenAI({baseURL: "https://api.sealink.io/v1",apiKey: process.env.SEALINK_API_KEY,});const resp = await client.chat.completions.create({model: "glm-5.2",messages: [{ role: "user", content: "Hello." }],});console.log(resp.choices[0].message.content);