glm-5.2:flex
GLM-5.2 is Z-AI's latest flagship model for long-horizon tasks. It marks a substantial leap in long-horizon task capability over its predecessor GLM-5.1 and, for the first time, delivers that capability on a **solid 1M-token context**.
Specifications
Benchmarks
Released 2026-06-16Artificial Analysis Coding Index — a composite of coding evaluations including LiveCodeBench, SciCode and Terminal-Bench.
Graduate-level physics, chemistry & biology questions designed to resist Googling.
Artificial Analysis Intelligence Index — a composite of multiple evaluations measuring overall model capability.
Scores are sourced from official model cards, Artificial Analysis, and public leaderboards. Benchmarks measure specific skills and do not capture every aspect of model quality. Always test on your own workload.
Pricing
Prices updated August 18, 2026Requesty charges exactly what the upstream provider charges, no markup, no per-request fees. Prompt caching and smart routing can reduce effective cost by 30-80%.
Quickstart
Drop-in compatible with the OpenAI SDK. Change the base URL, swap in your Requesty API key, and set the model to deepinfra/glm-5.2:flex.
123456789101112131415from openai import OpenAI client = OpenAI( api_key="YOUR_REQUESTY_API_KEY", base_url="https://router.requesty.ai/v1", ) response = client.chat.completions.create( model="deepinfra/glm-5.2:flex", messages=[ {"role": "user", "content": "Explain quantum computing in one paragraph."}, ], ) print(response.choices[0].message.content)
Other DeepInfra Inc. models
Frequently asked questions
How much does glm-5.2:flex cost?
What is the context window of glm-5.2:flex?
How does glm-5.2:flex perform on benchmarks?
What can glm-5.2:flex do?
How do I use glm-5.2:flex with the OpenAI SDK?
Can I run glm-5.2:flex through Requesty?
Access glm-5.2:flex through Requesty
One API key, 600+ models, OpenAI-compatible. No markup on provider prices, automatic failover, and smart caching built-in.

