glm-5.2:flexDeepInfra Inc.
- api
- chat
- hosting
- US
- model lab
- DeepInfra
- weights
- open
- added
- June 2026
- model id
- deepinfra/glm-5.2:flex
capabilities 4/8
- input
- $0.60
- output
- $1.92
- cache write
- -
- cache read
- $0.11
worked cost
| volume | cost |
|---|---|
| 100K in + 10K out | $0.0792 |
| 1M in + 100K out | $0.79 |
| 10M in + 1M out | $7.92 |
Requesty charges what the upstream provider charges, with no markup and no per-request fee. Prompt caching and smart routing cut the effective cost further on repeated context. Gateway pricing
- median ttft
- 2.60s
- median tok/s
- 77.0
- blended /1M
- $0.18
- cache hit
- 92.4%
- answered
- 98.40%
Weekly aggregates from production traffic routed through Requesty to this endpoint. A metric with no qualifying sample is left out rather than filled in. Compare against the other providers
| eval | Score as a share of 100 | /100 |
|---|---|---|
| τ²-Bench | 99.1 | |
| GPQA Diamond | 89.5 | |
| Coding Index | 68.8 | |
| SciCode | 51.2 | |
| Terminal-Bench Hard | 50.8 | |
| Humanity's Last Exam | 41.1 | |
| Intelligence Index | 38.6 | |
| 7 evals | mean | 62.7 |
Scores from Artificial Analysis and public leaderboards, normalised to 100. Bar colour is the band, not the rank: green 80 and up, blue 55 and up, amber 30 and up. Benchmarks measure narrow skills, so test on your own workload before committing. Released 2026-06-16.
- retention
- none
- trains on prompts
- no
- hosted in
- US
Terms are the provider's, not Requesty's: routing a request here puts it under them. DeepInfra Privacy Policy
Need every request to stay in one jurisdiction? EU hosting routes only through EU-hosted providers.
deepinfra/glm-5.2:flexthis id pins the deepinfra inc. deployment, with no routing and no failover. the managed id on the canonical page routes across all 1 providers instead
from 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)
Change the base url to https://router.requesty.ai/v1, use your Requesty key, set the model to the id above. Existing OpenAI SDK code needs no other edit, and the same key reaches every other model in the catalog. Browse all models
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**.
questions 6
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?
more from deepinfra inc. 8
| endpoint | ctx | in /M |
|---|---|---|
| glm-5.3-flash | 1.0M | $0.15 |
| glm-5.3 | 1.0M | $1.20 |
| deepseek-v4-pro-0813 | 1.0M | $1.30 |
| qwen3.8 | 262K | $2.00 |
| deepseek-v4-flash-0731:flex | 1.0M | $0.07 |
| deepseek-v4-flash-0731 | 1.0M | $0.09 |
| glm-5.2 | 262K | $0.75 |
| ByteDance/Seed-1.8 | 256K | $0.25 |
call glm-5.2:flex through one endpoint
One key for this endpoint and 600+ other models. No markup on provider prices, automatic failover when a provider degrades, and prompt caching built in. Methodology
