GLM 5.2
ChatGLM-5.2
GLM 5.2 on FlexAI: Zhipu AI LLM, MIT license, served via the OpenAI-compatible Token Factory at the live market-tracked rate.
Pricing
Input
$0.909 / M tokens
Output
$2.86 / M tokens
Context
1.0M tokens
API endpoint
/v1/chat/completions
Compatibility
OpenAI
Parameters
~750B MoE (est)
License
MIT
Hardware
8× H100
Quantization
NVFP4
Estimate your monthly cost
M tokens
M tokens
10M × $0.909/M input$9.09
2M × $2.86/M output$5.71
Estimated monthly cost$14.8
Estimate only, at the current market-tracked rate. Usage-based; no minimums.
Get an API keyQuick Start
GLM-5.2
from openai import OpenAI
client = OpenAI(
base_url="https://tokens.flex.ai/v1",
api_key="your-api-key",
)
response = client.chat.completions.create(
model="GLM-5.2",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)