GLM-5.2 API
model: zai-glm-5-2
This model is not available on the CallAI gateway yet; prices shown are the official reference. See the model directory for available models in the same family.
Open flagship GLM for long-horizon coding agents and million-token context work
CallAI pricing
Crypto OKSpecs & upstream
Not callable yet
GLM-5.2 is not live on the CallAI gateway yet. The code below will work once it is listed; calling it now returns model_not_available. Please don't top up for this model: USDT top-ups are non-refundable once credited (details). See the model directory for available models in the same family.
SDK quickstart
OpenAI-compatiblefrom openai import OpenAI
client = OpenAI(
api_key="sk-live-your-callai-key",
base_url="https://api.callaiapi.com/v1"
)
response = client.chat.completions.create(
model="zai-glm-5-2",
messages=[
{"role": "system", "content": "You are a helpful coding assistant."},
{"role": "user", "content": "Hello, explain quicksort with Python"}
],
stream=True
)
for chunk in response:
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: process.env.CALLAI_API_KEY,
baseURL: 'https://api.callaiapi.com/v1',
});
const response = await openai.chat.completions.create({
model: 'zai-glm-5-2',
messages: [{ role: 'user', content: 'Hello!' }],
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content || '');
}FAQ — GLM-5.2
How do I call GLM-5.2 (zai-glm-5-2)?
Use the official OpenAI SDK with base_url https://api.callaiapi.com/v1, your CallAI API key, and model "zai-glm-5-2".
What does GLM-5.2 cost?
Pay-as-you-go: input $1.54/1M tokens, output $4.84/1M tokens. Fund with USDT — no credit card required.
Can I use GLM-5.2 in Cursor or Windsurf?
Yes. Set OpenAI Base URL to https://api.callaiapi.com/v1 and add model "zai-glm-5-2" in Settings → Models.
Can I pay without a credit card?
Yes. Top up with USDT-TRC20 from $1. Balance never expires and works for GLM-5.2 and other CallAI services.
Related models
View all pricing →GLM-5.2 access facts
API model: zai-glm-5-2 · Vendor: Mistral · Pay-as-you-go
- API model name
- zai-glm-5-2
- Vendor
- Mistral
- Context window
- 1.0M
- CallAI price (in/out 1M)
- $1.54 / $4.84
- Upstream benchmark
- $1.40 / $4.40
- Protocol
- OpenAI SDK Compatible
- Base URL
- https://api.callaiapi.com/v1
- Best for
- Cursor, CLI agents, production apps